>> uses crt; >> var NoOfColumns : word; >> StatusLine,s : string; >> begin >> NoOfColumns:=24; >> StatusLine:='ESC'; >> s:='Press any key...'; >> gotoXY((NoOfColumns div 2)-(Length(StatusLine+': '+s) >> div 2), 2); >> end. >> >> With version 1.9.3. (now i tried version from 5.4.2004 >> also) >> i always got a compiler error (in IDE) >> >> "Asm [mov reg8,???] invalid combination of opcode and >> operands" > > This looks like a compiler bug, I'd suggest to enter this into > the bugs repository on our WWW pages. Please, check what level of > optimizations have you set (-O???? parameters) and whether it > happens with all optimizations turned off as well (-O-), and add > this information to your bug report.
This is a register allocator bug: .L38: sarl $1,%eax subl %eax,%edi movb %ireg5l,%al movb -516(%ebp),%dl call CRT_GOTOXY$BYTE$BYTE %ireg5l = %DIL which doesn't exists on x86 _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal