I am still trucking away in attempting to write an SNES emulator and have been using SMW as a test ROM. I have read this document here on LoROM.
http://www.cs.umb.edu/~bazz/snes/cartridges/lorom.html
Before, I was just straight reading bytes from the ROM into an array to test my instructions... But now I want to properly map the data into my array at the correct addresses to properly test branching and jumping.
This leads me to the following question...
When the document says that ROM is mapped from $00:8000-$00:FFFF -> $3F:8000-$3F:FFFF, then $40:8000-$40:FFFF -> $6F:8000-$6F:FFFF, and $70:8000-$7D:FFFF, etc... Does that mean we just load 32KB sequentially at those banks?
Like, the first 32KB goes into $00:8000->$00:FFFF then the next 32KB of the ROM goes into $01:8000->$01:FFFF and so on... Then once the $00-$3F banks are filled, we proceed to $40-$6F and so on...
Can anyone confirm this for me? THANKS!
http://www.cs.umb.edu/~bazz/snes/cartridges/lorom.html
Before, I was just straight reading bytes from the ROM into an array to test my instructions... But now I want to properly map the data into my array at the correct addresses to properly test branching and jumping.
This leads me to the following question...
When the document says that ROM is mapped from $00:8000-$00:FFFF -> $3F:8000-$3F:FFFF, then $40:8000-$40:FFFF -> $6F:8000-$6F:FFFF, and $70:8000-$7D:FFFF, etc... Does that mean we just load 32KB sequentially at those banks?
Like, the first 32KB goes into $00:8000->$00:FFFF then the next 32KB of the ROM goes into $01:8000->$01:FFFF and so on... Then once the $00-$3F banks are filled, we proceed to $40-$6F and so on...
Can anyone confirm this for me? THANKS!