News for hackers. Stuff that matters.
Re:Understanding the x86's Decimal Adjust after Addition (DA... by gfaure on Monday January 30, 2023 @11:39PM (#34591205)
I only remember the DAA instruction because it was the last instruction I implemented in my Game Boy emulator. Since it's mainly used for end-user display of game scores, for most games it doesn't lead to any behaviour problems apart from messed up numeric strings, even if not implemented.
Re:Understanding the x86's Decimal Adjust after Addition (DA... by MBCook on Monday January 30, 2023 @11:47PM (#34591278)
Ditto! I fished the CPU emulation on the emulator I’m writing around Christmas and I purposefully pushed DAA to the end of my instruction TODO list.

It’s not that bad conceptually but in practice making sure all the flags are set right by the other instructions so DAA would work is a bit of a pain.

Re:Understanding the x86's Decimal Adjust after Addition (DA... by dezgeg on Tuesday January 31, 2023 @05:56AM (#34593656)
Another GB emulator hobbyist here :) My dim recollection is that Pokemon uses BCD for in-game cash, so there you might be able to 'cheat' or either never buy anything if BCD stuff is left unimplemented :)