Nerdtracker player in NESASM

From NESdev Wiki
Revision as of 07:22, 10 March 2006 by Quietust (talk | contribs) (link to both parent and child categories)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
   .inesprg 2
   .ineschr 0
   .inesmir 0
   .inesmap 0

   .bank 1
   .org $FFFA
   .dw nmi
   .dw reset
   .dw irq

init = $8083
play = $8080
load = $8000

   .bank 0

   .org $8000
   .incbin "song.nsf"

reset:

    lda #0 ; song 0
    ldx #0 ; NTSC speed
    jsr init

   lda #%10000000 
   sta $2000 ; <- enable play after init

loop:
   jmp loop


nmi:
    jsr play
irq:
    rti