[fpc-pascal] Inline bytes

Thomas Schatzl tom_at_work at gmx.at
Thu Aug 9 15:18:10 CEST 2012


Hi,

On 08/ 9/12 03:09 PM, Rainer Stratmann wrote:
> How is it possible to put some inline bytes in the code like the former
> inline( $1f , $ef , $1A );
> instruction?

Not sure if it is the official way, but the following works:

with {$asmmode att}

asm
   .byte 0x1f, 0xef, 0x1a
end;

and with {$asmmode intel}

asm
   db $1f, $ef, $1a
end;

Hth,
Thomas



More information about the fpc-pascal mailing list