OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
OSCR::Cores::Leapster Namespace Reference

System core for the Leapster. More...

Classes

struct  crdbRecord

Functions

void menu ()
void openCRDB ()
void closeCRDB ()
void cartOn ()
void cartOff ()
void printHeader ()
uint16_t read_rom_word (uint32_t address)
uint8_t read_flash_byte (uint32_t address)
void write_flash_byte (uint32_t address, uint8_t data)
void checkStart ()
void findTable (uint32_t startAddr, uint32_t endAddr)
void readTable (uint32_t startAddr, uint32_t endAddr)
void readROM ()
void setROMSize ()
void dataOut ()
void dataIn ()
void idFLASH ()
void resetFLASH ()
void eraseFLASH ()
void programFLASH ()
void statusFLASH ()
void readFLASH ()
void writeFLASH ()
void eepromStart ()
void eepromSet0 ()
void eepromSet1 ()
void eepromDevice ()
void eepromSetDeviceAddress (uint32_t addrhi)
void eepromStatus ()
void eepromReadMode ()
void eepromWriteMode ()
void eepromReadData ()
void eepromWriteData (uint8_t data)
void eepromStop ()
void eepromSetAddress (uint16_t address)
void readEepromByte (uint16_t address)
void writeEepromByte (uint16_t address)
void readEEP ()
void writeEEP ()
void setCart ()

Variables

uint8_t LEAPSTER [] = {4, 8, 16}
uint8_t leaplo = 0
uint8_t leaphi = 2
uint8_t leapsize
uint8_t newleapsize
uint8_t tempbyte
uint16_t tempword
uint16_t ptrword
uint16_t tempcheck
constexpr uint8_t const LEAP [] = {'L', 'E', 'A', 'P'}
constexpr uint8_t const TBL [] = {0x01, 0x00, 0x00, 0x01}
constexpr uint8_t const TXT [] = {0x04, 0x00, 0x00, 0x01}
constexpr uint8_t const VER [] = {0x0A, 0x00, 0x00, 0x01}
constexpr uint8_t const TTL [] = {0x0B, 0x00, 0x00, 0x01}
constexpr uint8_t const END [] = {0x10, 0x00, 0x00, 0x01}
uint16_t sentenceAddr = 0
uint16_t versionAddr = 0
uint16_t titleAddr = 0
char ROMVersion [20]
char ROMTitle [50]
constexpr uint8_t const LeapCheck []
constexpr char const PROGMEM leapmenuItem4 [] = "Read EEPROM"
constexpr char const PROGMEM leapmenuItem5 [] = "Write EEPROM"
constexpr char const PROGMEM leapmenuItem6 [] = "Read FLASH"
constexpr char const PROGMEM leapmenuItem7 [] = "Write FLASH"
constexpr char const *const PROGMEM menuOptions []
CRDatabase * crdb
crdbRecordromDetail
StandardRecord * romRecord
uint16_t flashid

Detailed Description

System core for the Leapster.

Variable Documentation

◆ LeapCheck

uint8_t const OSCR::Cores::Leapster::LeapCheck[]
constexpr
Initial value:
= {
0x4C, 0x69, 0x6C, 0x20, 0x64, 0x75, 0x63, 0x6B, 0x65, 0x64, 0x2E, 0x20, 0x20, 0x54, 0x68, 0x65,
0x20, 0x6A, 0x65, 0x74, 0x20, 0x7A, 0x69, 0x70, 0x70, 0x65, 0x64, 0x20, 0x70, 0x61, 0x73, 0x74,
0x20, 0x68, 0x65, 0x72, 0x20, 0x68, 0x65, 0x61, 0x64, 0x2E, 0x20, 0x20, 0x44, 0x75, 0x73, 0x74,
0x20, 0x66, 0x6C, 0x65, 0x77, 0x2C, 0x20, 0x4C, 0x69, 0x6C, 0x20, 0x73, 0x6E, 0x65, 0x65, 0x7A,
0x65, 0x64, 0x2C, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x4C, 0x65, 0x61, 0x70, 0x20, 0x74, 0x75, 0x72,
0x6E, 0x65, 0x64, 0x20, 0x72, 0x65, 0x64, 0x2E, 0x20, 0x20, 0x54, 0x68, 0x65, 0x6E, 0x20, 0x4C,
0x69, 0x6C, 0x20, 0x67, 0x6F, 0x74, 0x20, 0x75, 0x70, 0x2C, 0x20, 0x61, 0x62, 0x6F, 0x75, 0x74,
0x20, 0x74, 0x6F, 0x20, 0x79, 0x65, 0x6C, 0x6C, 0x2E, 0x20, 0x20, 0x4C, 0x65, 0x61, 0x70, 0x20,
0x67, 0x61, 0x73, 0x70, 0x65, 0x64, 0x2C, 0x20, 0x22, 0x4C, 0x6F, 0x6F, 0x6B, 0x2C, 0x20, 0x4C,
0x69, 0x6C, 0x21, 0x20, 0x20, 0x59, 0x6F, 0x75, 0x72, 0x20, 0x74, 0x6F, 0x6F, 0x74, 0x68, 0x21,
0x20, 0x20, 0x49, 0x74, 0x20, 0x66, 0x65, 0x6C, 0x6C, 0x21, 0x22, 0x00
}

◆ menuOptions

char const* const PROGMEM OSCR::Cores::Leapster::menuOptions[]
constexpr
Initial value:
= {
OSCR::Strings::MenuOptions::SelectCart,
OSCR::Strings::MenuOptions::ReadROM,
OSCR::Strings::MenuOptions::SetSize,
leapmenuItem4,
leapmenuItem5,
leapmenuItem6,
leapmenuItem7,
OSCR::Strings::MenuOptions::Back,
}