home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lang / asm / 473 < prev    next >
Encoding:
Text File  |  1992-11-24  |  926 b   |  34 lines

  1. Newsgroups: alt.lang.asm
  2. Path: sparky!uunet!world!mdivya
  3. From: mdivya@world.std.com (Marigowda Divya)
  4. Subject: GDT
  5. Message-ID: <By725z.C19@world.std.com>
  6. Summary: GDT
  7. Keywords: GDT 386 Assembler
  8. Organization: The World Public Access UNIX, Brookline, MA
  9. Date: Tue, 24 Nov 1992 00:17:59 GMT
  10. Lines: 22
  11.  
  12. I am trying to define an Executable Segment Descriptor (with 
  13. READABLE code); but system reboots when I try to load GS with
  14. this selector.  Are any of the bits wrong (especially the TYPE bits)?
  15.  
  16. Here are a few relevant clips from my program:
  17.  
  18.    gdt   dw  0,0,0,0
  19.          dw  0ffffh,0,9a00h,8fh
  20.    gdtptr dw 0fh,0,0
  21.  
  22.        ......
  23.           mov bx,8   ;selector
  24.           mov gs,8   ;loading segment with intention of "Reading" code
  25.  
  26. PC boots at this point.  I have tried this code with 9200H (Data segment
  27. Descriptor/Writable) and it works.  Thanks in advance for any help.
  28.  
  29. Cheers,
  30. divya
  31. (mdivya@world.std.com)
  32.  
  33.           
  34.