exit() on access memory More...
#include <specialmem.h>
Public Member Functions | |
RWExit (TraceValueRegister *registry, const std::string &tracename="") | |
Protected Member Functions | |
unsigned char | get () const |
void | set (unsigned char) |
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.
RWExit::RWExit | ( | TraceValueRegister * | registry, | |
const std::string & | tracename = "" | |||
) |
Definition at line 74 of file specialmem.cpp.
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.
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.