|
hey,
i already came across one of the jump tables you mentioned and what you typed is exactly how they coded it! this is what it looks like:
this code segment starts at $8E04 in memory ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; asl a tay pla sta $04 pla sta $05 iny lda ($04),y sta $06 iny lda ($04),y sta $07 jmp ($0006) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
i found about 14 or 15 places in the source that do a jsr to the begining of that code segment...
something else interesting i have come across was right near the begining of the code...maybe before i just didnt understand NMI interupts but i thought it was cool to see that the program basically setups memory, the PPU, DMA sprite memory, etc... and then turns on the NMI interrupt flag and just continuously loops at one lable that jumps to itself while waiting for an NMI interupt to call the NMI interupt subroutine.
Andrew
|