Question: The program should work for any different inputs ( X and Y ) . We just use these two situations to verify whether your program

The program should work for any different inputs (X and Y).
We just use these two situations to verify whether your program is valid. It functions as Z=| X-Y|..Only using DOSBox DEBUG no additional software like MASM or TASM. Design a program that generates the following equation and execute the program with
Dosbox.
Z=4^(**)|x-Y|
Requirements:
Use AX as X .
Use BX as Y.
Store Z into DS: 0100.
Start your program at IP =1230_(16);
Initialize CF =0_(2) and Word-size content @ DS:0100 is ABCD.
(25 points) Your report should include verification screenshots and you have to
provide a detailed explanation (operation) for each instruction you use.
(Note: Don't forget to include the screenshot to show the content @ DS:0100 is
updated by the result Z.)
(15 points) Besides, you need to demonstrate to the instructor by verifying the
operation of the program for the two cases that follow:
(a) If x=6_(10),Y=-2_(10)
(b) If x=-2_(10),Y=6_(10)
The program should work for any different inputs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!