dioscuri.module.cpu32
Interface CodeBlock

All Known Subinterfaces:
ProtectedModeCodeBlock, RealModeCodeBlock, Virtual8086ModeCodeBlock
All Known Implementing Classes:
AbstractCodeBlockWrapper, BlankCodeBlock, CombiningRealCodeBlock, ProtectedModeSkeletonBlock, ProtectedModeTemplateBlock, ProtectedModeUBlock, RealModeSkeletonBlock, RealModeTemplateBlock, RealModeUBlock, ReplacementBlockTrigger, SpanningCodeBlock, SpanningProtectedModeCodeBlock, SpanningRealModeCodeBlock, SpanningVirtual8086ModeCodeBlock, Virtual8086ModeUBlock

public interface CodeBlock

Author:
Bram Lohman, Bart Kiers

Method Summary
 int execute(Processor cpu)
          Returns the number of equivalent x86 instructions executed.
 java.lang.String getDisplayString()
           
 int getX86Count()
           
 int getX86Length()
           
 boolean handleMemoryRegionChange(int startAddress, int endAddress)
           
 

Method Detail

getX86Length

int getX86Length()
Returns:
-

getX86Count

int getX86Count()
Returns:
-

execute

int execute(Processor cpu)
Returns the number of equivalent x86 instructions executed. Negative results indicate an error

Parameters:
cpu -
Returns:
the number of equivalent x86 instructions executed. Negative results indicate an error

getDisplayString

java.lang.String getDisplayString()
Returns:
-

handleMemoryRegionChange

boolean handleMemoryRegionChange(int startAddress,
                                 int endAddress)
Parameters:
startAddress -
endAddress -
Returns:
-