movlw 0x34
movwf NUM_BCD
;Convertir a ASCII
; Digito Decenas
swapf NUM_BCD,w ; intercambio nibble inferior y superior. WREG = 0x43
andlw 0x0F ; borro nibble superior. WREG = 0x03
addlw .48 ; Ahora si le sumo 48dec --> WREG = "3"
movwf TEMP ; TEMP = 3 en ASCII o 51dec.
; Aca se hace lo que uno desee con TEMP.
; Digito Unidades
movf NUM_BCD,w
andlw 0x0F ; borro nibble superior. WREG = 0x04
addlw .48 ; Ahora si le sumo 48dec --> WREG = "4"
movwf TEMP ; TEMP = 4 en ASCII o 52dec.