comparison code_part1/OSTC_code_asm_part1/valconv.asm @ 64:e8756eba54ee

1.71beta - more deco
author heinrichsweikamp
date Sat, 02 Oct 2010 23:34:08 +0200
parents 96a35aeda5f2
children fe195f766014
comparison
equal deleted inserted replaced
63:fee7c62b4de1 64:e8756eba54ee
68 68
69 output99: 69 output99:
70 movlw d'99' 70 movlw d'99'
71 cpfslt lo 71 cpfslt lo
72 movwf lo ; Limit to 99 72 movwf lo ; Limit to 99
73 movff lo, lo_temp 73 movff lo,lo_temp
74 clrf hi_temp 74 clrf hi_temp
75 bcf pre_zero_flag ; do not display leading zeros 75 bcf pre_zero_flag ; do not display leading zeros
76 76
77 LCD_val99_2: 77 LCD_val99_2:
78 movlw b'00001010' ; 10 78 movlw b'00001010' ; 10
86 bsf pre_zero_flag ; last figure, display zero (0) 86 bsf pre_zero_flag ; last figure, display zero (0)
87 rcall DEC2ASCII 87 rcall DEC2ASCII
88 RETURN 88 RETURN
89 89
90 output99x: 90 output99x:
91 movlw d'99'
92 cpfslt lo
93 movwf lo ; Limit to 99
91 movff lo, lo_temp 94 movff lo, lo_temp
92 clrf hi_temp 95 clrf hi_temp
93 bsf pre_zero_flag ; display leading zeros 96 bsf pre_zero_flag ; display leading zeros
94 bra LCD_val99_2 97 bra LCD_val99_2
95 98