when I try and compile anything with nesasm through DOS, it just crashes and gives this message -
- although I can get it to work if I drag and drop the code file onto nesasm. I'm trying to get the code from joker21's guide to work -
The guide states that I HAVE to have a 4kb test.chr, but I can't figure out how to get anything less than an 8kb CHR file (I am using YY-CHR)
If I try dragging and dropping onto nesasm with this code, nothing happens. But if I erase both .incbin lines from the code, it assembles.
Can anyone help me to a) get nesasm to work through DOS
b) get the .incbin command to work
c) get a 4kb CHR file
- I would be very grateful
- although I can get it to work if I drag and drop the code file onto nesasm. I'm trying to get the code from joker21's guide to work -
Code:
.inesprg 1
.ineschr 1
.inesmir 1
.inesmap 0
.org $8000
.bank 0
Start:
;this sets up the PPU
lda #%00001000
sta $2000
lda #%00011110
sta $2001
lda #$3F ;set ppu to start of palette
sta $2006
lda #$00
sta $2006
ldx #$00
loadpal:
lda titlepal, x ;loads a 32 byte palette
sta $2007
inx
cpx #$20 ;gotta be one extra b/c of inx
bne loadpal
Loop:
jmp Loop
titlepal: .incbin "test.pal" ;palette data
.bank 1
.org $FFFA
.dw 0 ;(NMI_Routine)
.dw Start ;(Reset_Routine)
.dw 0 ;(IRQ_Routine)
.bank 2
.org $0000
.incbin "test.chr" ;gotta be 8192 bytes long
.ineschr 1
.inesmir 1
.inesmap 0
.org $8000
.bank 0
Start:
;this sets up the PPU
lda #%00001000
sta $2000
lda #%00011110
sta $2001
lda #$3F ;set ppu to start of palette
sta $2006
lda #$00
sta $2006
ldx #$00
loadpal:
lda titlepal, x ;loads a 32 byte palette
sta $2007
inx
cpx #$20 ;gotta be one extra b/c of inx
bne loadpal
Loop:
jmp Loop
titlepal: .incbin "test.pal" ;palette data
.bank 1
.org $FFFA
.dw 0 ;(NMI_Routine)
.dw Start ;(Reset_Routine)
.dw 0 ;(IRQ_Routine)
.bank 2
.org $0000
.incbin "test.chr" ;gotta be 8192 bytes long
The guide states that I HAVE to have a 4kb test.chr, but I can't figure out how to get anything less than an 8kb CHR file (I am using YY-CHR)
If I try dragging and dropping onto nesasm with this code, nothing happens. But if I erase both .incbin lines from the code, it assembles.
Can anyone help me to a) get nesasm to work through DOS
b) get the .incbin command to work
c) get a 4kb CHR file
- I would be very grateful