mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Reset write phase only upon traditional register accesses.
This commit is contained in:
@@ -1068,10 +1068,13 @@ uint8_t Base<personality>::read_register_indirect() {
|
|||||||
|
|
||||||
template <Personality personality>
|
template <Personality personality>
|
||||||
uint8_t TMS9918<personality>::read(int address) {
|
uint8_t TMS9918<personality>::read(int address) {
|
||||||
// TODO: is this still a global effect of reads, even in the world of the Yamahas?
|
const int target = this->masked_address(address);
|
||||||
this->write_phase_ = false;
|
|
||||||
|
|
||||||
switch(this->masked_address(address)) {
|
if(target < 2) {
|
||||||
|
this->write_phase_ = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch(target) {
|
||||||
default: return 0xff;
|
default: return 0xff;
|
||||||
case 0: return this->read_vram();
|
case 0: return this->read_vram();
|
||||||
case 1: return this->read_register();
|
case 1: return this->read_register();
|
||||||
|
Reference in New Issue
Block a user