User Tools

Site Tools


base:8_bit_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
Next revision
Previous revision
Next revisionBoth sides next revision
base:8_bit_to_hexadecimal_conversion [2017-08-12 13:24] – Slight optimization. tww_ctrbase:8_bit_to_hexadecimal_conversion [2017-08-20 00:07] tww_ctr
Line 58: Line 58:
 ;************************** ;**************************
 OUTHEX tax ; save value for low nibble OUTHEX tax ; save value for low nibble
- and #$f0 ; High nibble +        lsr             ; ignore CARRY and shift hi nybble to lonybble pos. 
-        lsr             ; ignore CARRY! + 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 - CARRY always clear when exiting the subroutine+
  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