Mail Archives: djgpp/1996/11/20/02:24:43
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 -