Talk:16-bit BCD
From NESdev Wiki
Jump to navigationJump to search
These kind of description of arithmetic stuff is useful. There might be useful to have a category for this. I also asking about a signed version, but I suppose such thing wouldn't be too difficult (print a minus sign and then XOR by 65535 and then add one, and then do it with unsigned). --Zzo38 (talk) 17:07, 24 August 2013 (MDT)
- Good idea. I made Category:Arithmetic. You can probably populate it by going through the last week of Special:Contributions/Koitsu. --Tepples (talk) 17:30, 24 August 2013 (MDT)
I seem to remember optimizing this routine way back, at the very least to eliminate that unnecessary sec in the loop. Make it a clc, adjust the low table, and take the clc out of the loop since the bcc ensures it's clear each time through.