0% found this document useful (0 votes)
2 views11 pages

Assembly Language Homework Questions

The document outlines the homework assignment for an Assembly Language course, detailing questions from specific textbook pages and sections. Each question has a designated percentage value contributing to the overall homework score. The due date for the assignment is November 13 at 15:15, and it is to be submitted to a specified location.

Uploaded by

jhlin1209
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views11 pages

Assembly Language Homework Questions

The document outlines the homework assignment for an Assembly Language course, detailing questions from specific textbook pages and sections. Each question has a designated percentage value contributing to the overall homework score. The due date for the assignment is November 13 at 15:15, and it is to be submitted to a specified location.

Uploaded by

jhlin1209
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assembly Language

Homework #2
Due date: 13, November
Time: 15:15
Place:繳交到數位學苑
Question (100%)
1. Text Book page 131, 4.1.10
Section Review, question 8, 9, and
10 (30%, 3% for each answer)
Question (100%)
1. Text Book page 131, 4.1.10
Section Review, question 8, 9, and
10 (30%, 3% for each answer)
載入中⋯
AL = -

4
Ah = 1

AX = 1000h
AX = 3000h
AX = -16

error
Question (100%)
1. Text Book page 131, 4.1.10
Section Review, question 8, 9, and
10 (30%, 3% for each answer)

EDX =
1
EDX =
0x00001000
EDX = 2

EDX =
OxFFFFFFFC
Question (100%)
1. Text Book page 140, 4.2.8
Section Review, question 7 (10%)

載入中⋯
Question (100%)
1. Text Book page 145, 4.3.8
Section Review, question 7 (10%),
9 (5%), and 10 (5%)
Question (100%)
1. Text Book page 145, 4.3.8
Section Review, question 7 (10%),
9 (5%), and 10 (5%)

EAX = 1

EAX 4 =

EAX 4 =

EAX = 2

EAX = 4
EAX 4x2 g
= =

EAX =
5+1 =
6
Question (100%)
1. Text Book page 151, 4.4.5
Section Review, question 7 (10%)
and 8 (10%)
80 00 00 01 00 00 00 02
10h
40h

8th

0x000000 03
undefined or error

00000002h

2010h
3BOOSAOOh

0100
0200

undefined or error
Question (100%)
1. Text Book page 156, 4.5.5
Section Review, question 9 (10%)
and 10 (10%)
P 131 4 1 10 P140. 4 2 8 9 mor ax, Words $156 45 5
my
. .
. .
. . .
.
,

8. a .
Al = -
4 9. mor ax , ral 10 .
mov eax
,
[myBytes] 9 .
EAX 28 =

b Ah /
neg ax
=

P151 44 5 10
.

.
,
.
.

add ax , bx
9. a AX = 1000 data
1
.

mor bx valk . a .
AL = 10h .

b 3000h
,
AX =
count DWORD ?
sub b 40h
.

ax , by . AL =

c AX =
-16 code
8Ah
.

AX
·

C =

P145
.

d .
error . 4 3 .
.
8 mov eax , o
d .
EDX =
0x00000003
mor ex , 10
10 . a . EDX 1 = D . a .
EAX = e . EDX = undefined or error

L :

b. EDX =
0x00001000 b . EAX 4 :
f .
EAX =
00000002h
mor count , ex
c EDX =
2 C EAX 4 =

8. 2010h
. .

a AX = mov ex ,
5
d
.

EDX = OxFFFFFFF( d EAX =


2
b EAX 3BOOSAOOh
.
.

.
=
L2 :
e .
EAX 4 =

c .
AX =
0100 add eax 5
f EAX #x2 8
,
= =

d AX
.

.
=

0200 loop 12
g EAX
. = 5+ 1 6 =

2 .
Ax =
undefined or error mov ex , count

loopI

You might also like