<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 29.01.2022 um 09:24 schrieb Thorsten
Otto via fpc-devel:<br>
</div>
<blockquote type="cite" cite="mid:3286418.ghtyvqYYrb@earendil">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="qrichtext" content="1">
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Freitag, 28. Januar 2022 20:21:03 CET Karoly Balogh wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> a fixed GAS/LD support would be nice, of</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> course.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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)</p>
</blockquote>
<br>
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.<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>