| R/W | ADR | HEXADR | NAME | DESCRIPTION | OS | DEFAULT VALUE |
|---|---|---|---|---|---|---|
| read/write | 512,513 | $0200,$0201 | VDSLST | Vector to List Interrupt routine | both | 59315/$E7B3 (a RTI instruction) |
Attention:
;we need to push to stack, first A, then X, then Y
PHA ;push ACCU to Stack
TXA ;transfer X to ACCU
PHA ;push ACCU (now X) to Stack
TYA ;transfer Y to ACCU
PHA ;push ACCU (now Y) to Stack
;
;... routine goes in here ...
;
;now we need to pull from stack first Y, then X, then Y
PLA ;pull Y from STACK to ACCU
TAY ;transfer ACCU to Y
PLA ;pull X from STACK to ACCU
TAX ;transfer ACCU to X
PLA ;pull ACCU from STACK
RTI ;end interrupt routine with ReTurn from Interrupt
see also: Display List Topics, NMIEN, Display List Instruction table