Am 29.01.2022 um 09:24 schrieb Thorsten Otto via fpc-devel:

On Freitag, 28. Januar 2022 20:21:03 CET Karoly Balogh wrote:

> a fixed GAS/LD support would be nice, of

> course.

Yes, but currently i'm a bit lost here. Since that combination currently does not support "smart linking", i guess i'll stick to vasm for now. There are other parts that should be improved, and seem more important to me (like ARGV support, completing the GEMDOS/BIOS/XBIOS interface etc)

Currently i'm trying to figure out whats wrong with readln() (used eg. when getting the help screen). On both TOS anfd MiNT, i have to press "return" three times. But can't find where readln(textfile) (without any extra arguments) is implemented. All i can find is some declaration in inc/system.fpd, and the procedure fpc_readln_end in inc/text.inc. Is that actually the function which is called? And how does that magic work? I expect there some problem with expecting CR/LF also when reading from console (although the win32 platform does not seem to suffer from this)


Read(Ln) and Write(Ln) are compiler intrinsics as such you won't find them as-is in the sources. To find out what code is generated for it it's best to check the generated assembly code. In case of ReadLn it's indeed fpc_readln_end that does the main job.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to