mirror of
https://github.com/sanni/cartreader.git
synced 2025-01-27 04:05:26 +01:00
V3.8: Fix SF Memory
This commit is contained in:
parent
25539884aa
commit
9b2011c95c
@ -2,8 +2,8 @@
|
|||||||
Cartridge Reader for Arduino Mega2560
|
Cartridge Reader for Arduino Mega2560
|
||||||
|
|
||||||
Author: sanni
|
Author: sanni
|
||||||
Date: 07-09-2019
|
Date: 08-09-2019
|
||||||
Version: 3.7
|
Version: 3.8
|
||||||
|
|
||||||
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
|
||||||
@ -41,7 +41,7 @@
|
|||||||
**********************************************************************************/
|
**********************************************************************************/
|
||||||
#include <SdFat.h>
|
#include <SdFat.h>
|
||||||
|
|
||||||
char ver[5] = "3.7";
|
char ver[5] = "3.8";
|
||||||
|
|
||||||
/******************************************
|
/******************************************
|
||||||
Options
|
Options
|
||||||
@ -248,6 +248,7 @@ void draw_progressbar(uint32_t processedsize, uint32_t totalsize);
|
|||||||
//******************************************
|
//******************************************
|
||||||
// Bitmaps
|
// Bitmaps
|
||||||
//******************************************
|
//******************************************
|
||||||
|
#ifdef fast_start
|
||||||
static const unsigned char PROGMEM icon [] = {
|
static const unsigned char PROGMEM icon [] = {
|
||||||
0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0x00,
|
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,
|
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, 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
|
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static const unsigned char PROGMEM sig [] = {
|
static const unsigned char PROGMEM sig [] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
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
@ -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
|
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
|
// 227 = ROM & RAM & GameBoy data, 243 = CX4, 246 = ROM & DSP2
|
||||||
byte romSizeExp = 0; // ROM-Size Exponent
|
byte romSizeExp = 0; // ROM-Size Exponent
|
||||||
int cartCountry = 255;
|
|
||||||
boolean NP = false;
|
boolean NP = false;
|
||||||
byte cx4Type = 0;
|
byte cx4Type = 0;
|
||||||
byte cx4Map = 0;
|
byte cx4Map = 0;
|
||||||
@ -846,7 +845,7 @@ boolean checkcart_SNES() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check Cart Country
|
// Check Cart Country
|
||||||
cartCountry = readBank_SNES(0, 65497);
|
//int cartCountry = readBank_SNES(0, 65497);
|
||||||
|
|
||||||
// ROM Version
|
// ROM Version
|
||||||
romVersion = readBank_SNES(0, 65499);
|
romVersion = readBank_SNES(0, 65499);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user