1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Adds further [[fallthrough]]s.

This commit is contained in:
Thomas Harte
2020-06-19 23:44:20 -04:00
parent 2477752fa4
commit 945a9da94f
2 changed files with 39 additions and 1 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ void ProcessorBase::set_value_of_register(Register r, uint16_t value) {
case Register::StackPointer: sp_.full = value; break;
case Register::A: a_ = uint8_t(value); break;
case Register::AF: a_ = uint8_t(value >> 8); // deliberate fallthrough...
case Register::AF: a_ = uint8_t(value >> 8); [[fallthrough]];
case Register::Flags: set_flags(uint8_t(value)); break;
case Register::B: bc_.halves.high = uint8_t(value); break;