|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a central processing unit (CPU).
Method Summary | |
int |
disassemble(java.lang.StringBuffer sb,
int address)
Disassemble the next op-code at the given address and append it to the given string buffer. |
AddressSpace |
getAddressSpace()
Get the address space. |
java.lang.String |
getErrorDescription()
Return error description. |
java.lang.String |
getName()
Return the name of the CPU which is emulated. |
int |
getNumberOfRegisters()
Return the number of registers. |
Register |
getProgramCounter()
Return the program counter. |
Register |
getRegister(int index)
Return a register. |
void |
interrupt(long interrupt)
Interrupt the CPU at the next call of next() . |
int |
next()
Proceed one opcode further. |
void |
setAddressSpace(AddressSpace addressSpace)
Set the address space. |
void |
setRegisterValue(int index,
int value)
Set the value of a register. |
boolean |
supportsDisassembling()
Return true if disassembling is supported. |
Methods inherited from interface jfrace.Hardware |
getNumberOfBits, reset |
Method Detail |
public java.lang.String getName()
public int getNumberOfRegisters()
public Register getRegister(int index)
index
- Index of the register.null
if no register exists for the
given index.public Register getProgramCounter()
public void setRegisterValue(int index, int value)
index
- Index of the register.value
- New value.public void setAddressSpace(AddressSpace addressSpace)
public AddressSpace getAddressSpace()
public void interrupt(long interrupt)
next()
.interrupt
- Bit pattern of the interrupt. The meaning of
the bits depend on the implementation.public java.lang.String getErrorDescription()
next()
returns -1
.public int next()
-1
if an error occured.public boolean supportsDisassembling()
true
if disassembling is supported.public int disassemble(java.lang.StringBuffer sb, int address)
sb
- String buffer.address
- Address of op-code.address
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |