Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: MFP help requested
Posted by: Peter Apr,03.2007-16:15 

This is how I do it (no, actually, this is how pmdata does it since I always end up stealing his code):

| Disable all interrupts

movew #0x2700,sr

| Save MFP registers used for ACIA interrupt

lea 0xfffffa00:w,a0
btst #6,a0@(0x09)
sne ikbd_ierb
btst #6,a0@(0x15)
sne ikbd_imrb

| Set our MFP routine

movel 0x118:w,old_ikbd
movel #ikbd,0x118:w
bset #6,0xfffffa09:w | IERB
bset #6,0xfffffa15:w | IMRB

| Set relative mouse motion mode
| needed because running a .tos or .ttp program
| disable the mouse (entering VT52 textmode)

moveb #0x08,0xfffffc02.w

| Re-enable interrupts

movew #0x2300,sr

-- Peter








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
MFP help requested CJ Apr,03.2007-16:11
  Re: MFP help requested Peter Apr,03.2007-16:15
    Re: MFP help requested CJ Apr,04.2007-22:40
      Re: MFP help requested h3rrv Apr,06.2007-16:09
      Re: MFP help requested Patrice Mandin Apr,06.2007-17:47
      Re: MFP help requested Peter Apr,07.2007-11:40


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson