So, What's the question? Is there a way of remote debug remotely a frepascal program using ethernet or serial port to an "empty" system?
i don't know if i really need that C written stub(can I write my own in Assembly or Pascal?).
Also i don't know if freepascal uses the C underscore for calls.
but i don't know what calling convention FPC generated code uses.
Also i need to link C and pascal code in the same "executable", what i need to know when I do things like that?
Also, i have some problems when writing the interrupt routine. Now i have something like this...