mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-09 02:31:22 +00:00
Resolves undefined behaviour of a signed shift left.
This commit is contained in:
parent
a301964bd0
commit
45be1c19df
@ -134,7 +134,7 @@ class ProcessorStorage {
|
|||||||
uint8_t carry_result_; // the carry flag is set if bit 0 of carry_result_ is set
|
uint8_t carry_result_; // the carry flag is set if bit 0 of carry_result_ is set
|
||||||
uint8_t halt_mask_ = 0xff;
|
uint8_t halt_mask_ = 0xff;
|
||||||
|
|
||||||
int flag_adjustment_history_ = 0; // a shifting record of whether each opcode set any flags; it turns out
|
unsigned int flag_adjustment_history_ = 0; // a shifting record of whether each opcode set any flags; it turns out
|
||||||
// that knowledge of what the last opcode did is necessary to get bits 5 & 3
|
// that knowledge of what the last opcode did is necessary to get bits 5 & 3
|
||||||
// correct for SCF and CCF.
|
// correct for SCF and CCF.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user