[A83] Re: interrupt with rom calls


[Prev][Next][Index][Thread]

[A83] Re: interrupt with rom calls




> I don't know what you exactly mean with 'modifies the 
SP'. SP is the stack
> pointer, but you don't tell what you change about it. If 
it would give
> problems if there's data getting witten to the space 
below the SP, you
> won't be able to run an interrupt, as since when an 
interrupt occures the
> current PC will be pushed to the stack.

In my line drawing routine, I set SP to +/- 12. (So
I can go without any memory variables in the inner
loop.) I use shadow regs as well. Why not? Well,
$000C would be an interesting place for the stack, 
indeed. :)

PG






References: