W2 Part 2 - I.data Uarray WORD 1000h,2000h,3000h,4000h...

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 2 ; Write instructions that use direct-offset addressing to move ; the four values in Uarray to the EAX, EBX, ECX, and EDX registers. ; ; Next, write instructions that use direct-offset addressing to move ; the four values in Sarray to the EAX, EBX, ECX, and EDX registers. ; ; 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 Uarray WORD 1000h,2000h,3000h,4000h Sarray SWORD -1,-2,-3,-4 S .code main PROC m mov EAX,0 mov AX,Uarray mov EBX,0 mov BX,[Uarray+2] mov ECX,0 mov CX,[Uarray+4] mov EDX,0 mov DX,[Uarray+6] D call DumpRegs D mov AX,Sarray movsx EAX,AX mov BX,[Sarray+2] movsx EBX,BX mov CX,[Sarray+4] movsx ECX,CX mov DX,[Sarray+6] movsx EDX,DX m call DumpRegs D exit main ENDP END main...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online