assembly_exam - text of your quiz4p2.asm file into this...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COS260a – Assembly Language Programming Quiz #04 - Strings and Arrays; Structures and Macros Name: ___ (Enter your name in the Name field above) Date: November 18, 2009 This is the second part of QUIZ#04. The first paper-based part of the quiz gives you max 80% in the grade of QUIZ#04. The second part gives you max 20%. You have 20 minutes to complete this assignment. READ THE WHOLE ASSIGNMENT BEFORE YOU START WORKING ON IT! Your task is: to create a macro mMove32 that receives two 32-bit memory operands. The macro should move the source operand to the destination operand. You have to use Visual Studio to create and test your macro. The “template” code follows. Use it - copy it into a file named quiz4p2.asm, add statements in the provided macro definition, add also statements in main PROC to test your macro. When you finish, copy the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: text of your quiz4p2.asm file into this file replacing the text of the template below. Copy also the screenshot of the execution of your program (see the comment in the provided template. Save the file under the name YourFirstName_YourLastName.doc and submit it using dotLRN Cours Material, Quiz#04 submit answer link. ===== The template code starts after this line on the next page ===== TITLE QUIZ#04, part 2 (quiz4p2.asm) Comment ! Description: Create a macro mMove32 that receives two 32-bit memory operands. The macro moves the source operand to the destination operand. ! INCLUDE Irvine32.inc mMove32 MACRO destination, source push eax mov eax,source mov destination,eax pop eax ENDM .data var1 DWORD 12345678h var2 DWORD 0 .code main PROC mMove32 var2,var1 mov eax,var2 call DumpRegs exit main ENDP END main...
View Full Document

Page1 / 2

assembly_exam - text of your quiz4p2.asm file into this...

This preview shows document pages 1 - 2. Sign up to view the full document.

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