mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
operation
is now also stack local.
This commit is contained in:
parent
2f174b3a3e
commit
9a82f028aa
@ -551,6 +551,7 @@ template <class T> class Processor {
|
|||||||
unsigned int scheduleProgramsReadPointer = _scheduleProgramsReadPointer;
|
unsigned int scheduleProgramsReadPointer = _scheduleProgramsReadPointer;
|
||||||
unsigned int scheduleProgramProgramCounter = _scheduleProgramProgramCounter;
|
unsigned int scheduleProgramProgramCounter = _scheduleProgramProgramCounter;
|
||||||
uint8_t operand = _operand;
|
uint8_t operand = _operand;
|
||||||
|
uint8_t operation = _operation;
|
||||||
|
|
||||||
#define checkSchedule(op) \
|
#define checkSchedule(op) \
|
||||||
if(!_scheduledPrograms[scheduleProgramsReadPointer]) {\
|
if(!_scheduledPrograms[scheduleProgramsReadPointer]) {\
|
||||||
@ -601,7 +602,7 @@ template <class T> class Processor {
|
|||||||
case CycleFetchOperation: {
|
case CycleFetchOperation: {
|
||||||
_lastOperationPC = _pc;
|
_lastOperationPC = _pc;
|
||||||
_pc.full++;
|
_pc.full++;
|
||||||
read_op(_operation, _lastOperationPC.full);
|
read_op(operation, _lastOperationPC.full);
|
||||||
|
|
||||||
// static int last_cycles_left_to_run = 0;
|
// static int last_cycles_left_to_run = 0;
|
||||||
// static bool printed_map[256] = {false};
|
// static bool printed_map[256] = {false};
|
||||||
@ -620,7 +621,7 @@ template <class T> class Processor {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OperationDecodeOperation:
|
case OperationDecodeOperation:
|
||||||
decode_operation(_operation);
|
decode_operation(operation);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OperationMoveToNextProgram:
|
case OperationMoveToNextProgram:
|
||||||
@ -1049,6 +1050,7 @@ template <class T> class Processor {
|
|||||||
_scheduleProgramsReadPointer = scheduleProgramsReadPointer;
|
_scheduleProgramsReadPointer = scheduleProgramsReadPointer;
|
||||||
_scheduleProgramProgramCounter = scheduleProgramProgramCounter;
|
_scheduleProgramProgramCounter = scheduleProgramProgramCounter;
|
||||||
_operand = operand;
|
_operand = operand;
|
||||||
|
_operation = operation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user