mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-15 20:31:36 +00:00
Add a dummy STOP state.
This commit is contained in:
parent
1df3ad0671
commit
3a4fb81242
@ -17,7 +17,7 @@
|
||||
namespace CPU {
|
||||
namespace MC68000Mk2 {
|
||||
|
||||
// TODO: VPA, BERR, interrupt inputs, etc.
|
||||
// TODO: BERR, interrupt inputs, etc.
|
||||
// Also, from Instruction.hpp:
|
||||
//
|
||||
// MOVEAw, MOVEAl, STOP
|
||||
@ -181,6 +181,7 @@ enum ExecutionState: int {
|
||||
UNLINK,
|
||||
RESET,
|
||||
NOP,
|
||||
STOP,
|
||||
};
|
||||
|
||||
// MARK: - The state machine.
|
||||
@ -332,6 +333,11 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
||||
}
|
||||
MoveToStateSpecific(WaitForDTACK);
|
||||
|
||||
// Spin in place until an interrupt arrives.
|
||||
BeginState(STOP):
|
||||
assert(false); // TODO
|
||||
MoveToStateSpecific(STOP);
|
||||
|
||||
// Perform the RESET exception, which seeds the stack pointer and program
|
||||
// counter, populates the prefetch queue, and then moves to instruction dispatch.
|
||||
BeginState(Reset):
|
||||
@ -800,6 +806,8 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
||||
StdCASE(MOVEtoUSP, perform_state_ = Perform_np);
|
||||
StdCASE(MOVEfromUSP, perform_state_ = Perform_np);
|
||||
|
||||
SpecialCASE(STOP);
|
||||
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user