Hey all.
I started trying to get a song to play from my nsf. I'm obviously doing something wrong since the song won't play. Here's some snips of what I have:
When I boot it up in Nintendulator, you can hear the speakers kick on from initializing the sound... but then no music. I'm not quite sure what is wrong. If anyone could help me out as to what I'm doing wrong, I'd appreciate it.
I started trying to get a song to play from my nsf. I'm obviously doing something wrong since the song won't play. Here's some snips of what I have:
Code:
.org $c000
thesong:
.incbin "sleuth.nsf"
rts
... ; vblank, RAM clear, etc.
jsr sound
... ; code
sound:
lda #%00011111
sta $4015
rts
song1:
lda #$0
ldx #$0
jsr thesong
lda #%10000000
sta $2000
jsr sound
rts
... ; more code
vblank: ; Actually is NMI, but I'm following NES101 and he called it Vblank :P
jsr controller
jsr sound
thesong:
.incbin "sleuth.nsf"
rts
... ; vblank, RAM clear, etc.
jsr sound
... ; code
sound:
lda #%00011111
sta $4015
rts
song1:
lda #$0
ldx #$0
jsr thesong
lda #%10000000
sta $2000
jsr sound
rts
... ; more code
vblank: ; Actually is NMI, but I'm following NES101 and he called it Vblank :P
jsr controller
jsr sound
When I boot it up in Nintendulator, you can hear the speakers kick on from initializing the sound... but then no music. I'm not quite sure what is wrong. If anyone could help me out as to what I'm doing wrong, I'd appreciate it.