libsidplayfp
1.2.1
|
#include <Bank.h>
Public Member Functions | |
virtual void | poke (uint_least16_t address, uint8_t value)=0 |
virtual uint8_t | peek (uint_least16_t address)=0 |
Base interface for memory and I/O banks.
|
pure virtual |
Bank read. You probably should override this method, except if the Bank is only used in write context.
address | value to read from |
Implemented in ZeroRAMBank, c64cia2, sidemu, ExtraSidBank, c64cia1, c64vic, romBank< N >, romBank< 0x2000 >, romBank< 0x1000 >, SystemRAMBank, ColorRAMBank, IOBank, NullSid, and c64sid.
|
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.
address | address to write to |
value | value to write |
Implemented in ZeroRAMBank, c64cia2, ExtraSidBank, sidemu, c64cia1, SystemRAMBank, c64vic, romBank< N >, romBank< 0x2000 >, romBank< 0x1000 >, IOBank, ColorRAMBank, NullSid, and c64sid.