SECR2033 Computer Organization and Architecture: Module 3 & Lab 1
SECR2033 Computer Organization and Architecture: Module 3 & Lab 1
Computer Organization
and Architecture
Module 3 & Lab 1
Lecture slides prepared by “Computer Organization and Architecture”, 9/e, by William Stallings, 2013.
1. Use this as the format for your lab report
2. Answer all activities and submit your lab report
(pdf only) on e-learning by 8 March 5pm
+
Lab 1 - COA
Group Members:
Member 1
Member 2
Member 3
2
Activity 1 3
Exercise 3.1:
3
MyData DWORD 3740625, 2 DUP(2ABCD0Eh) 3
Solution 3.1:
3740625 is in decimal 003913D1h
0000: 0006:
0001: 0007:
0002: 0008:
0003: 0009:
0004: 000A:
0005: 000B:
4
Activity 2 3
Exercise 3.2:
5
MyData2 WORD 2 DUP(4Fh),?,‘B’,25,500Dh 3
Solution 3.2: B == 42h
42h
25
2510 = 19h
10 = 19h
0000: 0006:
0001: 0007:
0002: 0008:
0003: 0009:
0004: 000A:
0005: 000B:
6
Activity 3
.data
3
Exercise 3.3: cth BYTE 34H
You are given the following code cth2 BYTE 55H
snippets. Answer these questions (in
Hex). val1 WORD 6677H
1. Duplicate template-lab as Lab1Ex3 val2 WORD 8899H
2. Update main.asm with the code in the
box and build project .code
3. Debug the code and display the 4 main PROC
windows (registers, memory, watch,
autos) to get the values below MOV AX,0
4. Screenshot your VS2019 with the 4 MOV AH, cth
windows while running debugging to MOV BX,0
put in lab report MOV BX, val1+1
exit
● AH =
main ENDP
● AX =
● BX = 7
+ Example screenshot for lab 8