mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-04 18:29:40 +00:00
Adds enough flags seemingly to reach an ASL.
This commit is contained in:
parent
aa478cd222
commit
b0c790f3c6
@ -170,6 +170,10 @@ template <Operation operation> void Executor::perform(uint8_t *operand [[maybe_u
|
|||||||
|
|
||||||
case Operation::CLI: interrupt_disable_ = 0x00; break;
|
case Operation::CLI: interrupt_disable_ = 0x00; break;
|
||||||
case Operation::SEI: interrupt_disable_ = 0xff; break;
|
case Operation::SEI: interrupt_disable_ = 0xff; break;
|
||||||
|
case Operation::CLT: index_mode_ = false; break;
|
||||||
|
case Operation::SET: index_mode_ = true; break;
|
||||||
|
case Operation::CLD: decimal_mode_ = false; break;
|
||||||
|
case Operation::SED: decimal_mode_ = true; break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printf("Unimplemented operation: %d\n", int(operation));
|
printf("Unimplemented operation: %d\n", int(operation));
|
||||||
|
@ -115,6 +115,8 @@ class Executor: public CachingExecutor {
|
|||||||
uint8_t negative_result_ = 0;
|
uint8_t negative_result_ = 0;
|
||||||
uint8_t zero_result_ = 0;
|
uint8_t zero_result_ = 0;
|
||||||
uint8_t interrupt_disable_ = 0;
|
uint8_t interrupt_disable_ = 0;
|
||||||
|
bool index_mode_ = false;
|
||||||
|
bool decimal_mode_ = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user