Read the value from user input calculate sum
Comp 3350: Computer Organization & Assembly Language HW # 5: Theme: Data Definitions, Addressing Modes, Arrays All main questions carry equal weight.
(Credit awarded to only those answers for which work has been shown.)
1. |
---|
Variable | ||
---|---|---|
C7h | ||
|
|
34h |
12h | ||
E1h | ||
D1h | ||
|
C1h | |
|
A1h | |
22h | ||
00h | ||
00h | ||
00h |
![]() |
||||||
---|---|---|---|---|---|---|
beta | DWORD |
|
||||
|
||||||
computation: 2 points * 6 | ||||||
|
||||||
|
||||||
|
||||||
mov [gamma], eax |
|
|||||
|
|
mov eax, 4[ebx][esi]
exit
3. |
---|
.data
Array1 WORD 7h, …
Array2 WORD 1h, 2h, 2h, 4h, 4h, 6h, 6h, 8h, 8h
Then the expected result stored in Array3 should be: