delorie.com/archives/browse.cgi | search |
From: | "Andrew Crabtree" <andrewc AT rosemail DOT rose DOT hp DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: DJGPP inline assembly instructions LDS and LES |
Date: | Mon, 2 Mar 1998 16:28:39 -0800 |
Organization: | Hewlett Packard |
Lines: | 17 |
Message-ID: | <6dfirj$682$1@rosenews.rose.hp.com> |
References: | <19980302194433 DOT 3988 DOT qmail AT hotmail DOT com> |
NNTP-Posting-Host: | ros51675cra.rose.hp.com |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
floyd hames wrote in message <19980302194433 DOT 3988 DOT qmail AT hotmail DOT com>... >I have been trying to use the instructions LDS and LES in an inline >assembly Someone more knowledgable here may correct me, but I'm not sure if gas supports these instructions (or any that are targetted for segment registers really). You could look at sys/farptr.h to see an example of how the DJ code loads a segment register and then uses a segment register override prefix. Basically, a mov to a segment register works but you must use a db to specify the prefix. >a list of most of the instruction set for assembly Its pretty much the same. Just remember the size suffix. Andy
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |