convert assembly language to C

Status
Not open for further replies.

summersnow

Newbie level 6
Joined
Dec 30, 2006
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,435
assembly language to c converter

Hi,

Is there anyone who can help me to convert this two simple assembly code to a C language code?i'm still new in this and i really hope you all can help me in this..

first code:
PASS BRCLR PORTC,X $10 PASS
PRESS BRSET PORTC,X $10 PRESS
LDAA PORTC,X
ANDA #$0F

second code:
LDY #6
RING BRSET PORTA,X %00000001 RING3
RING3 BRSET PORTA,X %00000001 RING3
DEY
BNE RING
OFF BSET PORTA,X %0010000

The problem i faced in both of this code is i don't know how to use C to instruct the microcontroller to detect a port more than one times to do the following process.Please help me in this..Thanks in advance
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…