RWExit Class Reference

exit() on access memory More...

#include <specialmem.h>

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

List of all members.

Public Member Functions

 RWExit (TraceValueRegister *registry, const std::string &tracename="")

Protected Member Functions

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

Detailed Description

exit() on access memory

Any access to this memory will exit the simulator. If a byte is written, it will be return code of the simulavr process. If a byte is being read, the exit code is 0x00.

Definition at line 77 of file specialmem.h.


Constructor & Destructor Documentation

RWExit::RWExit ( TraceValueRegister registry,
const std::string &  tracename = "" 
)

Definition at line 74 of file specialmem.cpp.


Member Function Documentation

unsigned char RWExit::get (  )  const [protected, virtual]

This function as the oppposite to get() is expected to read the real byte.

Implements RWMemoryMember.

Definition at line 84 of file specialmem.cpp.

References SystemConsoleHandler::ExitApplication(), and sysConHandler.

Here is the call graph for this function:

void RWExit::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 79 of file specialmem.cpp.

References SystemConsoleHandler::ExitApplication(), and sysConHandler.

Here is the call graph for this function:


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