Repository navigation
Logan SHA multiwrite (special demonstration)
This is a one-off demonstration that the SHA opcode (specifically opcode $93) can cause writing to multiple bytes with a single write cycle.
This rom displays 8 sprites overlaying the voltage output in the following configuration:
0
0
0
0
0
0
0
0
But you'll usually see this
1
0
0
0
0
0
0
The first sprite reports how many locations were written to, and the Ycoord of the sprite is the erroneous written value for that page.
My frontloader NES has a warmup transition period that looks like this:
2
0
0
0
0
0
The SHA opcode in this case is causing a write to BOTH $0600 and $0700 at the exact same time, since the address bus is unstable during the write, and the SRAM chip doesn't know what to do.
Copy both logan.nes and logan.rbf to a folder together on your SD card to see the behavior.
Example image running on hardware:
