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

CS401 CH 4

Uploaded by

rofofax483
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)
19 views8 pages

CS401 CH 4

Uploaded by

rofofax483
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/ 8

CS-401

Assembly Language Programming

Lecture-4
Computer Architecture & Assembly
Language Programming
In the Last Lecture

We discussed a program with a listing file.


In Today’s Lecture

We will discuss Debugger


Physical address calculation
Physical Address Calculation
16-bit segment 16-bit offset

0000 0000
20-bit segment
+ 20-bit offset

20-bit Physical Address


Address Calculation

1 D D D 0
+ 0 0 1 0 0
1 D E D 0

20 –Bit Physical Address Calculation


Segment Base

16 – Bit Segment Register Value


0 0 0 0

0 0 0 0 0
20 – Bit Segment = 0 Decimal
Segment Base

16 – Bit Segment Register Value


0 0 0 1

0 0 0 1 0
20 – Bit Physical Address = 16 Decimal

You might also like