1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Clears top bit when reading the keypad and ensures no undefined behaviour reading the cartridge.

This commit is contained in:
Thomas Harte 2018-10-18 21:05:58 -04:00
parent da00c832f5
commit 34e13d0d4d

View File

@ -100,7 +100,7 @@ class Joystick: public Inputs::ConcreteJoystick {
private:
uint8_t direction_ = 0xff;
uint8_t keypad_ = 0xff;
uint8_t keypad_ = 0x7f;
};
class ConcreteMachine:
@ -145,6 +145,7 @@ class ConcreteMachine:
cartridge_pages_[1] = cartridge_.data();
is_megacart_ = true;
} else {
cartridge_.resize(32768);
cartridge_pages_[0] = cartridge_.data();
cartridge_pages_[1] = cartridge_.data() + 16384;
is_megacart_ = false;