home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.lang.asm
- Path: 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
-
- 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)
-
-
-