.chr file is not getting switched and also not getting loaded.........
the details are:
the code I used is:
the header:
jsr for initializing the chr and nametable....
the code is:
LDX #%00000011
jsr initMMC1Mapper
.............................................................................................
initMMC1Mapper:
LDA #$80
STA $8000
TXA
JSR setMMC1ControlMode
LDA #$01
JSR setCHRPage0000
LDA #$00
JSR setCHRPage1000
LDA #$00
JSR setPRGBank
RTS
; ----------------------------------------------------
setMMC1ControlMode:
; lda var
; and %01111111
; sta $8000
STA $8000
LSR A
STA $8000
LSR A
STA $8000
LSR A
STA $8000
LSR A
STA $8000
RTS
setCHRPage0000:
;lda var
; and %01111111
; sta $a000
STA $A000
LSR A
STA $A000
LSR A
STA $A000
LSR A
STA $A000
LSR A
STA $A000
RTS
setCHRPage1000:
;lda var
;and %01111111
;sta $c000
STA $C000
LSR A
STA $C000
LSR A
STA $C000
LSR A
STA $C000
LSR A
STA $C000
RTS
setPRGBank:
;lda var
;and %01111111
;sta $e000
STA $E000
LSR A
STA $E000
LSR A
STA $E000
LSR A
STA $E000
LSR A
STA $E000
RTS
...................................................................................
can any one please say me where i went wrong....
and the compiling code I used was:
asm6 sprite.asm vishu.bin
copy /b vishu.bin+vishu.bin+mmc1.chr sprite.nes
pause
please do reply.... it would be a great help for me
the details are:
the code I used is:
the header:
jsr for initializing the chr and nametable....
the code is:
LDX #%00000011
jsr initMMC1Mapper
.............................................................................................
initMMC1Mapper:
LDA #$80
STA $8000
TXA
JSR setMMC1ControlMode
LDA #$01
JSR setCHRPage0000
LDA #$00
JSR setCHRPage1000
LDA #$00
JSR setPRGBank
RTS
; ----------------------------------------------------
setMMC1ControlMode:
; lda var
; and %01111111
; sta $8000
STA $8000
LSR A
STA $8000
LSR A
STA $8000
LSR A
STA $8000
LSR A
STA $8000
RTS
setCHRPage0000:
;lda var
; and %01111111
; sta $a000
STA $A000
LSR A
STA $A000
LSR A
STA $A000
LSR A
STA $A000
LSR A
STA $A000
RTS
setCHRPage1000:
;lda var
;and %01111111
;sta $c000
STA $C000
LSR A
STA $C000
LSR A
STA $C000
LSR A
STA $C000
LSR A
STA $C000
RTS
setPRGBank:
;lda var
;and %01111111
;sta $e000
STA $E000
LSR A
STA $E000
LSR A
STA $E000
LSR A
STA $E000
LSR A
STA $E000
RTS
...................................................................................
can any one please say me where i went wrong....
and the compiling code I used was:
asm6 sprite.asm vishu.bin
copy /b vishu.bin+vishu.bin+mmc1.chr sprite.nes
pause
please do reply.... it would be a great help for me