Memory on which access should be avoided! :-). More...
#include <rwmem.h>
Public Member Functions | |
InvalidMem (AvrDevice *core, int addr) | |
Protected Member Functions | |
unsigned char | get () const |
void | set (unsigned char) |
Private Attributes | |
AvrDevice * | core |
int | addr |
Memory on which access should be avoided! :-).
All accesses to this type of memory will produce an error.
Definition at line 129 of file rwmem.h.
unsigned char InvalidMem::get | ( | ) | const [protected, virtual] |
This function as the oppposite to get() is expected to read the real byte.
Implements RWMemoryMember.
Definition at line 111 of file rwmem.cpp.
References AvrDevice::abortOnInvalidAccess, addr, avr_error, avr_warning, core, int2hex(), and AvrDevice::PC.
void InvalidMem::set | ( | unsigned | nv | ) | [protected, virtual] |
This function is the function which will be called by the above access operators and is expected to do the real work when writing a byte.
Implements RWMemoryMember.
Definition at line 119 of file rwmem.cpp.
References AvrDevice::abortOnInvalidAccess, addr, avr_error, avr_warning, core, int2hex(), and AvrDevice::PC.
int InvalidMem::addr [private] |
AvrDevice* InvalidMem::core [private] |