Computer Science, asked by tusharmahore2002, 1 day ago

write ALP to convert the contents of memory location C000 to an ASCH character ?​

Answers

Answered by samikhot2020
0

Answer:

Algorithm:

1.Load the given data in accumulator and move to B register

2.Mask the most significant 4 bits(upper nibble) of the Hexa decimal number in accumulator.

3.Call subroutine to get ASCII of least significant 4 bits.

Store it in memory

4.Move B register to accumulator and mask the least significant 4 bits(lower nibble).

4.Rotate the upper and lower nibble position.

5.Call subroutine to get ASCII of upper nibble

Store it in memory

6.Terminate the program.

Similar questions