www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/20/02:24:43

Date: Wed, 20 Nov 1996 09:13:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: luca <lucagio AT mbox DOT vol DOT it>
Cc: djgpp AT delorie DOT com
Subject: Re: make allegro v2.1
In-Reply-To: <56su3f$dfc@everest.vol.it>
Message-Id: <Pine.SUN.3.91.961120090714.20364A-100000@is>
Mime-Version: 1.0

On Wed, 20 Nov 1996, luca wrote:

> gcc -I. -Isrc -Wall -o obj/bank.o -c src/bank.S
> c:/lang/djgpp/tmp\ccbaaaaa: Assembler messages:
> c:/lang/djgpp/tmp\ccbaaaaa:252: Error: register does not match opcode
> suffix
> c:/lang/djgpp/tmp\ccbaaaaa:269: Error: register does not match opcode
> suffix
> make.exe: *** [obj/bank.o] Error 1

There are two lines in bank.S which say "incl %ah".  You should change 
them to say "incb %ah" instead.  Allegro was developed with DJGPP v2.0, 
but the assembler which comes with DJGPP v2.01 is less permissive with 
regard to operator-operand size mismatches (AH is a byte-wide register, 
but incl is an instruction to increment a 32-bit wide entity).

- Raw text -


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