simulavr
1.1.0
|
Memory on which access should be avoided! :-) More...
#include <rwmem.h>
Public Member Functions | |
InvalidMem (AvrDevice *core, int addr) | |
![]() | |
RWMemoryMember (TraceValueRegister *registry, const std::string &tracename="", const int index=-1) | |
RWMemoryMember (void) | |
operator unsigned char () const | |
Read access on memory. More... | |
unsigned char | operator= (unsigned char val) |
Write access on memory. More... | |
unsigned char | operator= (const RWMemoryMember &mm) |
Write access on memory. More... | |
virtual | ~RWMemoryMember () |
virtual void | set_bit (unsigned int bitaddr) |
virtual void | clear_bit (unsigned int bitaddr) |
const std::string & | GetTraceName (void) |
bool | IsInvalid (void) const |
Protected Member Functions | |
unsigned char | get () const |
void | set (unsigned char) |
Private Attributes | |
AvrDevice * | core |
int | addr |
unsigned char | value |
Additional Inherited Members | |
![]() | |
TraceValue * | tv |
TraceValueRegister * | registry |
const std::string | tracename |
const bool | isInvalid |
Memory on which access should be avoided! :-)
All accesses to this type of memory will produce an error.
|
protectedvirtual |
This function as the oppposite to get() is expected to read the real byte.
Implements RWMemoryMember.
Definition at line 214 of file rwmem.cpp.
References AvrDevice::abortOnInvalidAccess, addr, avr_error, avr_warning, core, AvrDevice::dataAddressMask, AvrDevice::GetMemERamSize(), AvrDevice::GetMemIOSize(), AvrDevice::GetMemIRamSize(), AvrDevice::GetMemRegisterSize(), global_suppress_memory_warnings, int2hex(), AvrDevice::PC, and value.
|
protectedvirtual |
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 227 of file rwmem.cpp.
References AvrDevice::abortOnInvalidAccess, addr, avr_error, avr_warning, core, AvrDevice::dataAddressMask, AvrDevice::GetMemERamSize(), AvrDevice::GetMemIOSize(), AvrDevice::GetMemIRamSize(), AvrDevice::GetMemRegisterSize(), global_suppress_memory_warnings, int2hex(), AvrDevice::PC, and value.
|
private |
|
private |
|
private |