com.ibm.dtfj.image
Interface ImageRegister


public interface ImageRegister

Represents the state of a CPU or FPU register

TODO How should special registers (e.g. flags registers) be represented?

Author:
pburka

Method Summary
 java.lang.String getName()
          Fetch the name of a register.
 java.lang.Number getValue()
          Get the value for the register.
 

Method Detail

getName

java.lang.String getName()
Fetch the name of a register. On some CPUs registers may have more than one conventional name. Recommended names for some CPUs are provided below. Implementations may provide more registers than those named here.
IA32
RegisterType
EDIInteger
ESIInteger
EAXInteger
EBXInteger
ECXInteger
EDXInteger
EIPInteger
ESPInteger
EBPInteger
AMD64
RegisterType
RDILong
RSILong
RAXLong
RBXLong
RCXLong
RDXLong
R8Long
R9Long
R10Long
R11Long
R12Long
R13Long
R14Long
R15Long
RIPLong
RSPLong
RBPLong
PowerPC 32
RegisterType
R0Integer
R1Integer
R2Integer
R3Integer
R4Integer
R5Integer
R6Integer
R7Integer
R8Integer
R9Integer
R10Integer
R11Integer
R12Integer
R13Integer
R14Integer
R15Integer
R16Integer
R17Integer
R18Integer
R19Integer
R20Integer
R21Integer
R22Integer
R23Integer
R24Integer
R25Integer
R26Integer
R27Integer
R28Integer
R29Integer
R30Integer
R31Integer
IARInteger
LRInteger
MSRInteger
CTRInteger
CRInteger
FPSCRInteger
XERInteger
TIDInteger
MQInteger
PowerPC 64
RegisterType
R0Long
R1Long
R2Long
R3Long
R4Long
R5Long
R6Long
R7Long
R8Long
R9Long
R10Long
R11Long
R12Long
R13Long
R14Long
R15Long
R16Long
R17Long
R18Long
R19Long
R20Long
R21Long
R22Long
R23Long
R24Long
R25Long
R26Long
R27Long
R28Long
R29Long
R30Long
R31Long
IARLong
LRLong
MSRLong
CTRLong
CRLong
FPSCRLong
XERLong
z/Series 31
RegisterType
gpr0Integer
gpr1Integer
gpr2Integer
gpr3Integer
gpr4Integer
gpr5Integer
gpr6Integer
gpr7Integer
gpr8Integer
gpr9Integer
gpr10Integer
gpr11Integer
gpr12Integer
gpr13Integer
gpr14Integer
gpr15Integer
psw0Integer
psw1Integer
z/Series 64
RegisterType
gpr0Long
gpr1Long
gpr2Long
gpr3Long
gpr4Long
gpr5Long
gpr6Long
gpr7Long
gpr8Long
gpr9Long
gpr10Long
gpr11Long
gpr12Long
gpr13Long
gpr14Long
gpr15Long
psw0Long
psw1Long

Returns:
the conventional name of the register

getValue

java.lang.Number getValue()
                          throws CorruptDataException
Get the value for the register.

Returns:
an integral or floating point type which contains the value for the register. The returned value may be an instance of any subclass of Number. For instance, on x86 architectures with MMX, the XMM registers will be returned as BigInteger instances
Throws:
CorruptDataException