1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Temporarily copy and paste my way to further logging.

This commit is contained in:
Thomas Harte 2023-01-18 14:59:30 -05:00
parent 355ee7fbc7
commit e450e53c4e

View File

@ -558,7 +558,9 @@ void Base<personality>::write_register(uint8_t value) {
this->write_phase_ = false; this->write_phase_ = false;
if(value & 0x80) { if(value & 0x80) {
if constexpr (is_sega_vdp(personality)) { if constexpr (is_yamaha_vdp(personality)) {
value &= 0x7f;
} else if constexpr (is_sega_vdp(personality)) {
if(value & 0x40) { if(value & 0x40) {
this->master_system_.cram_is_selected = true; this->master_system_.cram_is_selected = true;
return; return;
@ -626,18 +628,24 @@ void Base<personality>::write_register(uint8_t value) {
case 8: case 8:
if constexpr (is_sega_vdp(personality)) { if constexpr (is_sega_vdp(personality)) {
this->master_system_.horizontal_scroll = this->low_write_; this->master_system_.horizontal_scroll = this->low_write_;
} else {
LOG("Unknown TMS write: " << int(this->low_write_) << " to " << int(value));
} }
break; break;
case 9: case 9:
if constexpr (is_sega_vdp(personality)) { if constexpr (is_sega_vdp(personality)) {
this->master_system_.vertical_scroll = this->low_write_; this->master_system_.vertical_scroll = this->low_write_;
} else {
LOG("Unknown TMS write: " << int(this->low_write_) << " to " << int(value));
} }
break; break;
case 10: case 10:
if constexpr (is_sega_vdp(personality)) { if constexpr (is_sega_vdp(personality)) {
this->line_interrupt_target = this->low_write_; this->line_interrupt_target = this->low_write_;
} else {
LOG("Unknown TMS write: " << int(this->low_write_) << " to " << int(value));
} }
break; break;