|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.fastmodel.Function
com.cmpware.fastmodel.NullFunction
public class NullFunction
This class defines the null function. It has a size zero and is used primarily at start-up to avoid null pointers.
Copyright (c) 2008 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
| Constructor Summary | |
|---|---|
NullFunction()
|
|
| Method Summary | |
|---|---|
void |
exec(long addr)
This abstract method implements the instruction execution. |
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. |
Field[] |
getFormat()
This method returns an array of fields describing the instruction format. |
int |
getSize()
This abstract method returns the size of the instruction in bits. |
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 NullFunction()
| Method Detail |
|---|
public Field[] getFormat()
Function
getFormat in class Functionpublic int getSize()
Function
getSize in class Functionpublic void extractFields(java.math.BigInteger instr)
Function
extractFields in class Functioninstr - the instruction word.public java.lang.String toString()
Function
toString in class Function
public void exec(long addr)
throws MemoryAccessException,
IllegalRegisterException,
IllegalOpcodeException
Function
exec in class Functionaddr - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||