mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Adds overt fallthrough attributes.
This commit is contained in:
parent
4f9b3259d5
commit
91229a1dbd
@ -135,7 +135,7 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
|
|||||||
write_mem(v, targetAddress);\
|
write_mem(v, targetAddress);\
|
||||||
}
|
}
|
||||||
|
|
||||||
case CycleIncPCPushPCH: pc_.full++; // deliberate fallthrough
|
case CycleIncPCPushPCH: pc_.full++; [[fallthrough]];
|
||||||
case CyclePushPCH: push(pc_.halves.high); break;
|
case CyclePushPCH: push(pc_.halves.high); break;
|
||||||
case CyclePushPCL: push(pc_.halves.low); break;
|
case CyclePushPCL: push(pc_.halves.low); break;
|
||||||
case CyclePushOperand: push(operand_); break;
|
case CyclePushOperand: push(operand_); break;
|
||||||
@ -292,7 +292,8 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
|
|||||||
// MARK: - ADC/SBC (and INS)
|
// MARK: - ADC/SBC (and INS)
|
||||||
|
|
||||||
case OperationINS:
|
case OperationINS:
|
||||||
operand_++; // deliberate fallthrough
|
operand_++;
|
||||||
|
[[fallthrough]];
|
||||||
case OperationSBC:
|
case OperationSBC:
|
||||||
if(decimal_flag_ && has_decimal_mode(personality)) {
|
if(decimal_flag_ && has_decimal_mode(personality)) {
|
||||||
const uint16_t notCarry = carry_flag_ ^ 0x1;
|
const uint16_t notCarry = carry_flag_ ^ 0x1;
|
||||||
@ -322,8 +323,8 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
|
|||||||
} else {
|
} else {
|
||||||
operand_ = ~operand_;
|
operand_ = ~operand_;
|
||||||
}
|
}
|
||||||
|
[[fallthrough]];
|
||||||
|
|
||||||
// deliberate fallthrough
|
|
||||||
case OperationADC:
|
case OperationADC:
|
||||||
if(decimal_flag_ && has_decimal_mode(personality)) {
|
if(decimal_flag_ && has_decimal_mode(personality)) {
|
||||||
const uint16_t decimalResult = uint16_t(a_) + uint16_t(operand_) + uint16_t(carry_flag_);
|
const uint16_t decimalResult = uint16_t(a_) + uint16_t(operand_) + uint16_t(carry_flag_);
|
||||||
@ -509,8 +510,9 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
|
|||||||
operand_++;
|
operand_++;
|
||||||
read_mem(address_.halves.high, operand_);
|
read_mem(address_.halves.high, operand_);
|
||||||
break;
|
break;
|
||||||
case CycleIncrementPCReadPCHLoadPCL: // deliberate fallthrough
|
case CycleIncrementPCReadPCHLoadPCL:
|
||||||
pc_.full++;
|
pc_.full++;
|
||||||
|
[[fallthrough]];
|
||||||
case CycleReadPCHLoadPCL: {
|
case CycleReadPCHLoadPCL: {
|
||||||
uint16_t oldPC = pc_.full;
|
uint16_t oldPC = pc_.full;
|
||||||
pc_.halves.low = operand_;
|
pc_.halves.low = operand_;
|
||||||
|
Loading…
Reference in New Issue
Block a user