Question: Using the AddSub program from Section 3.2 as a reference, write a program that subtracts five integers using only 16-bit registers. Insert a call DumpRegs

Using the AddSub program from Section 3.2 as a reference, write a program that subtracts five integers using only 16-bit registers.

Insert a call DumpRegs statement to display the register values.

make it similar to this but for 5 integers :

1: ; AddTwo.asm - adds two 32-bit integers

2: ; Chapter 3 example

3:

4: .386

5: .model flat,stdcall

6: .stack 4096

7: ExitProcess PROTO, dwExitCode:DWORD

8:

9: .code

10: main PROC

11: mov eax,5 ; move 5 to the eax register

12: add eax,6 ; add 6 to the eax register

13:

14: INVOKE ExitProcess,0

15: main ENDP

16: END main

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 Databases Questions!