[fpc-devel] Questions regarding m68k-atari target

Sven Barth pascaldragon at googlemail.com
Sat Jan 29 10:03:29 CET 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20220129/a9e21e3c/attachment-0001.htm>


More information about the fpc-devel mailing list