Question: HCS12 Assembly The program converts a four-ASCII-digit number to an 8-bit unsigned binary. The first digit is either + (=$2B) or - (=$2D). The absolute
HCS12 Assembly
The program converts a four-ASCII-digit number to an 8-bit unsigned binary. The first digit is either + (=$2B) or - (=$2D). The absolute value of the number is smaller than 128ten. For example, a 4- digit number as +, 0 (=$30), 1 (=$31), and 8 (=$38) should be converted into 0001 0010 in binary. A 4-digit number as +, 1, 2, and 7 should be converted into 0111 1111 in binary. You may assume the first digit is always + at this point. Note: instead of $30, you should use 0 (including the single quotes) directly in the assembly code. In addition, you should use + or - (instead of $2B or $2D) in your code.
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
