InvalidMem Class Reference

Memory on which access should be avoided! :-). More...

#include <rwmem.h>

Inheritance diagram for InvalidMem:
Inheritance graph
[legend]
Collaboration diagram for InvalidMem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 InvalidMem (AvrDevice *core, int addr)

Protected Member Functions

unsigned char get () const
void set (unsigned char)

Private Attributes

AvrDevicecore
int addr

Detailed Description

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.


Constructor & Destructor Documentation

InvalidMem::InvalidMem ( AvrDevice core,
int  addr 
)

Definition at line 106 of file rwmem.cpp.


Member Function Documentation

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:


Member Data Documentation

int InvalidMem::addr [private]

Definition at line 132 of file rwmem.h.

Referenced by get(), and set().

Definition at line 131 of file rwmem.h.

Referenced by get(), and set().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:52:41 2012 for Simulavr by  doxygen 1.6.3