Assembly Language

Homework 11, Due 2010/6/14

Problem 1

MultArray Example (Page 431, Problem 1)

Use the FindArray example from Section 12.3.1 as a model for this exercise.  Write an assembly language procedure named MultArray that multiplies a doubleword array by an integer.  Write the ame function in C++.  Create a test program that calls both versions of MultArray from loops and compares their execution times.

 

Files from the Textbook: FindArray\AsmFindArray.asm, FindArray\findArr.cpp, FindArray\findarr.h, FindArray\main.cpp

t11_1.exe

 

 

Problem 2

External TranslateBuffer Procedure (Page 431, Problem 4)

Write an external procedure in assembly language that performs the same type of encryption shown in the inline TranslateBuffer procedure from Section 12.2.2.

Files from the Textbook: Encode\Encode.cpp, Encode\infile.txt, Encode\translat.cpp, Encode\translat.h

t11_2.exe

  

 

ftp your homework to

ftp://alasp11@140.127.208.168/

in the directory \HW11

by the following format:

檔案名稱:hw#_學號.zip

例如:資工同學,作業4

    檔案名稱:hw4_a09755xx.zip.  (注意:檔案名稱不能有中文)

The password is given in class.