V3.8: Fix SF Memory

This commit is contained in:
sanni 2019-09-08 15:53:46 +02:00
parent 25539884aa
commit 9b2011c95c
3 changed files with 500 additions and 212 deletions

View File

@ -2,8 +2,8 @@
Cartridge Reader for Arduino Mega2560
Author: sanni
Date: 07-09-2019
Version: 3.7
Date: 08-09-2019
Version: 3.8
SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/adafruit/Adafruit_SSD1306
@ -41,7 +41,7 @@
**********************************************************************************/
#include <SdFat.h>
char ver[5] = "3.7";
char ver[5] = "3.8";
/******************************************
Options
@ -248,6 +248,7 @@ void draw_progressbar(uint32_t processedsize, uint32_t totalsize);
//******************************************
// Bitmaps
//******************************************
#ifdef fast_start
static const unsigned char PROGMEM icon [] = {
0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0x00,
0x00, 0x00, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xFF, 0xFF,
@ -286,6 +287,7 @@ static const unsigned char PROGMEM icon [] = {
0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x01, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80
};
#endif
static const unsigned char PROGMEM sig [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,6 @@ int romSpeed = 0; // 0 = SlowROM, 3 = FastROM
int romChips = 0; // 0 = ROM only, 1 = ROM & RAM, 2 = ROM & Save RAM, 3 = ROM & DSP1, 4 = ROM & RAM & DSP1, 5 = ROM & Save RAM & DSP1, 19 = ROM & SFX
// 227 = ROM & RAM & GameBoy data, 243 = CX4, 246 = ROM & DSP2
byte romSizeExp = 0; // ROM-Size Exponent
int cartCountry = 255;
boolean NP = false;
byte cx4Type = 0;
byte cx4Map = 0;
@ -846,7 +845,7 @@ boolean checkcart_SNES() {
}
// Check Cart Country
cartCountry = readBank_SNES(0, 65497);
//int cartCountry = readBank_SNES(0, 65497);
// ROM Version
romVersion = readBank_SNES(0, 65499);