Question: (write an assembly language program. ) Write a function PrintAddress that takes two parameters, the segment and offset parts of an address, via the stack.
(write an assembly language program. )
Write a function PrintAddress that takes two parameters, the segment and offset parts of an address, via the stack. The function should print the physical address corresponding to the segment offset pair passed at the top left of the screen. The address should be printed in hex and will therefore occupy exactly five columns. For example, passing 5600(Segment address) and 7800(offset address) as parameters should result in 5D800 printed at the top left of the screen. Note: Subroutine should save and restore the original value stored in register i.e. must not change the register values. code in assembly language kindly and simple
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
