The main disadvantage of the good-old IGR is that the PIC does not save the current mode. E.g., if the SuperCIC is in PAL mode and you change to NTSC mode with the controller, you will recognize that the console is back in the SuperCIC mode (pass through of the SuperCIC's mode, in this example PAL) on the next start up. Consequently, the IGR needs his own regiontimeout for the startup procedure of the console if there is no region patching installed.
(regiontimeout = displaying the cartridge mode within the first 9s after startup to suppress "This Gamepak is not designed for your SFC/SNES" or similar)
Further, the classical IGR does not recognize if the user wants to change the mode via the reset button (for what ever reason). As the SuperCIC and IGR are in a Master-Slave-Relationship for the output mode (Master=IGR, Slave=SuperCIC), the IGR has to switch to the SuperCIC mode in such a case.
Next to it, I've add some more features - see the list
Pressing: R + L + Select + ...
- ... Start: normal reset
- ... X: double/long reset to enter main menu of sd2snes
- ... A: NTSC mode
- ... B: Auto mode (new)
- ... Y: PAL mode
- ... D-Pad left OR D-Pad right: SuperCIC pass through mode (reassigned, this is L+R+Sel+B in the 'classical' IGR)
- ... D-Pad up: switching on and off the regiontimeout (new feature and controllable, regiontimeout even appears after a (long) reset if on)
(LED confirms with "off -> red -> yellow -> green -> off -> back to mode color" for "on" and "off -> green -> yellow -> red -> off -> back to mode color" for "off")
- ... D-Pad down: switching on and off the $213f-D4-Patch if installed (new)
(LED confirms with "off -> green -> off -> green -> off -> back to mode color" for "on" and "off -> red -> off -> red -> off -> back to mode color" for "off")
Note, that the regiontimeout of the SuperCIC can be switched off by assigning Pin4 to Ground. Also the pinout of the IGR has been slightly changed. If there are any questions, please ask
You find the code and hex for it in my fork of the sd2snes-repository:
Link to my fork
For the region patching, based on Ikari's idea:
The region patching is done by observing the address bus B. If the register $213f is read, the bit 4 at the data bus is written to the consoles output mode, i.e., to '0' for NTSC and '1' for PAL. Normally, this register is read at the startup of a game: this is what the regiontimeout of the SuperCIC/'my' IGR is for. In some games, this register is read periodically, e.g., after a stage, so you are only able to play that game in his native mode. (Super) Street Fighter II is one example if I have it correctly in my mind. Without a region patching you are not able to play such games in the non-native mode.
However, if the register is read, you have to 'override' this bit at the data bus. You get the cartridge region from pin3 of the SuperCIC (also used for the auto mode of 'my' IGR described above). The whole address bus B can be found at the edges of the cartridge slot and the data bus in the middle (pin50 is bit 4 of the data bus).
The solution is based on Ikari's idea to use three logic ICs: an inverter (74*04), a NAND13 (you won't find a NAND9) (74*133) and a gate (74HC(T)125 - please use the HC(T), a LS won't do the job). Ikari designed a small schematic for it:
Ikaris Schematic.
Some notes about this mod:
- During my testphases, I recognized that you have to use multiple gates of the 74HC125 in parallel to get this mod work!!! Ikari proposed only one gate, but this won't work in most cases.
- One of the four left input pins of the 74*133 I use for the IGR to switch the region patching on and off.
- I've written a tutorial and published it, e.g., on Circuit-Board.de. It's in German but is has a lot of pictures
One might think about splitting the whole PCB design into three PCBs one for the SuperCIC and IGR, one for the additional clock circuit (1Chip-SNES) and one for the region patching mod, but I decided to put them all together
