This preview has intentionally blurred parts. Sign up to view the full document

View Full Document

Unformatted Document Excerpt

TITLE subtract three integers (main.asm) ( ; Description: ; Assignment 2 part 1 ; Using the AddSub program from Section 3.2 on page 76 of your ; textbook as a reference, write a program that subtracts three ; ; integers using only 16 bit registers. ; Revision date: ; INCLUDE I .data val1 SWORD 8000h val2 SWORD 4000h val3 SWORD 2000h finalVal SWORD ? S .code main PROC m mov ax,val1 ; AX = 8000h sub ax,val2 ; AX = 4000h sub ax,val3 ; AX = 2000h mov finalVal, ax call DumpRegs D exit main ENDP END main... View Full Document

End of Preview

Sign up now to access the rest of the document