libsidplayfp  1.0.1
Public Member Functions
MMU Class Reference

#include <mmu.h>

Inheritance diagram for MMU:
PLA sidmemory

List of all members.

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)

Detailed Description

The C64 MMU chip.


Member Function Documentation

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
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
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.

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.

void MMU::installBasicTrap ( uint_least16_t  addr)
inlinevirtual

Set BASIC Warm Start address

Parameters:
addrthe new addres to point to

Implements sidmemory.

void MMU::installResetHook ( uint_least16_t  addr)
inlinevirtual

Change the RESET vector

Parameters:
addrthe new addres to point to

Implements sidmemory.

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.

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.

void MMU::setBasicSubtune ( uint8_t  tune)
inlinevirtual

Set the start tune

Parameters:
tunethe tune number

Implements sidmemory.

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.

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: