namco
Member
I'm reading through the book posted on the gp2x wiki about arm assembly.
I compiled the first small test from the book which is:
CODE
MOV R0, #1;@Initialise count
.loop SWI writeI+"*";@Print a "*"
ADD R0, R0, #1;@Increment count
CMP R0, #20 ;@Compare with limit
BLE loop
I compiled it with:
arm-linux-gcc -o stars.gpe stars.s
and I have:
Error: unknown psuedo-op: '.loop'
What am I doing wrong?
Thanks.
I compiled the first small test from the book which is:
CODE
MOV R0, #1;@Initialise count
.loop SWI writeI+"*";@Print a "*"
ADD R0, R0, #1;@Increment count
CMP R0, #20 ;@Compare with limit
BLE loop
I compiled it with:
arm-linux-gcc -o stars.gpe stars.s
and I have:
Error: unknown psuedo-op: '.loop'
What am I doing wrong?
Thanks.