Probably intel assembler error:
Original Reporter info from Mantis: koszta58
-
Reporter name: Istvan Koszta
Original Reporter info from Mantis: koszta58
- Reporter name: Istvan Koszta
Description:
var
colora[0..15] of tColorRef;
c_black :tColorRef absolute colora[0];
c_blue :tColorRef absolute colora[1];
...
o1,o2 :pointer
asm
lea eax,c_blak; lea edx,c_blue; sub edx,eax // edx = 0 (bug)
end;
pascal:
o1:= @c_black;
o2:= @c_blue;
asm
mov eax,o2; sub eax , o1 // eax = 4 (so ok)
end;
Mantis conversion info:
- Mantis ID: 29019
- OS: WINDOWS
- OS Build: xp SP3
- Platform: PENTIUM
- Version: 3.1.1
- Monitored by: » koszta58 (Istvan Koszta)