Skip to content

MemConfig ​

cpp
#include <Components/Memory/MemoryTypes.h>
cpp
struct MemConfig

Defined in Components/Memory/MemoryTypes.h:246

Configuration options of the memory.

Public Attributes ​

ReturnNameDescription
i32chipSizeRAM size in bytes.
i32slowSizeSlow RAM size (in bytes).
i32fastSizeFast RAM size (in bytes).
i32romSizeROM size in bytes.
i32womSizeSize of the Write-Once-Memory (in bytes).
i32extSizeSize of the Extension ROM (in bytes).
u32extStartFirst memory page where the extended ROM is blended it.
u8busWidthData bus width (16 or 32).
boolsaveRomsIndicates if snapshots should contain Roms.
boolslowRamDelayIndicates if slow Ram accesses need a free bus.
boolslowRamMirrorSpecial ECS feature.
BankMapbankMapMemory layout.
RamInitPatternramInitPatternRam contents on startup.
UnmappedMemoryunmappingTypeSpecifies how to deal with unmapped memory.

chipSize ​

cpp
i32 chipSize

Defined in Components/Memory/MemoryTypes.h:249

RAM size in bytes.


slowSize ​

cpp
i32 slowSize

Defined in Components/Memory/MemoryTypes.h:250

Slow RAM size (in bytes).


fastSize ​

cpp
i32 fastSize

Defined in Components/Memory/MemoryTypes.h:251

Fast RAM size (in bytes).


romSize ​

cpp
i32 romSize

Defined in Components/Memory/MemoryTypes.h:254

ROM size in bytes.


womSize ​

cpp
i32 womSize

Defined in Components/Memory/MemoryTypes.h:255

Size of the Write-Once-Memory (in bytes).


extSize ​

cpp
i32 extSize

Defined in Components/Memory/MemoryTypes.h:256

Size of the Extension ROM (in bytes).


extStart ​

cpp
u32 extStart

Defined in Components/Memory/MemoryTypes.h:259

First memory page where the extended ROM is blended it.


busWidth ​

cpp
u8 busWidth

Defined in Components/Memory/MemoryTypes.h:262

Data bus width (16 or 32).


saveRoms ​

cpp
bool saveRoms

Defined in Components/Memory/MemoryTypes.h:265

Indicates if snapshots should contain Roms.


slowRamDelay ​

cpp
bool slowRamDelay

Defined in Components/Memory/MemoryTypes.h:268

Indicates if slow Ram accesses need a free bus.


slowRamMirror ​

cpp
bool slowRamMirror

Defined in Components/Memory/MemoryTypes.h:271

Special ECS feature.


bankMap ​

cpp
BankMap bankMap

Type: BankMap

Defined in Components/Memory/MemoryTypes.h:274

Memory layout.


ramInitPattern ​

cpp
RamInitPattern ramInitPattern

Type: RamInitPattern

Defined in Components/Memory/MemoryTypes.h:277

Ram contents on startup.


unmappingType ​

cpp
UnmappedMemory unmappingType

Type: UnmappedMemory

Defined in Components/Memory/MemoryTypes.h:280

Specifies how to deal with unmapped memory.