Rainer Stratmann wrote on Thu, 09 Aug 2012:

How is it possible to put some inline bytes in the code like the former
inline( $1f , $ef , $1A );
instruction?

{$asmmode att}
asm
  .byte $0x1f, $0xef, $0x1a
end;

{$asmmode intel}
asm
  db $1a, $ef, $1a
end;

If this is supposed to be the only code/data inside an assembler routine, make sure to also add "assembler; nostackframe;" to that routine's modifiers to prevent the compiler from setting up a stack frame and/or insert stack alignment code.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to