This release does indeed work great in general from my testings. One problem I can find is that it does not always load tokenised or protected .BAS files well, especially when the program is large. I have uploaded the MARKMAN program saved in tokenised and protected formats, both of which are not loaded correctly with PC-BASIC.
Rob: I have found that recent versions such as PC-BASIC 15.08.4 did not load them correctly either. However, I can confirm that some earlier versions such as PC-BASIC 14.10.1 did load both of them correctly.
Wengier
Last edit: Wengier 2016-03-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm checking this currently - I'm seeing the problem (on a Windows XP VM; I've only tried MARKMANT.BAS so far) but it only happens if I load the file from the command line with -l or convert with with --convert. If I load from PC-BASIC with the LOAD command the problem does not happen and the file loads and runs correctly. Is that also your experience?
Thanks
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've also found the problem - from the command line, the file is opened in text mode rather than binary, which on Windows means chr$(13) (CR) gets converted into chr$(13)+chr$(10) (CRLF), which proceeds to mess up the line number tokens. Also explains why I'm not seeing this on Linux - Unix text mode doesn't look for CRLF. It's a simple fix, will include in .6 release. Meanwhile, if you want to run this from the Windows command line, you could try something like pcbasic.com -e='RUN "MARKMANT"' instead of pcbasic.com MARKMANT.BAS.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, I would suggest some clearnup of the main PC-BASIC installation directory. There are currently a lot of files with extensions .pyd or .dll in this directory, which makes it more difficult to work with BAS programs that are mixed with such files in this startup directory, especially when working from command-line. I would recommend to move all or most of these files to some subdirectories instead. Thanks!
Wengier
Last edit: Wengier 2016-03-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm afraid the layout of the installation directory is not something I can do much about - this is how it is set up by PyInstaller, the packaging program I use. I would recommend not using the installation directory as the working directory but setting it in your PATH environment variable or simply calling PC-BASIC with the full installation path from the command line, while using a directory under your home directory as a working directory. If you start PC-BASIC from such a directory it will use it as its startup/working directory under the Z: device.
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a bug fix release, with the following improvements:
FN
VARPTR$
inDRAW
andPLAY
WIDTH 255
--cas1
optionRUN "file",R
PRINT 0^(-1!)
PRINT USING
data/BASCODER.BAS
, a translation program for BasicodeThanks to Ronald, Wengier and Jan for bug reports.
Excellent Release, nice job! :-)
Ron.
Thanks Ron!
As usual, let me know if you do run into any bugs.
Rob
This release does indeed work great in general from my testings. One problem I can find is that it does not always load tokenised or protected .BAS files well, especially when the program is large. I have uploaded the MARKMAN program saved in tokenised and protected formats, both of which are not loaded correctly with PC-BASIC.
Wengier
Last edit: Wengier 2016-03-18
Thanks Wengier, I'll have a look and see what's up. Always a joy to try out old programs anyway :)
Just to confirm, did these load correctly on a previous version of PC-BASIC?
Rob
Last edit: Rob Hagemans 2016-03-18
Rob: I have found that recent versions such as PC-BASIC 15.08.4 did not load them correctly either. However, I can confirm that some earlier versions such as PC-BASIC 14.10.1 did load both of them correctly.
Wengier
Last edit: Wengier 2016-03-18
Hi Wengier, thanks for the info!
I'm checking this currently - I'm seeing the problem (on a Windows XP VM; I've only tried
MARKMANT.BAS
so far) but it only happens if I load the file from the command line with-l
or convert with with--convert
. If I load from PC-BASIC with theLOAD
command the problem does not happen and the file loads and runs correctly. Is that also your experience?Thanks
Rob
I've also found the problem - from the command line, the file is opened in text mode rather than binary, which on Windows means chr$(13) (CR) gets converted into chr$(13)+chr$(10) (CRLF), which proceeds to mess up the line number tokens. Also explains why I'm not seeing this on Linux - Unix text mode doesn't look for CRLF. It's a simple fix, will include in .6 release. Meanwhile, if you want to run this from the Windows command line, you could try something like
pcbasic.com -e='RUN "MARKMANT"'
instead ofpcbasic.com MARKMANT.BAS
.Right, using the syntax "pcbasic.com -e='RUN "MARKMANT"'" will load the program fine. Thanks for the fix too.
Wengier
Last edit: Wengier 2016-03-18
Also, I would suggest some clearnup of the main PC-BASIC installation directory. There are currently a lot of files with extensions .pyd or .dll in this directory, which makes it more difficult to work with BAS programs that are mixed with such files in this startup directory, especially when working from command-line. I would recommend to move all or most of these files to some subdirectories instead. Thanks!
Wengier
Last edit: Wengier 2016-03-18
I'm afraid the layout of the installation directory is not something I can do much about - this is how it is set up by PyInstaller, the packaging program I use. I would recommend not using the installation directory as the working directory but setting it in your PATH environment variable or simply calling PC-BASIC with the full installation path from the command line, while using a directory under your home directory as a working directory. If you start PC-BASIC from such a directory it will use it as its startup/working directory under the
Z:
device.Rob
Sure, I can do this instead. Thanks for the hint!
Wengier