#include <mmu.h>
|
| MMU (EventContext *context, IOBank *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.
- Parameters
-
addr | the address where to read from |
- Returns
- value at address
void MMU::cpuWrite |
( |
uint_least16_t |
addr, |
|
|
uint8_t |
data |
|
) |
| |
|
inline |
Access memory as seen by CPU.
- Parameters
-
addr | the address where to write |
data | the value to write |
void MMU::fillRam |
( |
uint_least16_t |
start, |
|
|
uint8_t |
value, |
|
|
unsigned int |
size |
|
) |
| |
|
inlinevirtual |
Fill ram area with a constant value.
- Parameters
-
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::fillRam |
( |
uint_least16_t |
start, |
|
|
const uint8_t * |
source, |
|
|
unsigned int |
size |
|
) |
| |
|
inlinevirtual |
Copy a buffer into a ram area.
- Parameters
-
start | the start of memory location where to write |
source | the source buffer |
size | the number of bytes to copy |
Implements sidmemory.
void MMU::installBasicTrap |
( |
uint_least16_t |
addr | ) |
|
|
inlinevirtual |
Set BASIC Warm Start address.
- Parameters
-
addr | the new addres to point to |
Implements sidmemory.
void MMU::installResetHook |
( |
uint_least16_t |
addr | ) |
|
|
inlinevirtual |
Change the RESET vector.
- Parameters
-
addr | the new addres to point to |
Implements sidmemory.
uint8_t MMU::readMemByte |
( |
uint_least16_t |
addr | ) |
|
|
inlinevirtual |
Read one byte from memory.
- Parameters
-
addr | the memory location from which to read from |
Implements sidmemory.
uint_least16_t MMU::readMemWord |
( |
uint_least16_t |
addr | ) |
|
|
inlinevirtual |
Read two contiguous bytes from memory.
- Parameters
-
addr | the memory location from which to read from |
Implements sidmemory.
void MMU::setBasicSubtune |
( |
uint8_t |
tune | ) |
|
|
inlinevirtual |
Set the start tune.
- Parameters
-
Implements sidmemory.
void MMU::writeMemByte |
( |
uint_least16_t |
addr, |
|
|
uint8_t |
value |
|
) |
| |
|
inlinevirtual |
Write one byte to memory.
- Parameters
-
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 |
|
) |
| |
|
inlinevirtual |
Write two contiguous bytes to memory.
- Parameters
-
addr | the memory location where to write |
value | the value to write |
Implements sidmemory.
The documentation for this class was generated from the following files: