Talk:16-bit BCD: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
m (Proper optimization)
m (Undo revision 7786 by Blargg (talk))
 
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. 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)
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.[[User:Blargg|Blargg]] ([[User talk:Blargg|talk]]) 11:06, 25 November 2013 (MST)

Latest revision as of 18:11, 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. 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.Blargg (talk) 11:06, 25 November 2013 (MST)