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

Atari coding BBS
 
Re: jsr (a0) from within vbl
Posted by: mikro Jul,24.2009-08:40 

You don't terminate with RTE ('vbl' routine, as PeP mentioned, RTS can be used only in deferred VBL, not in direct $70)

Then there might be too early VBL init, i.e. you set VBL handler and only then you set that 'extraroutine', i.e. VBL might jump at null pointer.

Last thing I can think of is forgotten register save/restore, i.e. if your "extraroutine" uses some regs, don't forget to save/restore them (movem instruction), if you use deferred VBL, you don't have to do this but again, $70 is direct VBL call, you must do everything by yourself.







[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


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