Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top