Assembly Language

Assembly Language - I .data 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 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

Page1 / 1

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

This preview shows document page 1. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online