Talk:16-bit BCD: Difference between revisions
From NESdev Wiki
Jump to navigationJump to search
m (forgot ~~~~) |
m (Proper optimization) |
||
Line 2: | Line 2: | ||
:Good idea. I made [[:Category:Arithmetic]]. You can probably populate it by going through the last week of [[Special:Contributions/Koitsu]]. --[[User:Tepples|Tepples]] ([[User talk:Tepples|talk]]) 17:30, 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]]. --[[User:Tepples|Tepples]] ([[User talk: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. | I seem to remember optimizing this routine way back, at the very least to eliminate that unnecessary sec in the loop. Move it out of the loop, invert the sentinel to $7F, and change the loop condition to bcs.[[User:Blargg|Blargg]] ([[User talk:Blargg|talk]]) 11:06, 25 November 2013 (MST) |
Revision as of 18:08, 25 November 2013
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. Move it out of the loop, invert the sentinel to $7F, and change the loop condition to bcs.Blargg (talk) 11:06, 25 November 2013 (MST)