processor 65c816 option output-file,"main.lib" option output-format,lib org $8000 bank 0 ; Initialise SNES ; include "snes.inc" include "macros.inc" sei clc xce .x16 rep #$10 ldx #$1fff txs .x8 .m8 sep #$30 ; X,Y,A are 8 bit numbers include "init.inc" cli ; Loop forever. Forever: jmp Forever ; IRQ vectors ; vbl_handler: rti irq_handler: rti