1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Removes const from get_status and get_register, as both may now logically mutate the object.

This commit is contained in:
Thomas Harte 2017-08-27 18:13:55 -04:00
parent 17c13624e5
commit 334afbc710

View File

@ -62,7 +62,7 @@ template <class T> class CRTC6845 {
selected_register_ = r;
}
uint8_t get_status() const {
uint8_t get_status() {
switch(personality_) {
case UM6845R: return status_ | (bus_state_.vsync ? 0x20 : 0x00);
case AMS40226: return get_register();
@ -71,7 +71,7 @@ template <class T> class CRTC6845 {
return 0xff;
}
uint8_t get_register() const {
uint8_t get_register() {
if(selected_register_ == 31) status_ &= ~0x80;
if(selected_register_ == 16 || selected_register_ == 17) status_ &= ~0x40;