- Fri Sep 14, 2012 3:21 am
#149433
Hi all,
I am very new to this assembly language. Currently i am working on small project using LPCXpresso baseboard using LCPXpresso software. I have a bit back ground of c programming. I have difficulties getting my syntex right in assembly.
My logic in c is as below. I am trying to get equivalent syntex in assembly. Kindly direct me with simple example. I have read about IT block in arm assembly, but have difficulties getting IT right.
----------------------------
//case 1
if (R0 = 0 && abc < 3) ;note:abc is a varible
{
..;do something
}
----------------------------
//case 2
if (R0 = 0 && abc < 3)
{
goto label;
}
label:
----------------------------
Thanks all your help in advance.
I am very new to this assembly language. Currently i am working on small project using LPCXpresso baseboard using LCPXpresso software. I have a bit back ground of c programming. I have difficulties getting my syntex right in assembly.
My logic in c is as below. I am trying to get equivalent syntex in assembly. Kindly direct me with simple example. I have read about IT block in arm assembly, but have difficulties getting IT right.
----------------------------
//case 1
if (R0 = 0 && abc < 3) ;note:abc is a varible
{
..;do something
}
----------------------------
//case 2
if (R0 = 0 && abc < 3)
{
goto label;
}
label:
----------------------------
Thanks all your help in advance.