Assembler (Intel) inconsistencies in 2.0.x, Was: Re: [fpc-devel] Bug: compilation loop in 2.0.2 when using -So

Marco van de Voort marcov at stack.nl
Fri Aug 18 14:32:40 CEST 2006


> I presume that what we do is Delphi compatible. To, it seems more  
> like the TP/Delphi (and probably masm/tasm) behaviour of treating  
> "[p]" and "p" as the same thing was wrong. [] means a memory  
> reference and [p] should actually mean something like [[ebp+8]] or so  
> if p is stored at address ebp+8 (which is an addressing mode that is  
> not supported by the 80x86, but it is supported by e.g. the m68k).

Sb (Carlo probably, since it was passcript) just remarked on IRC that the
register convention is not compatible.

The registers are pushed left to right (which I verified), while Delphi does
right to left. (not verified)




More information about the fpc-devel mailing list