Translation between C and Assembly
•A
for-loop in C
int z;
for (z=255; z>0; z--)
P1=z;
•A
loop in Assembly
MOV R2,#255
ABC: MOV P1,R2
DJNZ R2,ABCAll About 8051 Microcontroller.Learn all basics of Microcontrollers and Embedded Systems.
Subscribe to our newsletter to get the latest updates to your inbox. ;-)
Your email address is safe with us!
© 2015 8051 Microcontroller. Designed by Bassar Patel
0 comments:
Post a Comment
If you have any questions or droughts feel free to ask here.