yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::emu::memory Namespace Reference

Namespaces

namespace  dma
 

Classes

struct  CpuCallbacks
 
struct  DmaChannel
 
class  Memory
 Memory interface. More...
 
class  MemoryImpl
 Implementation of the Memory interface for emulating memory in a SNES system. More...
 
class  MockClock
 Mock CPU class for testing. More...
 
class  MockMemory
 A mock implementation of the Memory class. More...
 
class  RomInfo
 

Typedefs

typedef struct yaze::app::emu::memory::DmaChannel DmaChannel
 
typedef struct yaze::app::emu::memory::CpuCallbacks CpuCallbacks
 

Enumerations

enum  RomSpeed { SLOW_ROM = 0x00 , FAST_ROM = 0x07 }
 
enum  BankSize { LOW_ROM = 0x00 , HI_ROM = 0x01 }
 
enum  RomType {
  ROM_DEFAULT = 0x00 , ROM_RAM = 0x01 , ROM_SRAM = 0x02 , ROM_DSP1 = 0x03 ,
  ROM_DSP1_RAM = 0x04 , ROM_DSP1_SRAM = 0x05 , FX = 0x06
}
 
enum  RomSize {
  SIZE_2_MBIT = 0x08 , SIZE_4_MBIT = 0x09 , SIZE_8_MBIT = 0x0A , SIZE_16_MBIT = 0x0B ,
  SIZE_32_MBIT = 0x0C
}
 
enum  SramSize { NO_SRAM = 0x00 , SRAM_16_KBIT = 0x01 , SRAM_32_KBIT = 0x02 , SRAM_64_KBIT = 0x03 }
 
enum  CountryCode { JAPAN = 0x00 , USA = 0x01 , EUROPE_OCEANIA_ASIA = 0x02 }
 
enum  License { INVALID = 0 , NINTENDO = 1 , ZAMUSE = 5 , CAPCOM = 8 }
 

Functions

void DrawSnesMemoryMapping (const MemoryImpl &memory)
 

Variables

constexpr uint32_t kROMStart = 0x008000
 
constexpr uint32_t kROMSize = 0x200000
 
constexpr uint32_t kRAMStart = 0x7E0000
 
constexpr uint32_t kRAMSize = 0x20000
 

Typedef Documentation

◆ DmaChannel

typedef struct yaze::app::emu::memory::DmaChannel yaze::app::emu::memory::DmaChannel

◆ CpuCallbacks

typedef struct yaze::app::emu::memory::CpuCallbacks yaze::app::emu::memory::CpuCallbacks

Enumeration Type Documentation

◆ RomSpeed

Enumerator
SLOW_ROM 
FAST_ROM 

Definition at line 35 of file memory.h.

◆ BankSize

Enumerator
LOW_ROM 
HI_ROM 

Definition at line 37 of file memory.h.

◆ RomType

Enumerator
ROM_DEFAULT 
ROM_RAM 
ROM_SRAM 
ROM_DSP1 
ROM_DSP1_RAM 
ROM_DSP1_SRAM 
FX 

Definition at line 39 of file memory.h.

◆ RomSize

Enumerator
SIZE_2_MBIT 
SIZE_4_MBIT 
SIZE_8_MBIT 
SIZE_16_MBIT 
SIZE_32_MBIT 

Definition at line 49 of file memory.h.

◆ SramSize

Enumerator
NO_SRAM 
SRAM_16_KBIT 
SRAM_32_KBIT 
SRAM_64_KBIT 

Definition at line 57 of file memory.h.

◆ CountryCode

Enumerator
JAPAN 
USA 
EUROPE_OCEANIA_ASIA 

Definition at line 64 of file memory.h.

◆ License

Enumerator
INVALID 
NINTENDO 
ZAMUSE 
CAPCOM 

Definition at line 71 of file memory.h.

Function Documentation

◆ DrawSnesMemoryMapping()

void yaze::app::emu::memory::DrawSnesMemoryMapping ( const MemoryImpl & memory)

Definition at line 221 of file memory.cc.

Variable Documentation

◆ kROMStart

uint32_t yaze::app::emu::memory::kROMStart = 0x008000
constexpr

Definition at line 102 of file memory.h.

◆ kROMSize

uint32_t yaze::app::emu::memory::kROMSize = 0x200000
constexpr

Definition at line 103 of file memory.h.

◆ kRAMStart

uint32_t yaze::app::emu::memory::kRAMStart = 0x7E0000
constexpr

Definition at line 104 of file memory.h.

◆ kRAMSize

uint32_t yaze::app::emu::memory::kRAMSize = 0x20000
constexpr

Definition at line 105 of file memory.h.