News for hackers. Stuff that matters.
Re:Understanding the x86's Decimal Adjust after Addition (DA... by jamesfinlayson on Monday January 30, 2023 @11:38PM (#34591197)
If BCD is the only thing it's applicable for I don't think it has much use - I can't imagine any modern compilers generating BCD instructions nor any hand-rolled assembly making use of it these days.

> Even Intel's x86 processors are moving away from the DAA instruction; it generates an invalid opcode exception in x86-64 mode.

That's the first I've heard of that so I'm guessing no one complained.

Re:Understanding the x86's Decimal Adjust after Addition (DA... by rvalles on Tuesday January 31, 2023 @12:57AM (#34591743)
I have used DAA recently, in my "load option ROM in RAM floppy tool"[0]. Specifically, I use it for printing numbers as hexadecimal[1], as unfortunately the ASCII standard is not arranged in a way as to facilitate this.

0. https://github.com/rvalles/optromloader/

1. https://github.com/rvalles/optromloader/blob/master/optromlo...