summersnow
Newbie level 6
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
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