|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.fastmodel.Function
public abstract class Function
This class defines the function of an instruction. There is typically one of these classes defined per instruction type, defining the fields. This is then typically sub-classed for each indivudual instruction in which exec() is defines.
Copyright (c) 2006 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
| Constructor Summary | |
|---|---|
Function()
|
|
| Method Summary | |
|---|---|
abstract void |
exec(long addr)
This abstract method implements the instruction execution. |
abstract void |
extractFields(java.math.BigInteger instr)
This abstract method is used to copy the field values into local variables where thay are used by the instruction exec() routine. |
abstract Field[] |
getFormat()
This method returns an array of fields describing the instruction format. |
abstract int |
getSize()
This abstract method returns the size of the instruction in bits. |
abstract java.lang.String |
toString()
This method is used to display a string of the Function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
| Constructor Detail |
|---|
public Function()
| Method Detail |
|---|
public abstract Field[] getFormat()
public abstract int getSize()
public abstract void extractFields(java.math.BigInteger instr)
instr - the instruction word.public abstract java.lang.String toString()
toString in class java.lang.Object
public abstract void exec(long addr)
throws MemoryAccessException,
IllegalRegisterException,
IllegalOpcodeException,
BreakpointException
addr - the address of this instruction.
MemoryAccessException - if an illegal memory
access is attempted.
IllegalRegisterException - if an illegal
register access is attempted.
IllegalOpcodeException - if an illegal
opcode access is attempted.
BreakpointException - if a breakpoint is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||