mirror of
https://github.com/TomHarte/CLK.git
synced 2025-11-13 00:20:08 +00:00
Catch unimplemented.
This commit is contained in:
@@ -1177,7 +1177,7 @@ struct Traits {
|
|||||||
void test_it() {
|
void test_it() {
|
||||||
Handler handler;
|
Handler handler;
|
||||||
CPU::MOS6502Mk2::Processor<CPU::MOS6502Mk2::Model::M6502, Traits> processor(handler);
|
CPU::MOS6502Mk2::Processor<CPU::MOS6502Mk2::Model::M6502, Traits> processor(handler);
|
||||||
processor.run_for(Cycles(10));
|
processor.run_for(Cycles(1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ void Processor<model, Traits>::run_for(const Cycles cycles) {
|
|||||||
using InterruptRequest = Storage::Inputs::InterruptRequest;
|
using InterruptRequest = Storage::Inputs::InterruptRequest;
|
||||||
|
|
||||||
while(true) switch(Storage::resume_point_) {
|
while(true) switch(Storage::resume_point_) {
|
||||||
|
default:
|
||||||
|
__builtin_unreachable();
|
||||||
|
|
||||||
// MARK: - Fetch/decode.
|
// MARK: - Fetch/decode.
|
||||||
fetch_decode:
|
fetch_decode:
|
||||||
case ResumePoint::FetchDecode:
|
case ResumePoint::FetchDecode:
|
||||||
|
|||||||
Reference in New Issue
Block a user