mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-10 10:29:43 +00:00
Whoops: missed carry adjustment for the 6809
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
dad5ee8926
commit
9122b5aa76
@ -376,7 +376,7 @@ uint8_t EightBit::mc6809::neg(uint8_t operand) {
|
||||
const register16_t result = 0 - operand;
|
||||
operand = result.low;
|
||||
adjustNZ(operand);
|
||||
setFlag(CC(), CF, result.word & Bit8);
|
||||
adjustCarry(result.word);
|
||||
return operand;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user