1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-09 15:39:08 +00:00

Mark extra constexprs.

This commit is contained in:
Thomas Harte 2025-01-02 22:01:51 -05:00
parent 906e8aa2b2
commit aed8b65e2b

View File

@ -43,15 +43,15 @@ public:
};
constexpr auto timer = offset >> 1;
paused_[timer] = !(offset & 1);
paused_[timer] = ~offset & 1;
if constexpr (offset & 1) {
load_high(timers_[timer]);
if(!timer) {
if constexpr (!timer) {
load_high(timer0_reload_);
}
} else {
load_low(timers_[timer]);
if(!timer) {
if constexpr (!timer) {
load_low(timer0_reload_);
}
}
@ -229,7 +229,7 @@ public:
*value = io_direction_;
} else {
const uint8_t all_inputs =
(tape_player_->input() ? 0x10 : 0x00) |
(tape_player_->input() ? 0x00 : 0x10) |
(serial_port_.level(Serial::Line::Data) ? 0x80 : 0x00) |
(serial_port_.level(Serial::Line::Clock) ? 0x40 : 0x00);
*value =