0% found this document useful (0 votes)
64 views3 pages

BACS1113 Computer Organisation and Architecture T3: Addressing Data in Memory and Segments

This document discusses addressing data in memory and segments. It covers how a processor stores hexadecimal values in memory using 8-bit locations. It defines segments and offsets, and describes the three kinds of segments. It examines the purpose of registers like CS, DS, SS, IP and explains how to calculate absolute addresses. Questions are asked about converting segment:offset addresses, the purpose of registers, and other registers that point to stack variables. It concludes by asking about other storage sizes available besides bytes.

Uploaded by

Dephne Wong
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)
64 views3 pages

BACS1113 Computer Organisation and Architecture T3: Addressing Data in Memory and Segments

This document discusses addressing data in memory and segments. It covers how a processor stores hexadecimal values in memory using 8-bit locations. It defines segments and offsets, and describes the three kinds of segments. It examines the purpose of registers like CS, DS, SS, IP and explains how to calculate absolute addresses. Questions are asked about converting segment:offset addresses, the purpose of registers, and other registers that point to stack variables. It concludes by asking about other storage sizes available besides bytes.

Uploaded by

Dephne Wong
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
You are on page 1/ 3

BACS1113 Computer Organisation and Architecture

T3: Addressing Data in Memory and Segments

1. Show how the processor stores the following hexadecimal value into the
memory by using a diagram of a block of consecutive memory, for each memory
location of 8-bit.
(a) 2ACD
(b) 12BF
(c) 809D
(d) 250010

2. Explain each of the following terms:-


(a) Segment
(b) Offset

3. What are the THREE (3) kinds of segment?

4. What is the purpose of each of the following registers:-


(a) CS – refer to code segment register
(b) DS – refer to data segment register
(c) SS – stack segment regiser
(d) IP – instruction pointer register, hold the next

5. Using the information in the table below, calculate the absolute address for the
next instruction to be executed by the Central Processing Unit (CPU).

Code Segment (CS): 02B3 Data Segment (DS): 26D2 Stack Segment (SS): 0589
Instruction Pointer (IP): 0025 Base Pointer (BP): 0362 Stack Pointer (SP): 0111

6. Convert the following hexadecimal segment:offset address to a linear


address.

This study source was downloaded by 100000840596676 from CourseHero.com on 02-17-2022 07:59:35 GMT -06:00

https://www.coursehero.com/file/84016130/T3-Addressing-Data-in-Memory-and-Segmentsdocx/
BACS1113 Computer Organisation and Architecture

(a) 0950:0100
(b) 0CD1:02E0

7. Explain which register is used for the following purposes:-


(a) When the result of an arithmetic or logical operation generates a result of zero.

(b) Used for error checking when there is a possibility that data might be altered
or corrupted.

(c) When the result of an unsigned arithmetic operation is too large to fit into the
destination.

(d) Used for arithmetic and data movement.

(e) Used for counting loops.

This study source was downloaded by 100000840596676 from CourseHero.com on 02-17-2022 07:59:35 GMT -06:00

https://www.coursehero.com/file/84016130/T3-Addressing-Data-in-Memory-and-Segmentsdocx/
BACS1113 Computer Organisation and Architecture

8. Besides the stack pointer (SP), what other register points to variables on the stack?

9. The basic storage unit for all data in an x86 computer is a byte. What are the other
storage sizes available?

This study source was downloaded by 100000840596676 from CourseHero.com on 02-17-2022 07:59:35 GMT -06:00

https://www.coursehero.com/file/84016130/T3-Addressing-Data-in-Memory-and-Segmentsdocx/
Powered by TCPDF (www.tcpdf.org)

You might also like