Question: Write a subroutine that takes R0 and R1 as parameters. They contain ASCII codes of two hexadecimal digits (R1 is the most significant). It returns

Write a subroutine that takes R0 and R1 as parameters. They contain ASCII codes of two hexadecimal digits (R1 is the most significant). It returns the corresponding hexadecimal number in R0. The hexadecimal digits can be are 0..9 and a..f. Uppercase letters do not need to be considered. So if R0 stores 'a' and R1 stores '1' initially, after your subroutine R0 will store 26, or x1a. 

In LC3 assembly language

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!