mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-10 23:15:08 +01:00
Update FAIRCHILD.ino
Modifications for reading 4K carts
This commit is contained in:
parent
749d60de3f
commit
7cf03d3542
@ -456,10 +456,8 @@ void readROM_FAIRCHILD() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (cartsize == 0x1000) { // 4K
|
} else if (cartsize == 0x1000) { // 4K
|
||||||
// Skip BIOS/Blocks Code for 4K Carts - Tested with Pro Football 4K
|
// Skip BIOS/Blocks Code for 4K Carts - Tested with Alien Invasion/Pro Football
|
||||||
// Pro Football uses a DM74LS02N (Quad 2-Input NOR Gate) with two 2K ROM Chips
|
// Alien Invasion/Pro Football both use a DM74LS02N (Quad 2-Input NOR Gate) with two 2K ROM Chips
|
||||||
setROMC_FAIRCHILD(0x8); // Clear PC0
|
|
||||||
setREAD_FAIRCHILD();
|
|
||||||
uint16_t offset = z * 0x200;
|
uint16_t offset = z * 0x200;
|
||||||
for (int x = 0; x < 0x800 + offset; x++) { // Skip BIOS/Previous Blocks
|
for (int x = 0; x < 0x800 + offset; x++) { // Skip BIOS/Previous Blocks
|
||||||
readData_FAIRCHILD();
|
readData_FAIRCHILD();
|
||||||
@ -515,12 +513,10 @@ void read16K_FAIRCHILD() // Read 16K Bytes
|
|||||||
unsigned long cartsize = FAIRCHILD[fairchildsize] * 0x400;
|
unsigned long cartsize = FAIRCHILD[fairchildsize] * 0x400;
|
||||||
for (int y = 0; y < 0x20; y++) {
|
for (int y = 0; y < 0x20; y++) {
|
||||||
if (cartsize == 0x1000) { // 4K
|
if (cartsize == 0x1000) { // 4K
|
||||||
// Skip BIOS/Blocks Code for 4K Carts - Tested with Pro Football 4K
|
// Skip BIOS/Blocks Code for 4K Carts - Tested with Alien Invasion/Pro Football
|
||||||
// Pro Football uses a DM74LS02N (Quad 2-Input NOR Gate) with two 2K ROM Chips
|
// Alien Invasion/Pro Football both use a DM74LS02N (Quad 2-Input NOR Gate) with two 2K ROM Chips
|
||||||
// IF OTHER 4K CARTS DO NOT DUMP PROPERLY USING READROM
|
// IF CASINO POKER DOES NOT DUMP PROPERLY USING READROM
|
||||||
// TEST BY SETTING ROM SIZE TO 2K AND 4K THEN COMPARE 16K DUMPS
|
// TEST BY SETTING ROM SIZE TO 2K AND 4K THEN COMPARE 16K DUMPS
|
||||||
setROMC_FAIRCHILD(0x8); // Clear PC0
|
|
||||||
setREAD_FAIRCHILD();
|
|
||||||
uint16_t offset = y * 0x200;
|
uint16_t offset = y * 0x200;
|
||||||
for (int x = 0; x < 0x800 + offset; x++) { // Skip BIOS/Previous Blocks
|
for (int x = 0; x < 0x800 + offset; x++) { // Skip BIOS/Previous Blocks
|
||||||
readData_FAIRCHILD();
|
readData_FAIRCHILD();
|
||||||
@ -917,4 +913,4 @@ void setCart_FAIRCHILD() {
|
|||||||
#endif
|
#endif
|
||||||
//******************************************
|
//******************************************
|
||||||
// End of File
|
// End of File
|
||||||
//******************************************
|
//******************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user