ON 20050705@8:43:58 AM at page: http://www.piclist.com/techref/member/JYK-hotmail-111/index.htm#38538.3638657407 Ju Young Kim[JYK-hotmail-111] Says It works but the variable "i" isn't incremented.
How i can make the value of the variable "i" same as that of the register "Temp1" in my code.
Thanks in advance.

==== code =======

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
ON 20050705@8:46:23 AM at page: http://www.piclist.com/techref/member/JYK-hotmail-111/index.htm# Ju Young Kim[JYK-hotmail-111] edited the page. Difference: http://www.piclist.com/techref/diff.asp?url=H:\techref\member\JYK-hotmail-111\index.htm&version=1