Re: Operand size mismatch



> Thank you Dennis.
>
> Here is another one that does not compile in D7.
>
> function txsearch.PentiumTick: Int64; assembler
> asm
> @@Start: dw rdtsc
> end;
>
> would this be the same as (from Google)
>
> function txsearch.PentiumTick: Int64; assembler
> asm
> @@Start: dw 310Fh // rdtsc
> end;

That would work, but since Delphi 7 knows this instruction you could
also just write this:

function txsearch.PentiumTick: Int64; assembler
asm
@@Start: rdtsc
end;

They propably defined rdtsc as a constant somewhere because some
earlier Delphi versions didn't support RDTSC.

--
The Fastcode Project: http://www.fastcodeproject.org/
.



Relevant Pages

  • Re: InterlockedIncremenent for Int64
    ... Int64; assembler; ...
    (borland.public.delphi.language.basm)
  • Re: HLA v2.x and / or LASM suggestion: Win32 Resources
    ... Assembler" probably always get when people are actually talking about ... machine_ from ASM or even some of the more "low-level" C programming - ... "Abstraction" - as I keep saying and, one day, I Hope people will ... writing code thinking it's "portable" when, in fact, it contains ...
    (alt.lang.asm)
  • Re: What micros do you actually hate to work with?
    ... with less than tiny asm ... hassle to work with 32 bit longs in assembler for an 8 bit uP, ... Microchip's C compiler tools and their assembly under MPLAB. ... In this case, also, I was the only programmer. ...
    (comp.arch.embedded)
  • Re: Helpful Practical Uses of Conditional Assembly
    ... > The best ASM for teaching is likely to be very uncluttered ... The best assembler for applications writing is free of pointless ... actually play a single note of it on a real instrument... ...
    (alt.lang.asm)
  • Re: Why use assembly?
    ... I use asm because, when given a propper tool, like RosAsm, its simply the easiest, clearest language. ... that learning asm with some of the older assembler may actually be a pain in the ass. ... The remaining bits that are not easy, comes from situations like when you have to write your own code for things that just take a single line of code in a HLL. ... Becomming an asm programmer is to take the step from beeing a servant in the dark to beeing the master of your own destiny in the programming world. ...
    (alt.lang.asm)