Name: | Mr. Ju Young Kim |
Web Site: | |
Ju Young Kim Says:
radix dec
i = 0
CAL macro value1
CH1 = 5 * value1 + 963
endm
MOVLW 0
MOVWF COUNT1
MOVWF COUNT2
MOVWF COUNT3
MOVWF COUNT4
MOVLW 2
MOVWF Temp1
DECF Temp1
i ++
SKPZ
GOTO $-2
CAL i
NOP
While CH1 > .1000
CH1 = CH1 - .1000
INCF COUNT1
Endw
While CH1 > .100
CH1 = CH1 - .100
INCF COUNT2
Endw
While CH1 > .10
CH1 = CH1 - .10
INCF COUNT3
Endw
While CH1 > 0
CH1 = CH1 - 1
INCF COUNT4
Endw