News for hackers. Stuff that matters.
Re:Understanding the x86's Decimal Adjust after Addition (DA... by flohofwoe on Tuesday January 31, 2023 @03:24AM (#34592677)
I guess the reason is better composability and fewer wasted opcode "slots". E.g. arithmetic instructions output their result and status flags, and the DAA instruction takes that as input.

Separate BCD instruction would require to duplicate all instructions that are "compatible" with DAA, and there might not have been enough room in the instruction set for those.

There are no comments on this comment yet.