Assembly Language

Homework 1, Due 2010/3/15

Problem 1

Subtracting three integers (Page 77, Problem 1)

Using the AddSub program from Section 3.2 as a reference, write a program that subtracts three 16-bit integers using only registers. Insert a call DumpRegs statement to display the register values.

 

Problem 2

Data definition (Page 78, Problem 2)

Write a program that contains a definition of each data type listed in Section 3.4.

Initialize each variable to a value that is consistent with its data type.

 

ftp your homework to

ftp://alasp@140.127.208.168/

in the directory \HW1

by the following format:

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

例如:資工同學,作業4

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

The password is given in class.