[fpc-devel] Inline assembler.
jonas.maebe at elis.ugent.be
Fri Jul 20 10:23:25 CEST 2012
On 20 Jul 2012, at 10:11, Konstantin wrote:
> Jonas Maebe schrieb:
>> On 19 Jul 2012, at 23:54, peter green wrote:
>>> Is it possible to tell the inline assembler to output something to the resulting assembler file even though it doesn't recognise the opcode?
>> No. We used to have a "direct" assembler reader that allowed this, but that's incompatible with the concept of having an internal assembler and also in general just a hack.
> An even dirtier hack would be entering machine code like this:
> mov ax,dx
> db $98,$90,$f8,$fc,
> add eax,ecx
That's actually cleaner, because this can be parsed by the assembler reader and be assembled correctly by the internal assembler.
More information about the fpc-devel