base:decimal_to_hexadecimal_conversion

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

Both sides previous revision Previous revision | |||

base:decimal_to_hexadecimal_conversion [2016-02-14 21:59] verz |
base: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