Hi. My game needs 8k.
I use Visual Studio.
Bank 0
org $1000
rorg $1000
;code
org $1FFA
rorg $FFFA
Bank 1
org $2000
rorg $1000
;code
org $2FFA
rorg $FFFA
I know how to swtch the banks, thank to 8bitworkshop.
My question.
The code must be in the same file? Because I have "Failed to create compiled file" error. No oth
Yes, reading/writing to 1FF8 (for bank 0) or 1FF9 (for bank 1) will switch banks in the 8k/F8 bank-switching scheme. But, you need to be careful because the bank-switching happens immediately.
The code in 8bitworkshop is quite complex. I don't really have any experience with using techniques like that. In PaintTheCity, I use a much simpler technique which involves defining a jump table at the beginning of each bank. (ChaoticGrill also uses a similar jump-table technique)