Hi guys!
I have trouble in put a bitmap in a single rom...
I see this crash, my code is:
I wanted that my rom showed to the content of the archive 'demo.chr'
Please help-me
Thanks!!!
I have trouble in put a bitmap in a single rom...
I see this crash, my code is:
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 "nesticle.pal" ;palette data
.bank 1
.org $FFFA
.dw 0 ;(NMI_Routine)
.dw Start ;(Reset_Routine)
.dw 0 ;(IRQ_Routine)
.bank 2
.org $0000
.incbin "demo.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 "nesticle.pal" ;palette data
.bank 1
.org $FFFA
.dw 0 ;(NMI_Routine)
.dw Start ;(Reset_Routine)
.dw 0 ;(IRQ_Routine)
.bank 2
.org $0000
.incbin "demo.chr" ;gotta be 8192 bytes long
I wanted that my rom showed to the content of the archive 'demo.chr'
Please help-me
Thanks!!!