mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-11 02:29:50 +00:00
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:
parent
90805e76bf
commit
aa1a461db7
@ -152,7 +152,7 @@ namespace EightBit {
|
|||||||
|
|
||||||
void adjustAddition(uint16_t before, uint16_t data, uint32_t after) {
|
void adjustAddition(uint16_t before, uint16_t data, uint32_t after) {
|
||||||
const register16_t result = after & Mask16;
|
const register16_t result = after & Mask16;
|
||||||
adjustNZ(result);
|
adjustNZ(result.word);
|
||||||
adjustCarry(after);
|
adjustCarry(after);
|
||||||
adjustOverflow(before, data, result.word);
|
adjustOverflow(before, data, result.word);
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ namespace EightBit {
|
|||||||
|
|
||||||
void adjustSubtraction(uint16_t before, uint16_t data, uint32_t after) {
|
void adjustSubtraction(uint16_t before, uint16_t data, uint32_t after) {
|
||||||
const register16_t result = after & Mask16;
|
const register16_t result = after & Mask16;
|
||||||
adjustNZ(result);
|
adjustNZ(result.word);
|
||||||
adjustBorrow(after);
|
adjustBorrow(after);
|
||||||
adjustOverflow(before, data, result.word);
|
adjustOverflow(before, data, result.word);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user