base:8_bit_to_hexadecimal_conversion
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
base:8_bit_to_hexadecimal_conversion [2017-08-12 13:24] – Slight optimization. tww_ctr | base:8_bit_to_hexadecimal_conversion [2017-08-20 00:07] – tww_ctr | ||
---|---|---|---|
Line 58: | Line 58: | ||
; | ; | ||
OUTHEX tax ; | OUTHEX tax ; | ||
- | and #$f0 ; High nibble | + | |
- | | + | lsr ; |
- | ror ; rotate one bit right | + | lsr ; |
- | ror ; rotate one bit right | + | lsr ; |
- | ror ; rotate one bit right -> CARRY must be clear when calling NIB2HEX! | + | jsr NIB2HEX ; print nibble |
- | jsr NIB2HEX ; print nibble | + | |
txa ; restore value | txa ; restore value | ||
and #$0f ; Low nibble | and #$0f ; Low nibble |
base/8_bit_to_hexadecimal_conversion.txt · Last modified: 2017-08-20 00:30 by tww_ctr