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

Increases number of fixed initial values.

This commit is contained in:
Thomas Harte 2021-02-18 22:48:53 -05:00
parent 992ee6d631
commit 2e9065b34c
2 changed files with 3 additions and 3 deletions

View File

@ -128,13 +128,13 @@ class Executor: public CachingExecutor {
std::array<uint8_t, 0x2000> memory_; std::array<uint8_t, 0x2000> memory_;
// Registers. // Registers.
uint8_t a_, x_, y_, s_; uint8_t a_ = 0, x_ = 0, y_ = 0, s_ = 0;
uint8_t negative_result_ = 0; uint8_t negative_result_ = 0;
uint8_t zero_result_ = 0; uint8_t zero_result_ = 0;
uint8_t interrupt_disable_ = 0x04; uint8_t interrupt_disable_ = 0x04;
uint8_t carry_flag_ = 0; uint8_t carry_flag_ = 0;
uint8_t overflow_result_; uint8_t overflow_result_ = 0;
bool index_mode_ = false; bool index_mode_ = false;
bool decimal_mode_ = false; bool decimal_mode_ = false;

View File

@ -63,7 +63,7 @@ class GLU: public InstructionSet::M50740::PortHandler {
void set_port_output(int port, uint8_t value) override; void set_port_output(int port, uint8_t value) override;
uint8_t get_port_input(int port) override; uint8_t get_port_input(int port) override;
uint8_t registers_[16]; uint8_t registers_[16]{};
uint8_t register_address_; uint8_t register_address_;
uint8_t register_latch_ = 0xff; uint8_t register_latch_ = 0xff;