asm to C

Status
Not open for further replies.

antoni1

New Member
milliDelay
movlw .250 ;outer loop
addlw 0xFF ;inner loop
btfss STATUS,Z
goto $-2 ;goto inner loop

movlw 1 ;16-bit decrement
subwf ARG1L,f
btfss STATUS,C
decf ARG1H,f

movf ARG1H,f ;16-bit test if zero
btfsc STATUS,Z
movf ARG1L,f
btfsc STATUS,Z
return
goto milliDelay

CAN anyone help me to translate this assemply code into C language?
 
Most C compiler allow the use of inline assembly...
what compiler do you use ?
 

I could make it into C if it was really important, it takes me a while though.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…