mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-04 13:31:26 +00:00
Per the CPC test I'm checking, 0s should be returned for non-retained bits, not 1s.
This commit is contained in:
parent
745afd217f
commit
7fbb455836
@ -227,7 +227,7 @@ uint8_t AY38910::get_register_value() {
|
||||
};
|
||||
|
||||
switch(selected_register_) {
|
||||
default: return registers_[selected_register_] | register_masks[selected_register_];
|
||||
default: return registers_[selected_register_] & ~register_masks[selected_register_];
|
||||
case 14: return (registers_[0x7] & 0x40) ? registers_[14] : port_inputs_[0];
|
||||
case 15: return (registers_[0x7] & 0x80) ? registers_[15] : port_inputs_[1];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user