User Tools

Site Tools


base:decimal_to_hexadecimal_conversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
base:decimal_to_hexadecimal_conversion [2016-02-14 21:59] verzbase:decimal_to_hexadecimal_conversion [2016-02-14 22:02] (current) verz
Line 50: Line 50:
  
 I made a small improvement, the idea being that a 10x multiplication can be computed as a sum of a (8x + 2x); since we're shifting the high nibble to the right, we get the 8x and 2x values in the process. I made a small improvement, the idea being that a 10x multiplication can be computed as a sum of a (8x + 2x); since we're shifting the high nibble to the right, we get the 8x and 2x values in the process.
-(Note that using a loResult in page zero there are 5 bytes/cycles of improvement)+(Note that using a loResult in page zero there would be 5 bytes/cycles of improvement)
  
 <code> <code>
-bcdbin+bcdbin:
             lda #$00        ; Init result bytes             lda #$00        ; Init result bytes
             ;sta loResult    ; useless             ;sta loResult    ; useless
base/decimal_to_hexadecimal_conversion.txt · Last modified: 2016-02-14 22:02 by verz