Page 2 of 2

Re: SuperBASIC function to read a line?

Posted: Fri Jan 20, 2017 5:54 pm
by ql_freak
GETLINE$() function has been updated to V 0.91.

The original article has been changed and the link to the _bin file has been updated.
- Bugfix: If there were files with more than 32766 chars without LF inside, then the last char of a part string (fetched with 32766 bytes) was truncated as for lines ending with LF.

Re: SuperBASIC function to read a line?

Posted: Tue Jan 24, 2017 1:12 am
by ql_freak
Is there no one here, who wants to test my GETLINE$([#chan])-function? I have now a new version (1.0) which allows the buffer size to be specified, and if the function should return the trailing newline (LF); except if EOF() occurs after reading, then a trailing LF will always be returned.

It will be released shortly - because (for me) it is now finished, I will release it on my homepage - and that may take time :-;

p.s.: Puhh! Hard stuff - C#/Java and even C++ is much easier and MUCH, MUCH more comfortable. We should develop a method for writing SB-exts in EJC (produces reentrant, ROMable code).

Re: SuperBASIC function to read a line?

Posted: Wed Jan 25, 2017 3:10 pm
by pjw
ql_freak wrote:Is there no one here, who wants to test my GETLINE$([#chan])-function?
I looked at your code some time ago. A few people have offered suggestions. I assumed that if youd wanted any input you would have responded to those first.

Re: SuperBASIC function to read a line?

Posted: Wed Jan 25, 2017 5:56 pm
by ql_freak
I have answered to some questions, and of course I have used some of the information in the code for the GETLINE$()-function. The version here is tested and seems to work. What I don't know (as I haven't it currently installed) is,if it works with Turbo and QLiberator and on a real QL (it has been developed and tested under QPC2). Albeit it should work with both (for Turbo the stack must most propably enhanced to about 40 KBytes or more), as I'm only using the maths stack (does Turbo support BV.CHRIX to expand the SuperBASIC stack?) and parameters which don't return a value. The version here supports only an optional channel number and reserves 32774 ($8004) bytes on the S*BASIC stack. I'm currently working at my homepage (make a new QL section), where I will release the final, improved version 1.0.

Re: SuperBASIC function to read a line?

Posted: Wed Feb 01, 2017 3:39 pm
by ql_freak
My Sinclair QL page is now online (sorry only in German). The new version 1.0 of the GETLINE$() function can be downloaded on my QL download page. The sources and description in the ZIP file are all in English.

EDIT:

NEW: QL download page with GETLINE$() description now also available in English.

Re: SuperBASIC function to read a line?

Posted: Mon Apr 17, 2017 6:35 pm
by ql_freak
WARNING WARNING WARNING

I have now, thanks to uQLx, tested my GETLINE$ function on Minerva.

Unfortunately it crashes horrible, not even Sysmon is moaning :-(

I don't know if I will find the time to correct it, in near future. uQLx is unfortunately not running very well. At least not on Windows with WSL and XMing.