#include <mmu.h>
Public Member Functions | |
MMU (EventContext *context, Bank *ioBank) | |
void | reset () |
void | setRoms (const uint8_t *kernal, const uint8_t *basic, const uint8_t *character) |
uint8_t | readMemByte (uint_least16_t addr) |
uint_least16_t | readMemWord (uint_least16_t addr) |
void | writeMemByte (uint_least16_t addr, uint8_t value) |
void | writeMemWord (uint_least16_t addr, uint_least16_t value) |
void | fillRam (uint_least16_t start, uint8_t value, unsigned int size) |
void | fillRam (uint_least16_t start, const uint8_t *source, unsigned int size) |
void | installResetHook (uint_least16_t addr) |
void | installBasicTrap (uint_least16_t addr) |
void | setBasicSubtune (uint8_t tune) |
uint8_t | cpuRead (uint_least16_t addr) const |
void | cpuWrite (uint_least16_t addr, uint8_t data) |
uint8_t MMU::cpuRead | ( | uint_least16_t | addr | ) | const [inline] |
Access memory as seen by CPU.
addr | the address where to read from |
void MMU::cpuWrite | ( | uint_least16_t | addr, | |
uint8_t | data | |||
) | [inline] |
Access memory as seen by CPU.
addr | the address where to write | |
data | the value to write |
void MMU::fillRam | ( | uint_least16_t | start, | |
const uint8_t * | source, | |||
unsigned int | size | |||
) | [inline, virtual] |
Copy a buffer into a ram area
start | the start of memory location where to write | |
source | the source buffer | |
size | the number of bytes to copy |
Implements sidmemory.
void MMU::fillRam | ( | uint_least16_t | start, | |
uint8_t | value, | |||
unsigned int | size | |||
) | [inline, virtual] |
Fill ram area with a constant value
start | the start of memory location where to write | |
value | the value to write | |
size | the number of bytes to fill |
Implements sidmemory.
void MMU::installBasicTrap | ( | uint_least16_t | addr | ) | [inline, virtual] |
void MMU::installResetHook | ( | uint_least16_t | addr | ) | [inline, virtual] |
uint8_t MMU::readMemByte | ( | uint_least16_t | addr | ) | [inline, virtual] |
Read one byte from memory
addr | the memory location from which to read from |
Implements sidmemory.
uint_least16_t MMU::readMemWord | ( | uint_least16_t | addr | ) | [inline, virtual] |
Read two contiguous bytes from memory
addr | the memory location from which to read from |
Implements sidmemory.
void MMU::setBasicSubtune | ( | uint8_t | tune | ) | [inline, virtual] |
void MMU::writeMemByte | ( | uint_least16_t | addr, | |
uint8_t | value | |||
) | [inline, virtual] |
Write one byte to memory
addr | the memory location where to write | |
value | the value to write |
Implements sidmemory.
void MMU::writeMemWord | ( | uint_least16_t | addr, | |
uint_least16_t | value | |||
) | [inline, virtual] |
Write two contiguous bytes to memory
addr | the memory location where to write | |
value | the value to write |
Implements sidmemory.