Assembly Language Structures and Macros
Examples Walk.asm List.asm Wraps.asm putChar.asm Nested.asm
Exercise 1 Create a macro named mMult32 that multiplies two unsigned 32-bit memory operands and produces a 32-bit product. INCLUDE Irvine32.inc mMult32 MACRO op1,op2,product ; ***** YOUR CODES HERE ************* ENDM .data val1 DWORD 1000h val2 DWORD 200h prod DWORD ?
.code main PROC mMult32 val1,val2,prod ; Display results mov eax,prod call WriteHex call Crlf exit main ENDP END main
ch10_04.exe
Due date: 96/1/4 ftp://eec751@ftp.csie.nuk.edu.tw Zip your files as a09xxxxx_951228.zip