Computer Science, asked by spandey17071999, 7 months ago

Write and run following programs using 8086 assembly language: (3 × 10 = 30)
(a) Write and run an Assembly language program that converts a packed 4 digit BCD number
that has been stored in two consecutive byte locations in the memory, into an equivalent
binary number. The output should be stored in DX register. For example, if two consecutive
byte locations have BCD values (12)h and (34)h then output will be binary equivalent of
(1234)10 which is (0000 0100 1101 0010)2. This binary value will be stored in DX register.
(b) Write and run (using appropriate calling program) a near procedure in 8086 assembly
language that checks if the input parameter has a value less than 5. If the value is less than 5
then subroutines displays the line "Parameter value is less than 5" else it displays "Parameter
value is >= 5".
(c) Write and run an 8086 assembly language program that finds the factorial of the value stored
in BH register. You may assume that BH register will store a maximum value 8. Thus, you
need not handle the overflow.

Answers

Answered by rishabhsingh282
0

Answer:

that has been stored in two consecutive byte locations in the memory, into an equivalent binary number. The output ...

binary number. The output should be stored in DX register. For example, if two consecutive byte locations have BCD values (12)h and (34)n then output will be ...

0 votes

Similar questions