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:
parent
17c13624e5
commit
334afbc710
@ -62,7 +62,7 @@ template <class T> class CRTC6845 {
|
|||||||
selected_register_ = r;
|
selected_register_ = r;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t get_status() const {
|
uint8_t get_status() {
|
||||||
switch(personality_) {
|
switch(personality_) {
|
||||||
case UM6845R: return status_ | (bus_state_.vsync ? 0x20 : 0x00);
|
case UM6845R: return status_ | (bus_state_.vsync ? 0x20 : 0x00);
|
||||||
case AMS40226: return get_register();
|
case AMS40226: return get_register();
|
||||||
@ -71,7 +71,7 @@ template <class T> class CRTC6845 {
|
|||||||
return 0xff;
|
return 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t get_register() const {
|
uint8_t get_register() {
|
||||||
if(selected_register_ == 31) status_ &= ~0x80;
|
if(selected_register_ == 31) status_ &= ~0x80;
|
||||||
if(selected_register_ == 16 || selected_register_ == 17) status_ &= ~0x40;
|
if(selected_register_ == 16 || selected_register_ == 17) status_ &= ~0x40;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user