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

View Full Document

Unformatted Document Excerpt

subtract TITLE 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 INCLUDE date: I .data val1 val2 val3 finalVal .code m main PROC mov sub sub mov call exit main ENDP END main ax,val1 ax,val2 ax,val3 finalVal, ax D DumpRegs ; AX = 8000h ; AX = 4000h ; AX = 2000h SWORD SWORD SWORD S SWORD 8000h 4000h 2000h ? ... View Full Document

End of Preview

Sign up now to access the rest of the document