Author: Reimund (192.82.77.194.disc.de)
Date: 07-29-2000 09:00
Hi there ,
my problem: i wanna use GEMDOS #$20 as subroutine ,
(something like down there)
but when the atari enters supervisormode the return-address
will be destroyed (i think) , and i somehow have to save it before
to put it back on the supervisorstack/userstack after gemdos
$20 to do the rts (else iŽll get a 3 bomb [- buserror ?!?] error)
anyone who knows how to solve this problem ???
it looks about like this....
bsr SUPER
blah blah blah...
bsr USER
(blah blah * for those who think
clr -(sp) * i'm that dumb !
trap #1 )
SUPER clr -(sp) * switch to super-
move #$20,-(sp) * visor mode
trap #1
addq.l #6,sp
move.l d0,SUPER_SP
lea STACK,sp
rts
USER move.l SUPER_SP,-(sp) * switch back to
move #$20,-(sp) * user mode
trap #1
addq.l #6,sp
rts
BSS
SUPER_SP DS.L 1
DS.L 1000
STACK DS.L 1
|