1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-13 00:20:08 +00:00

Catch unimplemented.

This commit is contained in:
Thomas Harte
2025-10-21 13:40:23 -04:00
parent ff08c03bc5
commit 4ee8f8564e
2 changed files with 4 additions and 1 deletions

View File

@@ -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));
} }
} }

View File

@@ -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: