Question: can some one help me with this code, the output is supposed to say hello arm world and then Assembler: 2+3=5 the code complies but
can some one help me with this code, the output is supposed to say hello arm world and then Assembler: 2+3=5 the code complies but output is nothing and before I was showing hello arm world but not that I have tried to use the asm line it fails. below is the main c code file and then the asm


1 #include "mbed.h" 4 extern."C" ndi addas;(int a, int b); 5 // main runs in its own thread in the os 6 int main f 7 while (true) Ledi-true; printf ("Hello World. ") printf ("Assembler: %d + %d- %d ", 2, 3, addasm (2,3)); asm("AND RO, RO"): // this is a non-op in ARM programming wait (0.5) 10 - 811 12 13 14 h 1 #include "mbed.h" 4 extern."C" ndi addas;(int a, int b); 5 // main runs in its own thread in the os 6 int main f 7 while (true) Ledi-true; printf ("Hello World. ") printf ("Assembler: %d + %d- %d ", 2, 3, addasm (2,3)); asm("AND RO, RO"): // this is a non-op in ARM programming wait (0.5) 10 - 811 12 13 14 h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
