Assembly Language

Assembly Language - val1 SWORD 8000h val2 SWORD...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
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
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

This note was uploaded on 12/30/2009 for the course COS 231 taught by Professor Jasonlitz during the Summer '09 term at Thomas Edison State.

Ask a homework question - tutors are online