www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/27/12:56:44

To: djgpp AT delorie DOT com
Date: Mon, 27 Jan 1997 13:37:13 c:\
Subject: Re: AT&T assembly code won't compile
Message-ID: <19970127.123916.2263.4.aclemmer@juno.com>
References: <19970125 DOT 171134 DOT 4439 DOT 2 DOT aclemmer AT juno DOT com>
<Pine DOT A41 DOT 3 DOT 94 DOT 970126213214 DOT 29096C-100000 AT acs2 DOT acs DOT ucalgary DOT ca>
From: aclemmer AT juno DOT com (Aaron M Clemmer)

On Sun, 26 Jan 1997 21:40:03 -0700 (MST) Matthew Mastracci
<mmastrac AT acs DOT ucalgary DOT ca> writes:
>This is probably your problem.  You can't move a dword into a word.  
>Try just movw %%bx, %%ds; and movw %%ax, %%es.  
	Ok... but 0xa0000 is a dword.

>Of course, you're going to need to modify your code so you aren't 
>trying  to access a real-mode segment directly.  Look up
>__dpmi_segment_to_descriptor() and pass that as a parameter.  If 
	I would probably load up the selector in ES, and the offset in
DI?  So I could just as easily use _dos_ds...

aaron

- Raw text -


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