Article View: alt.lang.asm
Article #118GDT
From: Marigowda Divya
Date: Tue, 24 Nov 1992 00:17
Date: Tue, 24 Nov 1992 00:17
22 lines
959 bytes
959 bytes
I am trying to define an Executable Segment Descriptor (with
READABLE code); but system reboots when I try to load GS with
this selector. Are any of the bits wrong (especially the TYPE bits)?
Here are a few relevant clips from my program:
gdt dw 0,0,0,0
dw 0ffffh,0,9a00h,8fh
gdtptr dw 0fh,0,0
......
mov bx,8 ;selector
mov gs,8 ;loading segment with intention of "Reading" code
PC boots at this point. I have tried this code with 9200H (Data segment
Descriptor/Writable) and it works. Thanks in advance for any help.
Cheers,
divya
(mdivya@world.std.com)
Technical Details
Message-ID:
<By725z.C19@world.std.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!world!mdivyaShow Full Headers
Complete Article Headers
Newsgroups: alt.lang.asm Path: arc1-ca.pugleaf.net!sparky!uunet!world!mdivya From: mdivya@world.std.com (Marigowda Divya) Subject: GDT Message-ID: <By725z.C19@world.std.com> Summary: GDT Keywords: GDT 386 Assembler Organization: The World Public Access UNIX, Brookline, MA Date: Tue, 24 Nov 1992 00:17:59 GMT Lines: 22