The emulator defaults to 1 (peek(40801)), and seems to go to bank 64 (for 512k)
Where else in computing are things numbered from 1... N? Binary goes from 0 to 255 (1111 1111), not 0000 0001 to 1 0000 0000 (1 to 256)
poke 40801,0 works (peek(40801) then returns 0)
but then if you poke $a000,x, you only get 0 back, no matter the value of x
This is very strange behavior, and makes programming banks more complex, as checking for a 1 limit, or worse, a 256 limit (rather than 255) is a pain (if 2MB of high mem)
Actually, I just realized, this makes accessing bank 256 impossible. 40801 can't hold 256.
Apologies if this is a known issue, I did some searching but couldn't find anything on this.
edit: looks like, with 512k, bank 64 isn't accessible
As far as I can tell, there is no Bank 0?
The emulator defaults to 1 (peek(40801)), and seems to go to bank 64 (for 512k)
Where else in computing are things numbered from 1... N? Binary goes from 0 to 255 (1111 1111), not 0000 0001 to 1 0000 0000 (1 to 256)
poke 40801,0 works (peek(40801) then returns 0)
but then if you poke $a000,x, you only get 0 back, no matter the value of x
This is very strange behavior, and makes programming banks more complex, as checking for a 1 limit, or worse, a 256 limit (rather than 255) is a pain (if 2MB of high mem)
Actually, I just realized, this makes accessing bank 256 impossible. 40801 can't hold 256.
Apologies if this is a known issue, I did some searching but couldn't find anything on this.
edit: looks like, with 512k, bank 64 isn't accessible
Edited by novemixShare this post
Link to post
Share on other sites