Answer the question
In order to leave comments, you need to log in
How to solve these problems in 8086 assembler?
the first task is to develop an algorithm and write a program that translates a 2-byte integer into
a character string that represents the number in hexadecimal system (4 digits).
according to the first task, I came to the following algorithm:
We take the high byte of the number,
we get the high 4 bits, this will be the character index in the string '0123456789ABCDEF',
we get the character in the string by the index,
we get the lower 4 bits
, we get the character in the string by the index,
we get the next byte of the number
But with the implementation on assembler is hard.
second task - Write a program that converts 2-byte signed numbers into a 5-digit
decimal number, represented as a series of characters (6 bytes).
I write assembly language of microprocessor 8086
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question