when I do so with the Assembly Code, then I stuck in trouble with linking into a executable.
The Problem is not createing the Assembly Code, and compile to .o bject File(s).
The Problem is, that I don't know, how FPC link the .o bjects to an Executable.
FPC provide some Linker Scripts and Batch Files by given Command Line Options.
But when I execute the Batch Files, that contains Code/Commands to link the produces binaries to an Executable, some Magic opens and bring my mind flattered.
Maybe I should compile the .asm Files in a pre-task, before I include the .o in the Sources and then call FPC to link the Files to an Executable.
This could work.
But I don't let it a try, yet.
But I can looking forward, that could be not easy.