mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Fix AAA/AAS carry outcome.
This commit is contained in:
parent
e61dc0466f
commit
7abd4d9b38
@ -30,6 +30,8 @@ void aaas(
|
|||||||
--ax.halves.high;
|
--ax.halves.high;
|
||||||
}
|
}
|
||||||
context.flags.template set_from<Flag::Carry, Flag::AuxiliaryCarry>(1);
|
context.flags.template set_from<Flag::Carry, Flag::AuxiliaryCarry>(1);
|
||||||
|
} else {
|
||||||
|
context.flags.template set_from<Flag::Carry>(0);
|
||||||
}
|
}
|
||||||
ax.halves.low &= 0x0f;
|
ax.halves.low &= 0x0f;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user