Nerdtracker player in NESASM: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(link to both parent and child categories)
 
m (1 revision: Rest of pages not related to reference)
 

Latest revision as of 04:22, 13 June 2009

   .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