RWSreg Class Reference

#include <hwsreg.h>

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

List of all members.

Public Member Functions

 RWSreg (TraceValueRegister *registry, HWSreg *s)
void trigger_change (void)
 reflect a change, which comes from CPU core

Protected Member Functions

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

Protected Attributes

HWSregstatus

Detailed Description

SREG - ALU status register in IO space

Todo:
Replace the status register with an ordinary byte somewhere and simple inline access functions sN(), gN() to get/set flags. This should also make accesses faster.

Definition at line 65 of file hwsreg.h.


Constructor & Destructor Documentation

RWSreg::RWSreg ( TraceValueRegister registry,
HWSreg s 
) [inline]

Definition at line 68 of file hwsreg.h.


Member Function Documentation

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

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

Implements RWMemoryMember.

Definition at line 77 of file hwsreg.cpp.

References status.

void RWSreg::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 81 of file hwsreg.cpp.

References status.

void RWSreg::trigger_change ( void   )  [inline]

reflect a change, which comes from CPU core

Definition at line 70 of file hwsreg.h.

References TraceValue::change(), status, and RWMemoryMember::tv.

Referenced by AvrDevice::Step().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

HWSreg* RWSreg::status [protected]

Definition at line 73 of file hwsreg.h.

Referenced by get(), set(), and trigger_change().


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