VDSLST
Back to current versionRestore this version
R/WADRHEXADRNAMEDESCRIPTIONOSDEFAULT VALUE
read/write 512,513$0200,$0201VDSLSTVector to List Interrupt routineboth59315/$E7B3 (a RTI instruction)

Attention:

Example for saving and restoring the processor registers#

     ;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

Example for setting your interrupt routine#


see also: Display List Topics, NMIEN, Display List Instruction table