|
Atari coding BBS
Re: jsr (a0) from within vbl |
Posted by: mikro
|
Jul,24.2009-08:44
|
just to clarify: not only "extraroutine" -- in your example you use a0 in "vbl", i.e. there should be something like this:
vbl: ; hooked at $70
move.l a0,-(sp)
[...all sorts of stuff] ; don't use anything other than a0!
move.l extraroutine,a0
jsr (a0) ; subroutine don't use anything other than a0!
movea.l (sp)+,a0
rte
btw you can use indirect jump, jsr ([extraroutine]), it's slower but spares that a0 reg.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
jsr (a0) from within vbl
|
Per Almered (XiA)
|
Jul,23.2009-18:51
|
Re: jsr (a0) from within vbl
|
PeP
|
Jul,23.2009-19:28
|
Re: jsr (a0) from within vbl
|
Per Almered (XiA)
|
Jul,23.2009-21:38
|
Re: jsr (a0) from within vbl
|
PeP
|
Jul,24.2009-01:46
|
Re: jsr (a0) from within vbl
|
Per Almered/XiA
|
Jul,24.2009-06:39
|
Re: jsr (a0) from within vbl
|
mikro
|
Jul,24.2009-08:40
|
Re: jsr (a0) from within vbl
|
mikro
|
Jul,24.2009-08:44
|
Re: jsr (a0) from within vbl
|
Per Almered (XiA)
|
Jul,24.2009-09:26
|
Re: jsr (a0) from within vbl
|
mikro
|
Jul,24.2009-10:35
|
Re: jsr (a0) from within vbl
|
PeP
|
Jul,24.2009-15:40
|
Re: jsr (a0) from within vbl
|
Per Almered (XiA)
|
Jul,24.2009-22:13
|
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.
|