Assembly Language - PowerPoint PPT Presentation

About This Presentation
Title:

Assembly Language

Description:

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 ... – PowerPoint PPT presentation

Number of Views:166
Avg rating:3.0/5.0
Slides: 7
Provided by: edut1550
Category:

less

Transcript and Presenter's Notes

Title: Assembly Language


1
Assembly Language
  • Structures and Macros

2
Examples
  • Walk.asm
  • List.asm
  • Wraps.asm
  • putChar.asm
  • Nested.asm

3
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 ?

4
  • .code
  • main PROC
  • mMult32 val1,val2,prod
  • Display results
  • mov eax,prod
  • call WriteHex
  • call Crlf
  • exit
  • main ENDP
  • END main

5
  • ch10_04.exe

6
  • Due date 96/1/4
  • ftp//eec751_at_ftp.csie.nuk.edu.tw
  • Zip your files as a09xxxxx_951228.zip
Write a Comment
User Comments (0)
About PowerShow.com