mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-23 11:30:24 +00:00
Resolves undefined behaviour of a signed shift left.
This commit is contained in:
parent
a301964bd0
commit
45be1c19df
@ -134,9 +134,9 @@ class ProcessorStorage {
|
||||
uint8_t carry_result_; // the carry flag is set if bit 0 of carry_result_ is set
|
||||
uint8_t halt_mask_ = 0xff;
|
||||
|
||||
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
|
||||
// correct for SCF and CCF.
|
||||
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
|
||||
// correct for SCF and CCF.
|
||||
|
||||
HalfCycles number_of_cycles_;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user