Question: Write in ARM assembly language Write a program that converts a hexadecimal value between 0x0 and 0xf in register R0 into its ASCII representation. Store

Write in ARM assembly language

Write a program that converts a hexadecimal value between 0x0 and 0xf in register R0 into its ASCII representation. Store ASCII representation into R1. Digits '0' through '9' are represented with the ASCII codes 0x30 to 0x39. The digits 'A' through 'F' are coded as 0x41 through 0x46. (See 'ascii.pdf' file)

Test your code with R0 = 15, 0 and 9

(0x46, 0x30, 0x39)

MOV R0, #15

MOV R0, #0

MOV R0, #9

-- 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!