.segment "HEADER" .byte $4E, $45, $53, $1A ;Nes header identifier .byte 2 ;2x 16KB PRG code .byte 1 ; 1x 8KB CHR Data .byte $01, $00 ; mapper 0, vertical mirroring .segment "VECTORS" .addr 0 ; nmi interrupt .addr reset ; reset interrupt .addr 0 ; external interrupt .segment "STARTUP" .segment "CODE" reset: ldx #3 inx inx dex ldy #7 dey rts