Forum > Other OS

Asm errors when compiling BGRABitmap for OpenBSD i386

<< < (2/2)

AlexTP:
No,  the reason is code in bgracolorint.pas: it has the 'imul'.

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---operator*(const color1, color2: TColorInt65536): TColorInt65536;{$ifdef BGRACOLORINT_USEASM} {$asmmode intel} assembler;  asm    push edx    push ebx    push esi    mov ebx, Color1    mov esi, Color2    //ecx = @result     mov eax, [ebx] //r    imul [esi] 

marcov:
Yeah, but in intel mode.  ATT and Intel mode are parsed and then reassembled for assembler output again (which is why you can use pascal identifiers!)

So it is still a bug in the ATT output IMHO

AlexTP:
Posted issue to https://gitlab.com/freepascal.org/fpc/source/-/issues/40399

Navigation

[0] Message Index

[*] Previous page

Go to full version