1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Fix AAA/AAS carry outcome.

This commit is contained in:
Thomas Harte 2023-11-10 22:47:50 -05:00
parent e61dc0466f
commit 7abd4d9b38

View File

@ -30,6 +30,8 @@ void aaas(
--ax.halves.high;
}
context.flags.template set_from<Flag::Carry, Flag::AuxiliaryCarry>(1);
} else {
context.flags.template set_from<Flag::Carry>(0);
}
ax.halves.low &= 0x0f;
}