Delphi / ASM Code inkompatibel mit 64bit?
Ich habe einen Beispielquellcode für OpenGL, ich wollte eine 64-Bit-Version kompilieren (mit Delphi XE2), aber es gibt einen ASM-Code, der nicht kompiliert werden kann, und ich weiß nichts über ASM. Hier ist der Code unten, und ich habe die beiden Fehlermeldungen in die Zeilen eingefügt, die fehlschlagen ...
// Copy a pixel from source to dest and Swap the RGB color values
procedure CopySwapPixel(const Source, Destination: Pointer);
asm
push ebx //[DCC Error]: E2116 Invalid combination of opcode and operands
mov bl,[eax+0]
mov bh,[eax+1]
mov [edx+2],bl
mov [edx+1],bh
mov bl,[eax+2]
mov bh,[eax+3]
mov [edx+0],bl
mov [edx+3],bh
pop ebx //[DCC Error]: E2116 Invalid combination of opcode and operands
end;