www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/24/14:18:17

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1121
Path: news-dnh.mv.net!mv!news.sprintlink.net!sunic!sunic.sunet.se!news.uni-c.dk!diku.dk!terra
From: terra AT diku DOT dk (Morten Welinder)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Q] Making DJGPP use SEL:OFF
Date: 24 Jul 1995 15:13:44 GMT
Organization: Department of Computer Science, U of Copenhagen
Lines: 41
Sender: terra AT tyr DOT diku DOT dk
References: <805952331 DOT 111snx AT techm DOT pl DOT my> <3uvuni$8sg AT axl02it DOT ntc DOT nokia DOT com>
Nntp-Posting-Host: odin.diku.dk
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

pirkola AT nmpou DOT nmp DOT nokia DOT com (Rauno Pirkola) writes:


>Prefixes index (not tested, but should be correct)

>CS: 0x6e
>DS: 0x7e
>ES: 0x26
>FS: 0x64
>GS: 0x65
>SS: 0x36



At least some of these are incorrect.  Look up the right ones.
If I read the gas sources correctly you can just write "cs" as
an instruction.

Morten



/*
  opcode prefixes; we allow them as seperate insns too
  (see prefix table below)
*/
{"aword", 0, 0x67, _, NoModrm, { 0, 0, 0} },
{"addr16", 0, 0x67, _, NoModrm, { 0, 0, 0} },
{"word", 0, 0x66, _, NoModrm, { 0, 0, 0} },
{"data16", 0, 0x66, _, NoModrm, { 0, 0, 0} },
{"lock", 0, 0xf0, _, NoModrm, { 0, 0, 0} },
{"cs", 0, 0x2e, _, NoModrm, { 0, 0, 0} },
{"ds", 0, 0x3e, _, NoModrm, { 0, 0, 0} },
{"es", 0, 0x26, _, NoModrm, { 0, 0, 0} },
{"fs", 0, 0x64, _, NoModrm, { 0, 0, 0} },
{"gs", 0, 0x65, _, NoModrm, { 0, 0, 0} },
{"ss", 0, 0x36, _, NoModrm, { 0, 0, 0} },
{"rep", 0, 0xf3, _, NoModrm, { 0, 0, 0} },
{"repe", 0, 0xf3, _, NoModrm, { 0, 0, 0} },
{"repz", 0, 0xf3, _, NoModrm, { 0, 0, 0} },
{"repne", 0, 0xf2, _, NoModrm, { 0, 0, 0} },

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019