From 282aa947eae2f08d33e67afde7967e46cc33804f Mon Sep 17 00:00:00 2001 From: sanni Date: Sun, 31 Jul 2016 09:55:54 +0200 Subject: [PATCH] V17D: Updated Version String --- Cart_Reader/Cart_Reader.ino | 12 +++++++----- Cart_Reader/SNS.ino | 18 +++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index d213196..805263e 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -2,8 +2,8 @@ Nintendo Cart Reader for Arduino Mega2560 Author: sanni - Date: 2016-07-29 - Version: V17C + Date: 2016-07-31 + Version: V17D SD lib: https://github.com/greiman/SdFat LCD lib: https://github.com/adafruit/Adafruit_SSD1306 @@ -26,10 +26,12 @@ Shaun Taylor - N64 controller CRC functions Angus Gratton - CRC32 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 @@ -74,7 +76,7 @@ Si5351 clockgen; // set pins of red, green and blue RGBTools rgb(12, 11, 10); -typedef enum COLOR_T{ +typedef enum COLOR_T { blue_color, red_color, purple_color, diff --git a/Cart_Reader/SNS.ino b/Cart_Reader/SNS.ino index 8050834..07f10d3 100644 --- a/Cart_Reader/SNS.ino +++ b/Cart_Reader/SNS.ino @@ -516,7 +516,7 @@ boolean checkcart_SNES() { romSize = 1; while (romSizeExp--) romSize *= 2; - + if ((romType == EX) || (romType == SA)) { numBanks = long(romSize) * 2; } @@ -835,17 +835,17 @@ void readROM_SNES() { controlIn_SNES(); byte initialSOMap = readBank_SNES(0, 18439); - - for (int currMemmap=0; currMemmap < (numBanks / 16); currMemmap++) { + + for (int currMemmap = 0; currMemmap < (numBanks / 16); currMemmap++) { dataOut(); controlOut_SNES(); - + writeBank_SNES(0, 18439, currMemmap); dataIn(); controlIn_SNES(); - + for (int currBank = 240; currBank < 256; currBank++) { for (long currByte = 0; currByte < 65536; currByte += 512) { for (unsigned long c = 0; c < 512; c++) { @@ -855,15 +855,15 @@ void readROM_SNES() { } } } - + dataOut(); controlOut_SNES(); - + writeBank_SNES(0, 18439, initialSOMap); - + dataIn(); controlIn_SNES(); - } + } // Close the file: myFile.close();