ASM TO C

Status
Not open for further replies.

antoni1

New Member
HI
Can anyone please tell me what the following are translated in C language?

org 0x00
bsf GPIO,WHILED
btfsc GPIO,WHIIN
got loop1
bcf GPIO,WHIIN
incfsz COUNTER1,F
movf ALL,F
subwf BALL,W
bc $+2
decfsz CAT,F

thanks
 
You appear to have the wrong idea?.

C code gets compiled into assembler, not the other way round.

It's rather like trying to recreate the original eggs from an omelette to create C from assembler - and that's assuming it was written using a C compiler in the first place!.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…