|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.tools.Instruction
public class Instruction
This class describes an instruction for the FastModel. Typically a group of similar instructions will be defined first, then this group definition will be further specialized via inheritance and overloading to produce complete instruction descriptions.
Copyright (c) 2008 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
protected long |
address
The instruction address |
protected Decode |
decode
The instruction decoder |
protected int |
execCount
The number of times this instruction has been executed |
protected java.lang.String |
name
The instruction name |
protected int |
size
The instruction size (in bits) |
| Constructor Summary | |
|---|---|
Instruction(java.lang.String name,
Decode decode,
int size)
Constructor |
|
| Method Summary | |
|---|---|
long |
getAddress()
This method returns the address of this instruction. |
void |
getOperands(long instr)
This method extracts the operands from the instruction fields for use later during instruction execution. |
void |
setAddress(long address)
This method sets the address of this instruction. |
java.lang.String |
toString()
This method returns a string representation of the instruction typically as a line of disassembled code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected int size
protected Decode decode
protected int execCount
protected long address
| Constructor Detail |
|---|
public Instruction(java.lang.String name,
Decode decode,
int size)
name - the instruction name.decode - the instruction decoder.size - the instruction size, in bits.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void getOperands(long instr)
instr - the instruction word.public long getAddress()
public void setAddress(long address)
address - the address of this instruction.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||