libsidplayfp  1.0.3
Public Member Functions
sidmemory Class Reference

#include <sidmemory.h>

Inheritance diagram for sidmemory:
MMU

List of all members.

Public Member Functions

virtual uint8_t readMemByte (uint_least16_t addr)=0
virtual uint_least16_t readMemWord (uint_least16_t addr)=0
virtual void writeMemByte (uint_least16_t addr, uint8_t value)=0
virtual void writeMemWord (uint_least16_t addr, uint_least16_t value)=0
virtual void fillRam (uint_least16_t start, uint8_t value, unsigned int size)=0
virtual void fillRam (uint_least16_t start, const uint8_t *source, unsigned int size)=0
virtual void installResetHook (uint_least16_t addr)=0
virtual void installBasicTrap (uint_least16_t addr)=0
virtual void setBasicSubtune (uint8_t tune)=0

Detailed Description

An interface that allows access to c64 memory for loading tunes and apply sid specific hacks.


Member Function Documentation

virtual void sidmemory::fillRam ( uint_least16_t  start,
uint8_t  value,
unsigned int  size 
) [pure virtual]

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

Implemented in MMU.

virtual void sidmemory::fillRam ( uint_least16_t  start,
const uint8_t *  source,
unsigned int  size 
) [pure virtual]

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

Implemented in MMU.

virtual void sidmemory::installBasicTrap ( uint_least16_t  addr) [pure virtual]

Set BASIC Warm Start address

Parameters:
addrthe new addres to point to

Implemented in MMU.

virtual void sidmemory::installResetHook ( uint_least16_t  addr) [pure virtual]

Change the RESET vector

Parameters:
addrthe new addres to point to

Implemented in MMU.

virtual uint8_t sidmemory::readMemByte ( uint_least16_t  addr) [pure virtual]

Read one byte from memory

Parameters:
addrthe memory location from which to read from

Implemented in MMU.

virtual uint_least16_t sidmemory::readMemWord ( uint_least16_t  addr) [pure virtual]

Read two contiguous bytes from memory

Parameters:
addrthe memory location from which to read from

Implemented in MMU.

virtual void sidmemory::setBasicSubtune ( uint8_t  tune) [pure virtual]

Set the start tune

Parameters:
tunethe tune number

Implemented in MMU.

virtual void sidmemory::writeMemByte ( uint_least16_t  addr,
uint8_t  value 
) [pure virtual]

Write one byte to memory

Parameters:
addrthe memory location where to write
valuethe value to write

Implemented in MMU.

virtual void sidmemory::writeMemWord ( uint_least16_t  addr,
uint_least16_t  value 
) [pure virtual]

Write two contiguous bytes to memory

Parameters:
addrthe memory location where to write
valuethe value to write

Implemented in MMU.


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