3 ms·
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-rolle
by jamesfinlayson 4y ago
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.
- rvalles 4y agoI 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/ https://github.com/rvalles/optromloader/ 1. https://github.com/rvalles/optromloader/blob/master/optromloader.asm#L182 https://github.com/rvalles/optromloader/blob/master/optromlo...