So,yeah,i tried,seriously tried...to find an answer,but i couldn't understand it.
Ok,so My game is using a UNROM(mapper2),with 4 banks:
(Note:NESASM using only 4 kb for one bank,so 2 banks in NESASM is 1 bank in real ROM)
bank 0-Main code,
bank 1-Data about palletes,name tables etc.
bank 2-Some additional code.
bank 4-Nothing yet.
bank 6-GFX data.
bank 7-Vblank,NMI and RTI interupts.
OK,let's say...code in bank 0 needs to jump to code in bank 6.How can I do it?Writing a bank numer to $8000-$FFFF don't work.
I mean,this code don't work,game is crashing after trying to jump(?)
Settings of bank 2:
The Main.txt:
so $44 should be increased over and over,but instead game is crashing...
Ok,so My game is using a UNROM(mapper2),with 4 banks:
(Note:NESASM using only 4 kb for one bank,so 2 banks in NESASM is 1 bank in real ROM)
bank 0-Main code,
bank 1-Data about palletes,name tables etc.
bank 2-Some additional code.
bank 4-Nothing yet.
bank 6-GFX data.
bank 7-Vblank,NMI and RTI interupts.
OK,let's say...code in bank 0 needs to jump to code in bank 6.How can I do it?Writing a bank numer to $8000-$FFFF don't work.
I mean,this code don't work,game is crashing after trying to jump(?)
Code:
lda #$02 ;bank number
sta $c018
jmp inf_inc
sta $c018
jmp inf_inc
Settings of bank 2:
Code:
.bank 2
.org $8000
.include "a_e3/Main.txt"
.org $8000
.include "a_e3/Main.txt"
The Main.txt:
Code:
inf_inc:
inc $44
jmp inf_inc
inc $44
jmp inf_inc
so $44 should be increased over and over,but instead game is crashing...