1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-17 10:06:21 +00:00

Adds enough flags seemingly to reach an ASL.

This commit is contained in:
Thomas Harte 2021-01-19 21:54:15 -05:00
parent aa478cd222
commit b0c790f3c6
2 changed files with 6 additions and 0 deletions

View File

@ -170,6 +170,10 @@ template <Operation operation> void Executor::perform(uint8_t *operand [[maybe_u
case Operation::CLI: interrupt_disable_ = 0x00; 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:
printf("Unimplemented operation: %d\n", int(operation));

View File

@ -115,6 +115,8 @@ class Executor: public CachingExecutor {
uint8_t negative_result_ = 0;
uint8_t zero_result_ = 0;
uint8_t interrupt_disable_ = 0;
bool index_mode_ = false;
bool decimal_mode_ = false;
};
}