V17D: Updated Version String

This commit is contained in:
sanni 2016-07-31 09:55:54 +02:00 committed by GitHub
parent 9930fcc8b3
commit 282aa947ea
2 changed files with 16 additions and 14 deletions

View File

@ -2,8 +2,8 @@
Nintendo Cart Reader for Arduino Mega2560 Nintendo Cart Reader for Arduino Mega2560
Author: sanni Author: sanni
Date: 2016-07-29 Date: 2016-07-31
Version: V17C Version: V17D
SD lib: https://github.com/greiman/SdFat SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/adafruit/Adafruit_SSD1306 LCD lib: https://github.com/adafruit/Adafruit_SSD1306
@ -26,10 +26,12 @@
Shaun Taylor - N64 controller CRC functions Shaun Taylor - N64 controller CRC functions
Angus Gratton - CRC32 Angus Gratton - CRC32
Tamanegi_taro - SA1 fix Tamanegi_taro - SA1 fix
Snes9x - SuperFX Sram Fix Snes9x - SuperFX sram fix
zzattack - multigame pcb fix
Pickle - SDD1 fix
**********************************************************************************/ **********************************************************************************/
char ver[5] = "V17C"; char ver[5] = "V17D";
/****************************************** /******************************************
Choose Output Choose Output
@ -74,7 +76,7 @@ Si5351 clockgen;
// set pins of red, green and blue // set pins of red, green and blue
RGBTools rgb(12, 11, 10); RGBTools rgb(12, 11, 10);
typedef enum COLOR_T{ typedef enum COLOR_T {
blue_color, blue_color,
red_color, red_color,
purple_color, purple_color,

View File

@ -516,7 +516,7 @@ boolean checkcart_SNES() {
romSize = 1; romSize = 1;
while (romSizeExp--) while (romSizeExp--)
romSize *= 2; romSize *= 2;
if ((romType == EX) || (romType == SA)) { if ((romType == EX) || (romType == SA)) {
numBanks = long(romSize) * 2; numBanks = long(romSize) * 2;
} }
@ -835,17 +835,17 @@ void readROM_SNES() {
controlIn_SNES(); controlIn_SNES();
byte initialSOMap = readBank_SNES(0, 18439); byte initialSOMap = readBank_SNES(0, 18439);
for (int currMemmap=0; currMemmap < (numBanks / 16); currMemmap++) { for (int currMemmap = 0; currMemmap < (numBanks / 16); currMemmap++) {
dataOut(); dataOut();
controlOut_SNES(); controlOut_SNES();
writeBank_SNES(0, 18439, currMemmap); writeBank_SNES(0, 18439, currMemmap);
dataIn(); dataIn();
controlIn_SNES(); controlIn_SNES();
for (int currBank = 240; currBank < 256; currBank++) { for (int currBank = 240; currBank < 256; currBank++) {
for (long currByte = 0; currByte < 65536; currByte += 512) { for (long currByte = 0; currByte < 65536; currByte += 512) {
for (unsigned long c = 0; c < 512; c++) { for (unsigned long c = 0; c < 512; c++) {
@ -855,15 +855,15 @@ void readROM_SNES() {
} }
} }
} }
dataOut(); dataOut();
controlOut_SNES(); controlOut_SNES();
writeBank_SNES(0, 18439, initialSOMap); writeBank_SNES(0, 18439, initialSOMap);
dataIn(); dataIn();
controlIn_SNES(); controlIn_SNES();
} }
// Close the file: // Close the file:
myFile.close(); myFile.close();