Whoops: missed a couple bad type conversions in the 6809 processor

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-08-20 22:20:24 +01:00
parent 90805e76bf
commit aa1a461db7

View File

@ -152,7 +152,7 @@ namespace EightBit {
void adjustAddition(uint16_t before, uint16_t data, uint32_t after) {
const register16_t result = after & Mask16;
adjustNZ(result);
adjustNZ(result.word);
adjustCarry(after);
adjustOverflow(before, data, result.word);
}
@ -166,7 +166,7 @@ namespace EightBit {
void adjustSubtraction(uint16_t before, uint16_t data, uint32_t after) {
const register16_t result = after & Mask16;
adjustNZ(result);
adjustNZ(result.word);
adjustBorrow(after);
adjustOverflow(before, data, result.word);
}