[fpc-devel] Inline assembler.

Konstantin newsbox1026 at web.de
Fri Jul 20 10:11:04 CEST 2012


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:

ASM
 mov ax,dx
 db $98,$90,$f8,$fc,
 add eax,ecx
END;

With some more dirty hacks you can add addresses and other stuff to the
machine code but this is probably not the way you want to go ;-).

Konstantin



More information about the fpc-devel mailing list