delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/21/21:19:01

From: korpela AT islay DOT ssl DOT berkeley DOT edu (Eric J. Korpela)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: allegro and djgpp v2.01
Date: 21 Oct 1996 18:00:33 GMT
Organization: Cal Berkeley-- Space Sciences Lab
Lines: 23
Message-ID: <54gdo1$qqo@agate.berkeley.edu>
References: <Pine DOT NEB DOT 3 DOT 95 DOT 961020134750 DOT 24934F-100000 AT ananke DOT amu DOT edu DOT pl>
NNTP-Posting-Host: islay.ssl.berkeley.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Pine DOT NEB DOT 3 DOT 95 DOT 961020134750 DOT 24934F-100000 AT ananke DOT amu DOT edu DOT pl>,
Mark Habersack  <grendel AT ananke DOT amu DOT edu DOT pl> wrote:
>  1) Find all such errors and correct the last letter of the mnemonic to match
>     size of operands, following this pattern:
>         b  - for byte (8 bit) operands
>         w  - for word (16 bit) operands
>         l  - for long (32 bit) operands

You've got this backwards.  In previous versions of gas, the register
operand sizes were ignored.  So "movw $0, %eax" would have (correctly IMHO)
compiled to the same as "movw $0, %ax"  So what he really needs to do
is to correct the operands to match the size of the mnemonic.

Eric




-- 
Eric Korpela                        |  An object at rest can never be
korpela AT ssl DOT berkeley DOT edu            |  stopped.
<a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">
Click here for more info.</a>

- Raw text -


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