Re: A92: Deactivate 2nd+Lock+On
[Prev][Next][Index][Thread]
Re: A92: Deactivate 2nd+Lock+On
> How can I deactivate the 2nd-Lock-On Reset inside a program. Klaus
You can redirect the ON-Key interrupt vector(auto-int 6), using the
following code:
move.w #$700,d0
trap #1
bclr.b #2,($600001) ;disables mem protection
move.l $78,d5 ;saves old auto int 6
move.l #ONKEY,$78 ;installs your one
bset.b #2,($600001) ;re enable
trap #1
(...)
and ONKEY is a label which just returns
ONKEY: rte (rte because it is an auto int)
when you don't need it, then do:
move.w #$700,d0
trap #1
bclr.b #2,($600001) ;disables mem protection
move.l d5,$78 ;restores old auto-int 6
bset.b #2,($600001) ;re enable
trap #1
I think this code works
Xavier VASSOR
---The Doors Team
doors@mail.dotcom.fr or doors@altern.org
http://www.altern.org/doors
ICQ:10241721
References: