Logo Search packages:      
Sourcecode: ktechlab version File versions

RegisterState Class Reference

#include <instruction.h>

List of all members.

Detailed Description

Contains information on the state of a register before an instruction is executed.

Note that all the "uchar" values in this class should be considered as the 8 bits of a register. So for example, if known=0x2, then only the second bit of the register is known, and its value is given in the second bit of value.

David Saxton

Definition at line 295 of file instruction.h.

Public Member Functions

uchar definiteOnes () const
uchar definiteZeros () const
uchar maxValue () const
void merge (const RegisterState &state)
uchar minValue () const
bool operator!= (const RegisterState &state) const
bool operator== (const RegisterState &state) const
void print ()
void reset ()
uchar unknown () const

Public Attributes

uchar known
 Whether or not the value is known (for each bit).
uchar value
 The value of the register.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index