Catch unimplemented.

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

No files matched your search

+1 -1
View File
@@ -1177,7 +1177,7 @@ struct Traits {
void test_it() {
Handler 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;
while(true) switch(Storage::resume_point_) {
default:
__builtin_unreachable();
// MARK: - Fetch/decode.
fetch_decode:
case ResumePoint::FetchDecode: