0% found this document useful (0 votes)
29 views15 pages

Microprocessors

This document contains questions about memory segmentation and paging in 80286 and 80386 processors. It provides descriptor tables for the GDT, LDT1, LDT2 and page tables. It asks questions about segment sizes, access rights, physical addresses and protection levels based on the given descriptor entries. It also provides questions about address translation when paging is enabled in 80386 protected mode.

Uploaded by

bits_who_am_i
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)
29 views15 pages

Microprocessors

This document contains questions about memory segmentation and paging in 80286 and 80386 processors. It provides descriptor tables for the GDT, LDT1, LDT2 and page tables. It asks questions about segment sizes, access rights, physical addresses and protection levels based on the given descriptor entries. It also provides questions about address translation when paging is enabled in 80386 protected mode.

Uploaded by

bits_who_am_i
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/ 15

TUTORIAL 8

Module 6

Q1
If the DPL of a segment is 10 ,what are the RPL values allowed
for access

Q2
If the 8byte descriptor of a segment in 80286 is 00 00 FF 32 00 00 00 FF
What is the size of the segment?
Is this a code or data segment?
Is this segment Read only/execute only , Read or Write?

Has this segment been accessed before?


What is the starting address of the segment?
What is the minimum RPL required to access this segment?

Q3
If the size of 8 byte descriptor of a segment in 80386 is
34 D0 93 24 00 00 00 03 - What is the size of the segment?

QUESTION
Processor - 80286
GDTR 100000H

GDT
Address

Data

100008

00

00

82

01

00

00

FF

FF

100010

00

00

82

20

00

00

FF

FF

100018

00

00

83

03

00

00

00

3F

100020

00

00

FC

0A

00

00

00

1F

100028

00

00

DF

B0

00

00

01

FF

100030

00

00

92

B1

00

00

0F

FF

100038

00

00

B2

7B

00

00

03

FF

100040

00

00

D2

7A

00

00

07

FF

100048

00

00

9F

A1

00

00

1F

FF

100050

00

00

C4

A3

00

00

3F

FF

100058

00

00

82

B1

00

00

FF

FF

100060

00

00

B3

50

00

00

1F

FF

LDT1
Address

Data

010000

00

00

82

01

00

00

FF

FF

010008

00

00

82

20

00

00

FF

FF

010010

00

00

83

03

00

00

00

3F

010018

00

00

FC

0A

00

00

00

1F

010020

00

00

DF

B0

00

00

01

FF

010028

00

00

92

B1

00

00

0F

FF

010030

00

00

B2

7B

00

00

03

FF

010038

00

00

D2

7A

00

00

07

FF

010040

00

00

9F

A1

00

00

1F

FF

010048

00

00

B3

A3

00

00

3F

FF

010050

00

00

B3

B1

00

00

FF

FF

010058

00

00

82

50

00

00

1F

FF

LDT2
Address

Data

200000

00

00

82

01

00

00

FF

FF

200008

00

00

82

20

00

00

FF

FF

200010

00

00

83

03

00

00

00

3F

200018

00

00

FC

0A

00

00

00

1F

200020

00

00

DF

B0

00

00

01

FF

200028

00

00

92

B1

00

00

0F

FF

200030

00

00

B2

7B

00

00

03

FF

200038

00

00

D2

7A

00

00

07

FF

200040

00

00

9F

A1

00

00

1F

FF

200048

00

00

B3

A3

00

00

3F

FF

200050

00

00

82

B1

00

00

FF

FF

200058

00

00

B3

50

00

00

1F

FF

QUESTION 4
DS = 0050H
INST MOV AX,[1200H]
Physical Address
Type of Segment, Protection Level etc.

QUESTION 5
DS = 0054H
LDTR 0008H
MOV BX,[1234H]
Physical Address

Type of Segment, Protection Level etc.

PROCESSOR -80386
CR3 FF 00 00 00
Paging Enabled

GDT
Address

Data

00100008

00

D0

82

01

00

00

FF

FF

00100010

00

D0

82

20

00

00

FF

FF

00100018

04

Do

83

03

00

00

00

3F

00100020

00

D0

FC

0A

00

00

00

1F

00100028

00

D0

DF

B0

00

00

01

FF

00100030

00

Do

92

B1

00

00

0F

FF

00100038

01

D0

B2

7B

00

00

03

FF

00100040

00

Do

D2

7A

00

00

07

FF

00100048

03

D0

9F

A1

00

00

1F

FF

00100050

00

D0

B3

A3

00

00

3F

FF

00100058

00

DF

82

B1

00

00

FF

FF

00100060

30

D0

B3

50

00

00

1F

FF

QUESTION 6
DS = 0050H
INST MOV EAX,[00 00 00 34]
Physical Address
Type of Segment, Protection Level etc.

PD
Address

Data

FF000000

01

00

00

00

FF000004

02

00

00

00

FF000008

03

00

00

00

FF00000C

04

00

00

00

FF000010

05

00

00

00

FF000014

06

00

00

00

FF000018

08

00

00

00

FF00001C

0A

00

00

00

FF000020

0B

00

00

00

FF000024

0C

00

00

00

FF000028

0E

00

00

00

FF00002C

0F

00

00

00

PT
Address

Data

00

030008C0

10

00

00

00

00

00

030008C4

11

00

00

00

00

00

00

030008C8

12

00

00

00

24

00

00

00

030008CC

13

00

00

00

03000010

25

00

00

00

030008D0

14

00

00

00

03000014

26

00

00

00

030008D4

15

00

00

00

03000018

28

00

00

00

030008D8

16

00

00

00

0300001C

2A

00

00

00

030008DC

1A

00

00

00

03000020

2B

00

00

00

030008E0

1B

00

00

00

03000024

2C

00

00

00

030008E4

1C

00

00

00

03000028

2D

00

00

00

030008E8

10

00

00

00

0300002C

30

00

00

00

030008EC

12

00

00

00

Address

Data

03000000

21

00

00

03000004

22

00

03000008

23

0300000C

You might also like