0% found this document useful (0 votes)
317 views8 pages

SECR2033 Computer Organization and Architecture: Module 3 & Lab 1

This document provides instructions and activities for a computer organization and architecture lab assignment. It includes 3 exercises that involve analyzing byte sequences in memory and debugging code to view register and memory values. Students are asked to complete the activities, take screenshots while debugging, and submit a lab report in PDF format by the specified due date.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
317 views8 pages

SECR2033 Computer Organization and Architecture: Module 3 & Lab 1

This document provides instructions and activities for a computer organization and architecture lab assignment. It includes 3 exercises that involve analyzing byte sequences in memory and debugging code to view register and memory values. Students are asked to complete the activities, take screenshots while debugging, and submit a lab report in PDF format by the specified due date.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SECR2033

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:

What are the sequences of bytes (in hexadecimal) in storage.

MyData DWORD 3740625, 2 DUP(2ABCD0Eh)

3
MyData DWORD 3740625, 2 DUP(2ABCD0Eh) 3
Solution 3.1:
 3740625 is in decimal  003913D1h

Offset: Value: Offset: Value:

0000: 0006:

0001: 0007:

0002: 0008:

0003: 0009:

0004: 000A:

0005: 000B:
4
Activity 2 3
Exercise 3.2:

What are the sequences of bytes (in hexadecimal) in storage.

MyData2 WORD 2 DUP(4Fh),?,‘B’,25,500Dh

5
MyData2 WORD 2 DUP(4Fh),?,‘B’,25,500Dh 3
Solution 3.2:  B == 42h
 42h
 25
 2510 = 19h
10 = 19h

Offset: Value: Offset: Value:

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

You might also like