So, I just began to program for the NES and am currently using xa65 on Raspberry Pi. My trouble, however, begins during assembly. Before I added the header, everything assemble just fine. But the newly generated file won't run in FCEUX, so I added the discount header seen in the source. Now, whenever I attempt to assemble my code it shoots me the following error :
The source code I am starting out with comes from the tutorial page:
Code:
.ORG $7FF0
Desktop/nes.s:line 1: 1000:Syntax error
.org $8000
Desktop/nes.s:line 19: 1012:Syntax error
Break after 2 errors
Desktop/nes.s:line 1: 1000:Syntax error
.org $8000
Desktop/nes.s:line 19: 1012:Syntax error
Break after 2 errors
The source code I am starting out with comes from the tutorial page:
Code:
.ORG $7FF0
header:
.db "NES", $1a
.db $00
.db $00
.db $02
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.org $8000
reset:
lda #$01 ; square 1
sta $4015
lda #$08 ; period low
sta $4002
lda #$02 ; period high
sta $4003
lda #$bf ; volume
sta $4000
forever:
jmp forever
header:
.db "NES", $1a
.db $00
.db $00
.db $02
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.db $00
.org $8000
reset:
lda #$01 ; square 1
sta $4015
lda #$08 ; period low
sta $4002
lda #$02 ; period high
sta $4003
lda #$bf ; volume
sta $4000
forever:
jmp forever