libsidplayfp  1.8.7
Public Member Functions | List of all members
MMU Class Reference

#include <mmu.h>

Inheritance diagram for MMU:
PLA sidmemory

Public Member Functions

 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)
 

Detailed Description

The C64 MMU chip.

Member Function Documentation

§ cpuRead()

uint8_t MMU::cpuRead ( uint_least16_t  addr) const
inline

Access memory as seen by CPU.

Parameters
addrthe address where to read from
Returns
value at address

§ cpuWrite()

void MMU::cpuWrite ( uint_least16_t  addr,
uint8_t  data 
)
inline

Access memory as seen by CPU.

Parameters
addrthe address where to write
datathe value to write

§ fillRam() [1/2]

void MMU::fillRam ( uint_least16_t  start,
uint8_t  value,
unsigned int  size 
)
inlinevirtual

Fill ram area with a constant value.

Parameters
startthe start of memory location where to write
valuethe value to write
sizethe number of bytes to fill

Implements sidmemory.

§ fillRam() [2/2]

void MMU::fillRam ( uint_least16_t  start,
const uint8_t *  source,
unsigned int  size 
)
inlinevirtual

Copy a buffer into a ram area.

Parameters
startthe start of memory location where to write
sourcethe source buffer
sizethe number of bytes to copy

Implements sidmemory.

§ installBasicTrap()

void MMU::installBasicTrap ( uint_least16_t  addr)
inlinevirtual

Set BASIC Warm Start address.

Parameters
addrthe new addres to point to

Implements sidmemory.

§ installResetHook()

void MMU::installResetHook ( uint_least16_t  addr)
inlinevirtual

Change the RESET vector.

Parameters
addrthe new addres to point to

Implements sidmemory.

§ readMemByte()

uint8_t MMU::readMemByte ( uint_least16_t  addr)
inlinevirtual

Read one byte from memory.

Parameters
addrthe memory location from which to read from

Implements sidmemory.

§ readMemWord()

uint_least16_t MMU::readMemWord ( uint_least16_t  addr)
inlinevirtual

Read two contiguous bytes from memory.

Parameters
addrthe memory location from which to read from

Implements sidmemory.

§ setBasicSubtune()

void MMU::setBasicSubtune ( uint8_t  tune)
inlinevirtual

Set the start tune.

Parameters
tunethe tune number

Implements sidmemory.

§ writeMemByte()

void MMU::writeMemByte ( uint_least16_t  addr,
uint8_t  value 
)
inlinevirtual

Write one byte to memory.

Parameters
addrthe memory location where to write
valuethe value to write

Implements sidmemory.

§ writeMemWord()

void MMU::writeMemWord ( uint_least16_t  addr,
uint_least16_t  value 
)
inlinevirtual

Write two contiguous bytes to memory.

Parameters
addrthe memory location where to write
valuethe value to write

Implements sidmemory.


The documentation for this class was generated from the following files: