[fpc-pascal] Inline bytes
Henry Vermaak
henry.vermaak at gmail.com
Thu Aug 9 15:26:36 CEST 2012
On 09/08/12 14:25, Rainer Stratmann wrote:
> 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(!).
Maybe a macro?
Henry
More information about the fpc-pascal
mailing list