libsidplayfp  2.0.2
Public Member Functions | List of all members
libsidplayfp::Bank Class Referenceabstract

#include <Bank.h>

Inheritance diagram for libsidplayfp::Bank:
Inheritance graph
[legend]

Public Member Functions

virtual void poke (uint_least16_t address, uint8_t value)=0
 
virtual uint8_t peek (uint_least16_t address)=0
 

Detailed Description

Base interface for memory and I/O banks.

Member Function Documentation

◆ peek()

virtual uint8_t libsidplayfp::Bank::peek ( uint_least16_t  address)
pure virtual

◆ poke()

virtual void libsidplayfp::Bank::poke ( uint_least16_t  address,
uint8_t  value 
)
pure virtual

Bank write.

Override this method if you expect write operations on your bank. Leave unimplemented if it's logically/operationally impossible for writes to ever arrive to bank.

Parameters
addressaddress to write to
valuevalue to write

Implemented in libsidplayfp::romBank< N >, libsidplayfp::romBank< 0x2000 >, libsidplayfp::romBank< 0x1000 >, libsidplayfp::ZeroRAMBank, libsidplayfp::c64cia2, libsidplayfp::c64cia1, libsidplayfp::SystemRAMBank, libsidplayfp::c64vic, libsidplayfp::ColorRAMBank, libsidplayfp::c64sid, libsidplayfp::ExtraSidBank, libsidplayfp::IOBank, and libsidplayfp::SidBank.


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