mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 15:29:24 +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) {
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user