Forum > Other OS

Asm errors when compiling BGRABitmap for OpenBSD i386

<< < (2/2)

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] 

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

Posted issue to


[0] Message Index

[*] Previous page

Go to full version