|
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]
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.
|