Question: The stringcmp.c describes a MISRA - C compliant implementations on ARM LPC 1 7 xx processor. Please write an ARM assembly language to implement the
The stringcmp.c describes a MISRAC compliant implementations on ARM LPCxx processor. Please write an ARM assembly language to implement the code. If you use any registers other than rr you need to save them in the stack, using instructions push rr for example to save registers r r r and r poprr is the instruction to restore them In your main.c function, please run the stringcmp results for the following strings.
stringcmpabc "def"
stringcmpabc "abcd" null character is less than d
stringcmpabc "ABC"aA in ASCII
stringcmpabc "abc"
The C code in main.c looks like this,
printfcomparions abc def d
stringcmpabc"def";
printfcomparions abc abcd d
stringcmpabc"abcd";
printfcomparions abc ABC d
stringcmpabc"ABC";
printfcomparions abc abc d
stringcmpabc"abc";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
