Re: Does BASM automagicaly pick up float type?




"chrisj" <a@xxx> escreveu na mensagem
news:446fc175@xxxxxxxxxxxxxxxxxxxxxxxxx
Given...

type Myrec = record
mydouble: double;
mysingle: single;
end;

will the compiler pick up the corect load target size when i do this..

fld [eax.TMyrec.mydouble]
fld [eax.TMyrec.mysingle]

cheers..

chris

Chris....

In my experience, no! you must supply the pointer size:

fld qword ptr [eax.TMyrec.mydouble]
fld dword ptr [eax.TMyrec.mysingle]

[]s
Fred


.



Relevant Pages

  • Re: Does BASM automagicaly pick up float type?
    ... mysingle: single; ... will the compiler pick up the corect load target size when i do this.. ... fld ... In some circunstances the compiler get confused.... ...
    (borland.public.delphi.language.basm)
  • Does BASM automagicaly pick up float type?
    ... mysingle: single; ... will the compiler pick up the corect load target size when i do this.. ... fld ...
    (borland.public.delphi.language.basm)
  • Re: LOW-VALUES to a numeric field
    ... 'move low-values to fld' will not compile. ... NUMERIC (COMP-3) FIELD. ... IT IS *SO* USUALLY NOT A VERY GOOD IDEA THAT THE COMPILER WON'T ALLOW YOU ... If someone's design is so bad that it requires kludging code to get around ...
    (comp.lang.cobol)
  • Re: LOW-VALUES to a numeric field
    ... that is NOT available in any IBM compiler. ... the "soonest possible' FUTURE version of their compiler. ... 'move low-values to fld' will not compile. ...
    (comp.lang.cobol)
  • Re: QC FADD -> FADDP
    ... > fld X ... The compiler is just cleaning up after you. ...
    (borland.public.delphi.language.basm)