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 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:05] – fixed slight bug tww_ctr
Line 60: Line 60:
  and #$f0 ; High nibble  and #$f0 ; High nibble
         lsr             ; ignore CARRY!         lsr             ; ignore CARRY!
- ror rotate one bit right + lsr ;  
- ror rotate one bit right + lsr ;  
- ror rotate one bit right -> CARRY must be clear when calling NIB2HEX! + lsr ;  
- jsr NIB2HEX ; print nibble - CARRY always clear when exiting the subroutine+ 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