Question: Write in ARM assembly language Modify the code you did for task #2 to check for valid number (0..15) in R0. Store '*' (0x2a) into

Write in ARM assembly language

Modify the code you did for task #2 to check for valid number (0..15) in R0. Store '*' (0x2a) into R1 if R0 is out of valid range. Store ASCII representation for valid numbers (from 0 to 15 inclusive).

Test your code with R0 = 255, 15, 0, 9, 12 and 16 (0x2a, 0x46, 0x30, 0x39, 0x43, 0x2a)

MOV R0, #255

MOV R0, #15

MOV R0, #0

MOV R0, #9

MOV R0, #12

MOV R0, #16

-- Put your instructions here ---

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!