the Problem is not understanding asm + nasm + ld.
the Problem is, what FPC does internally with the magic things like compilerproc or mangked names.
I wrote:
- when using PASCALMAIN, all is okay
- when using PASCALMAINE, the Problems pop out
so, my conclution is, that magic things goes on there.