[fpc-pascal] Inline bytes

Rainer Stratmann RainerStratmann at t-online.de
Thu Aug 9 15:25:38 CEST 2012


Am Thursday 09 August 2012 15:14:29 schrieb Jonas Maebe:
> 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;

Thanks, the next problem then is: I wanted to do that in an inline procedure 
but if the compiler detects an asm statement then inline is disabled(!).



More information about the fpc-pascal mailing list