dioscuri.module.cpu32
Class AbstractCodeBlockWrapper

java.lang.Object
  extended by dioscuri.module.cpu32.AbstractCodeBlockWrapper
All Implemented Interfaces:
CodeBlock

public class AbstractCodeBlockWrapper
extends java.lang.Object
implements CodeBlock

Author:
Bram Lohman, Bart Kiers

Constructor Summary
AbstractCodeBlockWrapper(CodeBlock target)
           
 
Method Summary
 int execute(Processor cpu)
          Returns the number of equivalent x86 instructions executed.
 CodeBlock getBlock()
           
 long getBlockIndex()
           
 java.lang.String getDisplayString()
           
 int getX86Count()
           
 int getX86Length()
           
 boolean handleMemoryRegionChange(int startAddress, int endAddress)
           
 void setBlock(CodeBlock block)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCodeBlockWrapper

public AbstractCodeBlockWrapper(CodeBlock target)
Parameters:
target -
Method Detail

getX86Length

public final int getX86Length()
Specified by:
getX86Length in interface CodeBlock
Returns:
-

getX86Count

public final int getX86Count()
Specified by:
getX86Count in interface CodeBlock
Returns:
-

execute

public int execute(Processor cpu)
Description copied from interface: CodeBlock
Returns the number of equivalent x86 instructions executed. Negative results indicate an error

Specified by:
execute in interface CodeBlock
Returns:
the number of equivalent x86 instructions executed. Negative results indicate an error

getDisplayString

public java.lang.String getDisplayString()
Specified by:
getDisplayString in interface CodeBlock
Returns:
-

setBlock

public final void setBlock(CodeBlock block)
Parameters:
block -

getBlock

public final CodeBlock getBlock()
Returns:
-

getBlockIndex

public final long getBlockIndex()
Returns:
-

handleMemoryRegionChange

public boolean handleMemoryRegionChange(int startAddress,
                                        int endAddress)
Specified by:
handleMemoryRegionChange in interface CodeBlock
Parameters:
startAddress -
endAddress -
Returns:
-