Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i have simmler queastion might help (a). At offset 00014, data at GDT is 92 00 and data at LDT is 92 04. So, as

image text in transcribed

i have simmler queastion might help

image text in transcribed

(a). At offset 00014, data at GDT is 92 00 and data at LDT is 92 04. So, as we know that a protected-mode segment register holds a 16-bit segment selector and Each descriptor defines one segment and determines where the segment resides, the segment type, and other important parameters such as the access rights. Now, let us find the name of each descriptor.

(3-15) index bits 2nd bit- Table Indicator (0-1) bits- Request Priviledge Level

If TI bit is 0, then Descriptor id Global and if TI bit is 1, then Descriptor id Local.

Now, for GDT at offset 00014,

92 00 is represented in its 16-bit form as:

1001001000000 0 00

Here, TI bit is 1 so descriptor at offset 00014 is Global. Similarly, we will calculate it for all offsets.

Offset IN Table GDL (2 Bytes) LDT (2 Bytes)
00036 10 00
00034 92 00
00032 00 04
00030 00 01
0002E 10 00
0002C 92 00
0002A 00 12
00028 00 05
00026 10 00
00024 92 FF
00022 FF FE
00020 03 00
0001E 10 00
0001C 92 00
0001A 00 18
00018 00 03
00016 10 00
00014 92 00

(b). MOV DX, [BX] with DS=0028 and BX=0001

This Statement is basically used for indirect addressing.

image text in transcribed

(c). MOV CH, [DI] with DS=0030 and DI=0001

This Statement is basically used for indirect addressing.

image text in transcribed

(d). Based operands use base register, BX or BP whereas Index Operands use Index Registers, DI or SI. Based and indexed operands may both be used with displacements. Displacements may be either offsets(of memory variables) or constants. This move will provide error as "Index Value cannot be moved to Register"

15. Consider the following protected mode descriptor table contents and memory tents (all hex values). Note that the portion of the descriptor t w starts at oftset 00124, and data for both the local and global descriptor given. For memory table data, assume the right-most byte is the even byte, and the left- most byte is the odd byte, e.g, the byte at [100000201-98H, while (10000021]-2FH table data in the table Offset in Global Dese Local Dese Table Table Data Table Data Table Table I Data (2 bytes) 10000024 1000002 10000020 1000001E 1000001C 1000001A 10000018 FA BC ZF98 64 16 AD 61 000C 000C6 10 00 000C4 92 00 000C2 00 06 000C0 0007 000BE 10 00 000BC 92 00 000BA 00 12 000B8 00 05 000B6 1000 000B4 92 00 000B2 000B0 0003 000AE 10 00 000AC 92 00 000AA 00 OE 000A8 0003 000A6 10 00 000A4 92 00 8 00 01 00 01 10 00 92 00 0001 10 00 92 00 00 20 00 05 FF 00 92 FF FF FE 0001 10 00 92 00 45 20 DB CF 99 08 50 9F 10000016 10000014 10000012 10000010 1000000F 1000000C 1000000A 10000008 100000067 DE 10000004 10000002 10000000 98 D7 7D OA 25 A0 76 94 9A 60 10 34 9C 33 67 9A 0003 10 00 92 04 Show all work for the following problems... no credit will be given without the work being clearly shown. a. In the deseriptor table above, clearly outline and name each descriptor. b. Outline the segments in the memory table above. Clearly denote where each segment starts and ends, and what segment is being described (e.g. LDT #22, GD123.) c. Given a MOV DX, [BX] instruction with DS 00B0 hex and BX-0005. What are the contents of DX after the instruction executes? d. Given a MOV CH, [BX] instruction with DS 00AC hex and BX-0003. What are the 00C4 contents of CH? e. Explain why an error occurs when the instruction MOV AX, [SIJ with DS and SI-0005 hex. What is that error called

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions