#include <mmu.h>
|
| MMU (EventScheduler &eventScheduler, 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) override |
|
uint_least16_t | readMemWord (uint_least16_t addr) override |
|
void | writeMemByte (uint_least16_t addr, uint8_t value) override |
|
void | writeMemWord (uint_least16_t addr, uint_least16_t value) override |
|
void | fillRam (uint_least16_t start, uint8_t value, unsigned int size) override |
|
void | fillRam (uint_least16_t start, const uint8_t *source, unsigned int size) override |
|
void | installResetHook (uint_least16_t addr) override |
|
void | installBasicTrap (uint_least16_t addr) override |
|
void | setBasicSubtune (uint8_t tune) override |
|
uint8_t | cpuRead (uint_least16_t addr) const |
|
void | cpuWrite (uint_least16_t addr, uint8_t data) |
|
◆ cpuRead()
uint8_t libsidplayfp::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
◆ cpuWrite()
void libsidplayfp::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 |
◆ fillRam() [1/2]
void libsidplayfp::MMU::fillRam |
( |
uint_least16_t |
start, |
|
|
const uint8_t * |
source, |
|
|
unsigned int |
size |
|
) |
| |
|
inlineoverridevirtual |
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 libsidplayfp::sidmemory.
◆ fillRam() [2/2]
void libsidplayfp::MMU::fillRam |
( |
uint_least16_t |
start, |
|
|
uint8_t |
value, |
|
|
unsigned int |
size |
|
) |
| |
|
inlineoverridevirtual |
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 libsidplayfp::sidmemory.
◆ installBasicTrap()
void libsidplayfp::MMU::installBasicTrap |
( |
uint_least16_t |
addr | ) |
|
|
inlineoverridevirtual |
◆ installResetHook()
void libsidplayfp::MMU::installResetHook |
( |
uint_least16_t |
addr | ) |
|
|
inlineoverridevirtual |
◆ readMemByte()
uint8_t libsidplayfp::MMU::readMemByte |
( |
uint_least16_t |
addr | ) |
|
|
inlineoverridevirtual |
Read one byte from memory.
- Parameters
-
addr | the memory location from which to read from |
Implements libsidplayfp::sidmemory.
◆ readMemWord()
uint_least16_t libsidplayfp::MMU::readMemWord |
( |
uint_least16_t |
addr | ) |
|
|
inlineoverridevirtual |
Read two contiguous bytes from memory.
- Parameters
-
addr | the memory location from which to read from |
Implements libsidplayfp::sidmemory.
◆ setBasicSubtune()
void libsidplayfp::MMU::setBasicSubtune |
( |
uint8_t |
tune | ) |
|
|
inlineoverridevirtual |
◆ writeMemByte()
void libsidplayfp::MMU::writeMemByte |
( |
uint_least16_t |
addr, |
|
|
uint8_t |
value |
|
) |
| |
|
inlineoverridevirtual |
Write one byte to memory.
- Parameters
-
addr | the memory location where to write |
value | the value to write |
Implements libsidplayfp::sidmemory.
◆ writeMemWord()
void libsidplayfp::MMU::writeMemWord |
( |
uint_least16_t |
addr, |
|
|
uint_least16_t |
value |
|
) |
| |
|
inlineoverridevirtual |
Write two contiguous bytes to memory.
- Parameters
-
addr | the memory location where to write |
value | the value to write |
Implements libsidplayfp::sidmemory.
The documentation for this class was generated from the following files: