mirror of
https://github.com/TomHarte/CLK.git
synced 2025-11-23 05:19:20 +00:00
Catch unimplemented.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user