Skip to content

Logan SHA multiwrite (special demonstration)

Choose a tag to compare

@domgetter domgetter released this 17 Sep 03:48
· 1 commit to show_SHA_writing_multiple since this release

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:

Logan multiwrite picture example