Assembly language

Assembly Language
Download Document
Showing pages : 1 of 1
This preview has blurred sections. Sign up to view the full version! View Full Document
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 Irvine32.inc
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 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