com.github.croesch.micro_debug.mic1.api
Interface IProcessorInterpreter

All Known Implementing Classes:
Mic1Interpreter

public interface IProcessorInterpreter

Interpreter of a processor, can access and manipulate the processor.

Since:
Date: Feb 13, 2012
Author:
croesch

Method Summary
 boolean canContinue(int microLine, int macroLine)
          Returns whether the processor should halt now or if it can continue.
 void tickDone(MicroInstruction instruction, boolean macroCodeFetching)
          Informs the interpreter that the processor has done one tick.
 

Method Detail

canContinue

boolean canContinue(int microLine,
                    int macroLine)
Returns whether the processor should halt now or if it can continue.

Parameters:
microLine - the number of the line in micro code being executed next
macroLine - the number of the line in macro code being executed next
Returns:
true if the processor can continue executing instructions,
false otherwise
Since:
Date: Feb 13, 2012

tickDone

void tickDone(MicroInstruction instruction,
              boolean macroCodeFetching)
Informs the interpreter that the processor has done one tick.

Parameters:
instruction - the executed micro instruction
macroCodeFetching - true if the next macro code instruction has being fetched,
false otherwise
Since:
Date: Feb 13, 2012


Copyright © 2012. All Rights Reserved.