romBank< N > Class Template Reference

#include <SystemROMBanks.h>

Inheritance diagram for romBank< N >:

Bank

List of all members.

Public Member Functions

void set (const uint8_t *source)
 Copy content from source buffer.
void poke (uint_least16_t address SID_UNUSED, uint8_t value SID_UNUSED)
 Writing to ROM is a no-op.
uint8_t peek (uint_least16_t address)

Protected Member Functions

void setVal (uint_least16_t address, uint8_t val)
 Set value at memory address.
uint8_t getVal (uint_least16_t address) const
 Return value from memory address.
void * getPtr (uint_least16_t address) const
 Return pointer to memory address.

Protected Attributes

uint8_t rom [N]
 The ROM array.


Detailed Description

template<int N>
class romBank< N >

ROM bank base class N must be a power of two

Member Function Documentation

template<int N>
uint8_t romBank< N >::peek ( uint_least16_t  address  )  [inline, virtual]

Bank read. You probably should override this method, except if the Bank is only used in write context.

Parameters:
address value to read from
Returns:
value at address

Implements Bank.


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

Generated on Sun Jul 14 23:12:59 2013 for libsidplayfp by  doxygen 1.5.9