Activity for PC-BASIC - a GW-BASIC emulator

  • PC-BASIC - a GW-BASIC emulator PC-BASIC - a GW-BASIC emulator updated /README.md

  • PC-BASIC - a GW-BASIC emulator PC-BASIC - a GW-BASIC emulator released /where-to-download-pc-basic.txt

  • Rob Hagemans Rob Hagemans posted a comment on discussion [CLOSED] BASIC Programs

    This forum is now closed. The new discussion forum is at https://github.com/robhagemans/pcbasic/discussions.

  • Rob Hagemans Rob Hagemans posted a comment on discussion [CLOSED] Bug reports

    This forum is now closed and existing bug reports have been migrated to https://github.com/robhagemans/pcbasic/issues. Please report new issues there. This forum will no longer be monitored and any new issues opened here will not be picked up.

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Hi all, now that Github has added a discussion feature I will be consolidating all support, bug reports and discussion there. The new discussion forum is at https://github.com/robhagemans/pcbasic/discussions. Soon, these forums will be closed. Let's continue the conversation at GitHub!

  • PC-BASIC - a GW-BASIC emulator PC-BASIC - a GW-BASIC emulator updated /README.md

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Yes, it's on the list, along with changing the default install on pc-basic.org. And migrating discussions to github, now that it has that feature.

  • Justin R. Miller Justin R. Miller posted a comment on discussion General Discussion

    Oh, while I'm thinking of it: maybe consider changing the docs redirect to the 2.x branch on pc-basic.org by default?

  • Justin R. Miller Justin R. Miller posted a comment on discussion General Discussion

    Thanks for your awesome work here, Rob! I was curious about the 1.2 — I've exclusively used 2.x and wondered about the dual status.

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Hi all, I've uploaded PC-BASIC 1.2.15. This release brings the following improvements: fix issue #93: diagonal steps in DRAW with scaling % 4 != 0 fix issue #96: INT should round towards negative infinity - this was broken for INT(x) in range -1 < x < 0 fix crash on WIDTH "COM1:", 255 if no serial port connected (issue #98) backport fix for issue #120 and tests fix issue #101 - python2 hangs on exponentiation with large numbers backport fix for issue #102 - crash on changing graphics page after changing...

  • PC-BASIC - a GW-BASIC emulator PC-BASIC - a GW-BASIC emulator released /pcbasic-1.2/pcbasic-v1.2.15-osx.dmg

  • PC-BASIC - a GW-BASIC emulator PC-BASIC - a GW-BASIC emulator released /pcbasic-1.2/pcbasic-v1.2.15-win32.exe

  • PC-BASIC - a GW-BASIC emulator PC-BASIC - a GW-BASIC emulator released /pcbasic-1.2/pcbasic-v1.2.15.tgz

  • tim white tim white posted a comment on discussion General Discussion

    Im using Windows 10 on a laptop. Im using a USB to Com Port cable and am getting error Device Unavailable in 20 I set the cable as COM2 in Device Manager 20 OPEN "COM2: 9600,N,8,1,RS,CS0,DS0,CD0" AS #1 I read about this issue in the comments and there was mention of a fix in progress? any assistance appreciated. tim

  • GARY DODGE GARY DODGE posted a comment on discussion General Discussion

    This other 'Post' window just popped up -- I just clicked 'Cancel' but all it does is delete the text in the window!

  • GARY DODGE GARY DODGE posted a comment on discussion General Discussion

    Thanks much, Mark, for the reply -- If I remember correctly, back in the day, you could enter "LLIST" while in the program and it would send a listing to the printer. I'm pretty sure I tried your sugg. recently - (LLIST then exit) , but it still didn't print for some reason, although I just tried again, and it did print after exiting -- so thanks for that tip; I guess that's all I needed to know, although it would be nice to be able to 'LLIST' from within the program. Gary

  • Marc 'BlackJack' Rintsch Marc 'BlackJack' Rintsch posted a comment on discussion General Discussion

    What does „couldn't LLIST“ mean exactly? Have you tried giving an explicit printer name in the options? For me the actual printing is triggered when I close PC-BASIC. The Z: directory in PC-BASIC is the current working directory the program is started from/with. So if you start it from the command line, then you should navigate to where you want to load/save data from. If all you want is converting a BAS file from tokenized form to a text file, there is the --convert option.

  • GARY DODGE GARY DODGE posted a comment on discussion General Discussion

    Is anyone there ??

  • GARY DODGE GARY DODGE posted a comment on discussion General Discussion

    Still looking for a reply -- If there's any there, pls let me know where to look ( garyd52013@gmail.com) Thanks

  • GARY DODGE GARY DODGE posted a comment on discussion General Discussion

    Greetings -- I tried using suggestions in a couple of related issues, but had no luck. On my desktop computer (wired to printer) there was no .ini file to be found, and on the laptop, I found a file and enabled "lpt1=printer:" but still couldn't 'LLIST' I can't even figure out a 'workaround' (saving to a file) being trapped in this phantom Z directory! (Tried " SAVE "C:\file.bas" but not found. Is there a way to 'Save As'?) Can anyone help?

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    H, this already exists - try pc-basic -t Rob

  • Guido Lehwalder Guido Lehwalder posted a comment on discussion General Discussion

    Hi, first many Thanks for PC-BASIC! I would like to ask if there is a chance that there will be a Non-SDL version of PC-Basic for Windows in the Future? I would start it (in the past) like GWBASIC.EXE from the SHELL/CONSOLE in Windows Many Thanks for the answer in advance :)

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    Very comprehensive guide, Everton. thank you so much.

  • Theruler76 Theruler76 posted a comment on discussion BASIC Programs

    Hi, I just wanted to share with the pcbasic community two ways to delete a line or part of it I just used in a program of mine. the goal is to have a subroutine you can use in multiple position around your program just passing to it two variables: Y the line you want to delete and X the point where you want to start deleting. The only drawback is that you can delete only from a point to the end of line, not let's say ten characters at the center of a line. this code uses a for cycle to locate a fixxed...

  • Everton da Silva Marques Everton da Silva Marques posted a comment on discussion General Discussion

    Yes, it reads right. I have sketched this recipe for compiling in Windows: https://github.com/udhos/basgo/blob/master/README-windows.md If you face difficulties with the recipe, you can reach me at: everton.marques(at)gmail.com Everton

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    It reads right? less then half a second? The power of machine code. Not a problem Everton, but thanks. I'd like to be able to compile myself. Cheers

  • Everton da Silva Marques Everton da Silva Marques posted a comment on discussion General Discussion

    This is the output from compiled code: Statistical distribution of random natural events (SI=0 TO 4) ongoing... SI 0 1 2 3 4 0% 5 6 11 12 17 10% 74698 146235 226351 310990 399003 20% 148396 247962 341132 368015 345788 30% 169462 260515 216470 160447 126812 40% 178459 167264 100198 72203 56242 50% 183660 78272 46347 33751 26450 60% 111137 31370 19722 14612 11933 70% 40257 15285 10293 7983 6535 80% 20289 9289 6577 5206 4222 90% 12719 6369 4604 3660 3150 100% 8946 4710 3402 2757 2381 Execution time...

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    Yeah, sorry. I should have used codebox like you did. (I edited last post) there is a moltiplication symbol between RND ang G variable.

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Hi Everton, I do not have experience with your compiler but knew it exists, and that's a great thing! It could be handy for some quick test i have to do. I am making some changes in a game I wrote in 2018 (MANOR 2, with permission of Leon Baradat, the 2.22 version is downloadable in his page https://peyre.x10.mx/GWBASIC/index.htm) namely a formula that calculate random natural events and determine how many grain you lose based to a parameter that mitigates the loss (SI). I test my formulas with most...

  • Everton da Silva Marques Everton da Silva Marques posted a comment on discussion General Discussion

    Hi, Due to limitations in the compiler, I had to tweak the code in order to compile it. This is the final code I compiled. However I am afraid I broke the math in line 10 when inserting parenthesis for RND(). The compiler is unable to parse RNDnumber, it requires RND(number). I think I might have mistranslated RNDG/2, RNDEV250, and PERC=RA100/(G+0.1). Can you help me to fix properly line 10? 1 screen 0 5 RANDOMIZE TIMER:CLS:?"Statistical distribution of random natural events (SI=0 TO 4) ongoing...":'ON...

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Hi Everton, I do not have experience with your compiler but knew it exists, and that's a great thing! It could be handy for some quick test i have to do. I am making some changes in a game I wrote in 2018 (MANOR 2, with permission of Leon Baradat, the 2.22 version is downloadable in his page https://peyre.x10.mx/GWBASIC/index.htm) namely a formula that calculate random natural events and determine how many grain you lose based to a parameter that mitigates the loss (SI). I test my formulas with most...

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Hi Everton, I do not have experience with your compiler but knew it exists, and that's a great thing! It could be handy for some quick test i have to do. I am making some changes in a game I wrote in 2018 (MANOR 2, with permission of Leon Baradat, the 2.22 version is downloadable in his page https://peyre.x10.mx/GWBASIC/index.htm) namely a formula that calculate random natural events and determine how many grain you lose based to a parameter that mitigates the loss (SI). I test my formulas with most...

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Hi Everton, I do not have experience with your compiler but knew it exists, and that's a great thing! It may be useful to make test quick. I am making some changes in a game I wrote in 2018 (MANOR 2, with permission of Leon Baradat, the 2.22 version is downloadable in his page https://peyre.x10.mx/GWBASIC/index.htm) namely a formula that calculate random natural events and determine how many grain you lose based to a parameter that mitigates the loss (SI). I test my formulas with most iterations...

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    Hi Everton, I do not have experience with your compiler but knew it existed, and that's a great thing! It may be useful to make test quick. I am making some changes in a game I wrote in 2018 (MANOR 2, with permission of Leon Baradat, the 2.22 version is downloadable in his page https://peyre.x10.mx/GWBASIC/index.htm) namely a formula that calculate random natural events and determine how many grain you lose based to a parameter that mitigates the loss (SI). I test my formulas with most iterations...

  • Erich Meager Erich Meager posted a comment on discussion General Discussion

    I was able to get the software to work by using an older version that I found a link to in another discussion, but I would like to use the most current version because the older version does not work with my most recent program version.

  • Erich Meager Erich Meager posted a comment on discussion General Discussion

    I've been using PC Basic for the past few years to run a program that I wrote for a college football pool. Last year, since there was no college football, I never had to use the program but when I attempted to run PC Basic on my mac today, all I get is a window with no prompts. I don't even know where to start to resolve the issue. Has anyone else experienced this kind of a situation?

  • Everton da Silva Marques Everton da Silva Marques posted a comment on discussion General Discussion

    I experimented with compiling your bechmark code to native code with my toy compiler for basic: https://github.com/udhos/basgo Not filling the screen, your code took Average= 0.00011061930126743391 Filling the screen, it took: Average= 0.1786323386011645 Compiled to native executable, under Linux, x86_64, i7-8750H CPU @ 2.20GHz

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    things chages a little bit when it comes to fill the screen with characters. Same machine same version under test but with this similar prog: 10 FOR A=1 TO 10 20 T1=TIMER 30 FOR YD=1 TO 23:FOR XD=1 TO 80:LOCATE YD,XD:?CHR$(129+A);:NEXT:NEXT 40 T2=TIMER 50 T(A)=T2-T1 60 NEXT:?"Average="(T(1)+T(2)+T(3)+T(4)+T(5)+T(6)+T(7)+T(8)+T(9)+T(10))/10 v 1.2.14 win = 0.614 sec v 2.0.3 win = 1.256 sec v 2.0.3 python 3.9 x64 = 0.875 sec compiled version actually display the chars changing, but the pure python one...

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Just for fun I benchmarked three version with a simple FOR NEXT cycle, no math involved, just waits: 10 FOR A=1 TO 10 20 T1=TIMER 30 FOR X=1 TO 100000:NEXT 40 T2=TIMER 50 T(A)=T2-T1:?T(A) 60 NEXT:?"Average="(T(1)+T(2)+T(3)+T(4)+T(5)+T(6)+T(7)+T(8)+T(9)+T(10))/10 Same hardware, win10 x64, i7-6700@3.4GHz - 16GB, ssd the average results are: v 1.2.14 win = 3.625 sec v 2.0.3 win = 4.234 sec v 2.0.3 python 3.9 x64 = 2.554 sec Unfortunately, I was not able to run it on PYPY, due to dependency fails with...

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Just for fun I benchmarked three version with a simple FOR NEXT cycle, no math involved, just waits: 10 FOR A=1 TO 10 20 T1=TIMER 30 FOR X=1 TO 100000:NEXT 40 T2=TIMER 50 T(A)=T2-T1:?T(A) 60 NEXT:?"Average="(T(1)+T(2)+T(3)+T(4)+T(5)+T(6)+T(7)+T(8)+T(9)+T(10))/10 Same hardware, win10 x64, i7-6700@3.4GHz - 16GB, ssd the average results are: v 1.2.14 win = 3.625 sec v 2.0.3 win = 4.234 sec v 2.0.3 python 3.9 x64 = 2.554 sec

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Just for fun I benchmarked three version with a simple FOR NEXT cycle, no math involved, just waits: 10 FOR A=1 TO 10 20 T1=TIMER 30 FOR X=1 TO 100000:NEXT 40 T2=TIMER 50 T(A)=T2-T1:?T(A) 60 NEXT:?"Average="(T(1)+T(2)+T(3)+T(4)+T(5)+T(6)+T(7)+T(8)+T(9)+T(10))/10 Same hardware, win10 x64, i7-6700@3.4GHz - 16GB, ssd the average results are: v 1.2.14 win = 3.625 sec v 2.0.3 win = 4.234 sec v 2.0.3 python 3.9 x64 = 2.554 sec

  • Theruler76 Theruler76 modified a comment on discussion General Discussion

    Just for fun I benchmarked three version with a simple FOR NEXT cycle, no math involved, just waits: 10 FOR A=1 TO 10 20 T1=TIMER 30 FOR X=1 TO 100000:NEXT 40 T2=TIMER 50 T(A)=T2-T1:?T(A) 60 NEXT:?"Average="(T(1)+T(2)+T(3)+T(4)+T(5)+T(6)+T(7)+T(8)+T(9)+T(10))/10 Same hardware, win10 x64, i7-6700@3.4GHz - 16GB, ssd the average results are: v 1.2.14 win = 3.625 sec v 2.0.3 win = 4.234 sec v 2.0.3 python 3.9 x64 = 2.554 sec

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    Just for fun I benchmarked three version with a simple FOR NEXT cycle, no math involved, just waits: 10 FOR A=1 TO 10 20 T1=TIMER 30 FOR X=1 TO 100000:NEXT 40 T2=TIMER 50 T(A)=T2-T1:?T(A) 60 NEXT:?"Average="(T(1)+T(2)+T(3)+T(4)+T(5)+T(6)+T(7)+T(8)+T(9)+T(10))/10 Same hardware, win10 x64, i7-6700@3.4GHz - 16GB, ssd the average results are: v 1.2.14 win = 3.625 sec v 2.0.3 win = 4.234 sec v 2.0.3 python 3.9 x64 = 2.554 sec

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Thanks for checking, not sure what could cause the lag. Regarding the memory management - thanks for reporting, it's more or less expected that 1.2 performs differently. One of the big changes in the 2.0 branch is the way arrays and (in particular) strings are handled, in order to follow the behaviour of the original more closely. It's far from perfect though, some parts of how the memory allocation behaves in GW-BASIC I just haven't been able to understand so far.

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    Thanks Rob for your reply, much appreciated and clear. I tried your suggestion and used python 3.9; even if the program seemed to run a bit faster, there was a sort of lag. Something that should do with the way 3.9 handle the timings. Didn't tried pypy but if ctypes doesn't cause issues, integrate pypy libs into the windows package should help the project, I would say. I also noticed different memory management between 2.0 and 1.2. Same 600 lines/50KB program, with FRE(1) command, after RUN and CTRL-C...

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    There shouldn't be a backslash between FILE: and the drive letter

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Great tip, thanks! Did everything work or are there gaps? I seem to recall there used to be issues with ctypes under PyPy, but that was a while ago...

  • Justin R. Miller Justin R. Miller modified a comment on discussion General Discussion

    FWIW, though I didn't benchmark things, I've had good results using PyPy (https://www.pypy.org/) to run PC-BASIC with great speedups. Might be worth a shot depending upon needs.

  • Justin R. Miller Justin R. Miller modified a comment on discussion General Discussion

    FWIW, though I didn't benchmark things, I've had good results using PyPy (https://www.pypy.org/) to run PC-BASIC with great speedups. Might be worth a shot depending upon needs.

  • Justin R. Miller Justin R. Miller posted a comment on discussion General Discussion

    FWIW, though I didn't benchmark things, I've had good results using PyPi (https://www.pypy.org/) to run PC-BASIC with great speedups. Might be worth a shot depending upon needs.

  • alizaza alizaza posted a comment on discussion BASIC Programs

    Hi .Rob Hagemans I tried to make the print commands come out as text, but it didn't work. Is there an error entering the file path? lpt1=FILE:\D:\Program\Engineering programs\MASS\Print I hope that you can guide me in the correct way to modify it for printing in text form, or please modify the file and re-publish it here

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Actually, numpy is quite well optimized, and faster if you have the sort of task it is meant for - i.e. vectorised calculations. I removed it not so much for performance but to get rid of a large dependency (it was steadily ballooning and added something like 10 MiB to the package) and for maintainability - I want the basic functionality to be available using the python standard library only, but that meant having to maintain separate code for numpy and non-numpy installs and it was just not doable...

  • Marc 'BlackJack' Rintsch Marc 'BlackJack' Rintsch posted a comment on discussion General Discussion

    2.0.x uses Python 2.7 if you install it for 2.7. Just install it for Python 3.

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    I know pygame and numpy are well known for their slowness (even if they have tricks to make some optimizations), so I would have expected the speed difference to be the opposite between the two branches, now I know why, thanks. I even noticed you compiled every .py files into pyc, that should make a slight speed increase, I do not know how much noticable is in a so complex program like yours (complexity that never stops to amazes me, sincerely). Could you enlight me on what circular dependencies...

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    If neither option does what you are looking for, then I am afraid I have run out of ideas and am unable to help you any further. Perhaps someone else on this forum might be able to. Best of luck

  • alizaza alizaza posted a comment on discussion BASIC Programs

    C:\Program Files (x86)\PC-BASIC-1.2\data this file cant be edit !

  • alizaza alizaza posted a comment on discussion BASIC Programs

    C:\Users\Ali ZaaZaa\AppData\Roaming\pcbasic-1.2

  • alizaza alizaza posted a comment on discussion BASIC Programs

    There is a file with the following path C:\Users\Ali ZaaZaa\AppData\Roaming\pcbasic-1.2 and file with the following path C:\Program Files (x86)\PC-BASIC-1.2\data

  • alizaza alizaza posted a comment on discussion BASIC Programs

    it may end up printing every line on a different page can you pls edit my file to print every page

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    Just replace page with line

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    No

  • alizaza alizaza posted a comment on discussion BASIC Programs

    Is it possible to define a program Dosprn to receive print orders from pc basic

  • alizaza alizaza posted a comment on discussion BASIC Programs

    What are the steps to modify to line,page

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    No, it's not possible for me to connect to your device. You're set up to trigger print for every page break. That means when a page break character is encountered, the page will be printed; anything left at the end will be printed on closing PC-BASIC. If you want every line to be printed separately, use print-trigger=line. Your write that you want to print "every command sent" - unfortunately there is no such option, the options are line, page, or close. If none of these do what you need then unfortunately...

  • alizaza alizaza posted a comment on discussion BASIC Programs

    We connect devices through anydesk . Please agree to resolve the issue with respect

  • alizaza alizaza posted a comment on discussion BASIC Programs

    Is it possible for you to contact my device and take the steps to solve the printing problem when closing the program and make it print after every page

  • alizaza alizaza posted a comment on discussion BASIC Programs

    I made the modification as in the attached picture. Is what I did right... When closing the file, saving and running the program, nothing changed. The method did not work.

  • alizaza alizaza posted a comment on discussion BASIC Programs

    I made the modification as in the attached picture. Is what I did right... When closing the file, saving and running the program, nothing changed. The method did not work.

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    You have print-trigger=page which means it sends to the prnter after every page. If you need after every line you should set print-trigger=line. s that what you are looking to do?

  • alizaza alizaza posted a comment on discussion BASIC Programs

    I deleted the # as you can see in the attached picture, is there anything I should do as well

  • alizaza alizaza posted a comment on discussion BASIC Programs

    I want the program to print while working on it and to control the printing, not when the program is closed So try the method you mentioned, which is to go to (C:\Users\Ali ZaaZaa\AppData\Roaming\pcbasic-1.2)... I found two files, one of them is PCBASIC.INI that I attached earlier. I opened it and modified it by removing # then closing the file after saving.. I ran the program but it didn't work, the program still prints after I close it

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    Hi, please see here for a guide to printing options: https://robhagemans.github.io/pcbasic/doc/1.2/#printing I'm not sure exactly what you want but it sounds like this option may be what you need: https://robhagemans.github.io/pcbasic/doc/1.2/#--print-trigger If it doesn't work, please state exactly what you have tried, otherwise I or others won't be able to see the problem.

  • alizaza alizaza posted a comment on discussion BASIC Programs

    The attached file is PCBASIC.INI. Editing should be done on it. Would you edit it for me please? I removed the # , but it did not work ... I have a program that was designed on the GW BASIC language. I want it to send every print command and to control that. I downloaded a program DOSPRN but pc basic does not send print commands

  • Rob Hagemans Rob Hagemans posted a comment on discussion BASIC Programs

    If you want to make a change to a line in that file, you need to uncomment it by removing the # in front. As it stands, in the file you attached, all lines are comments and have no effect.

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Hi, thanks for your message. It's true that the 2.x branch is slower. The 1.x branch had become unmaintainable due to circular dependencies, in order to disentangle the code I have made large changes to the structure, including the use of threading to separate interface and engine. Unfortunately the code is not as highly optimised as the 1.x branch was.

  • Rob Hagemans Rob Hagemans posted a comment on discussion Bug reports

    Thanks for the report, added to th bug tracker here: https://github.com/robhagemans/pcbasic/issues/139

  • alizaza alizaza posted a comment on discussion BASIC Programs

    I need to modify the printing that prints every command sent and not when the program is closed. When modifying an PCBASIC.INI file, nothing changes. I do not know the correct modification steps need help

  • Marc 'BlackJack' Rintsch Marc 'BlackJack' Rintsch posted a comment on discussion Bug reports

    I can confirm this and that GW-BASIC doesn't do this. The program just ends there. Maybe this would be better a bug report over at the Github repository: https://github.com/robhagemans/pcbasic/issues

  • Theruler76 Theruler76 posted a comment on discussion General Discussion

    I'd like to know the technical details. I already read about deprecated libraries like pygame. The fact is that 1.2.14 is far faster then 2.0 branch. As example, paste a 60KB program into 1.2 happens almost instantly, in 2.0 it takes one minute or so. It is neither an issue nor a complaint, I use both versions depending on needs, just curious. Keep up the good work regards Stefano

  • Ronald Herrera Ronald Herrera posted a comment on discussion Bug reports

    Hi, long time: If the value of the expression higher than the quantities of the line numbers after GOSUB, a SYNTAX ERROR occurs: 10 A = 3 20 ON A GOSUB 30, 40: END 30 PRINT "1": RETURN 40 PRINT "2": RETURN

  • Theruler76 Theruler76 posted a comment on discussion BASIC Programs

    just my two cents, to properly display all the aces you have to count to 13 in DATA: READ V$:C$(I*13+J)

  • Marc 'BlackJack' Rintsch Marc 'BlackJack' Rintsch modified a comment on discussion General Discussion

    Under Linux, regardless of the hardware platform, I'm using pip to install PC-BASIC. Make sure you use the pip for Python 3. That's pip3 on some Linux distros. Or even better, use the Python 3 you want to install it for to run the pip module of that very Python installation, e.g. python3.6 -m pip install pcbasic.

  • Marc 'BlackJack' Rintsch Marc 'BlackJack' Rintsch posted a comment on discussion General Discussion

    Under Linux, regardless of the hardware platform, I'm using pip to install PC-BASIC. Make sure you use the pip for Python 3. That's pip3 on some Linux distros. Or even better, use the Python 3 you want to install it for to run the pip module of that very Python installation, e.g. python3.6 -m pip pcbasic.

  • JAMES RYBAK JAMES RYBAK posted a comment on discussion General Discussion

    What is the best way to install PC-Basic on a Raspberry Pi 3 B+ ? Thanks.

  • andrewlee andrewlee modified a comment on discussion Bug reports

    Dear All, It gives print 2/0 Division by zero 1.701412E+38 [Sorry GWbasic Gives the same result] [closed]

  • andrewlee andrewlee posted a comment on discussion Bug reports

    Dear All, It gives print 2/0 Division by zero 1.701412E+38

  • David Wright David Wright posted a comment on discussion General Discussion

    Everton, thanks for your email..it worked. And suddenly, my 63 year old brain is recalling GW Basic basics! Thanks again. David From: Everton da Silva Marques evertonm@users.sourceforge.net Sent: 13 June 2021 19:28 To: [pcbasic:discussion] general@discussion.pcbasic.p.re.sourceforge.net Subject: [pcbasic:discussion] Re: A very basic question You could try: chdir "esi" run "esi.bas" Everton Em dom, 13 de jun de 2021 12:56, David Wright djmwright@users.sourceforge.net djmwright@users.sourceforge.net...

  • Everton da Silva Marques Everton da Silva Marques posted a comment on discussion General Discussion

    You could try: chdir "esi" run "esi.bas" Everton Em dom, 13 de jun de 2021 12:56, David Wright djmwright@users.sourceforge.net escreveu: OK. I have put the esi folder into my documents. I have loaded it using Load"esi\esi.bas". Message says OK. Then I enter Run. The PC bleeps and PC-Basic closes. I think that the program has to access other files (e.g. .dat) in the esi folder. Could that be a reason why it isn't working?David From: Rob Hagemans robhagemans@users.sourceforge.net Sent: 13 June 2021...

  • David Wright David Wright posted a comment on discussion General Discussion

    OK. I have put the esi folder into my documents. I have loaded it using Load"esi\esi.bas". Message says OK. Then I enter Run. The PC bleeps and PC-Basic closes. I think that the program has to access other files (e.g. .dat) in the esi folder. Could that be a reason why it isn't working?David From: Rob Hagemans robhagemans@users.sourceforge.net Sent: 13 June 2021 07:52 To: [pcbasic:discussion] general@discussion.pcbasic.p.re.sourceforge.net Subject: [pcbasic:discussion] Re: A very basic question Hi,...

  • David Wright David Wright posted a comment on discussion General Discussion

    Rob, Thanks for responding. Sorry.I am not very knowledgeable and just want to run an old gwbasic program. I have a folder called ESI which contains a file called ESI.bas (and a lot of other linked files). I have put this folder into My Documents. I've totally forgotten how to run programs in basic. I seem to recall shortcuts in the form "gwbasic.exe esi" when the Gwbasic code and the ESI files were in the same location. How do I run ESI with pc-basic? David From: Rob Hagemans robhagemans@users.sourceforge.net...

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Hi, you can use either version, it's up to you. See here for how to access programs: https://robhagemans.github.io/pcbasic/doc/2.0/#mounting Note that mount is not a command, it's a setting in the config file.

  • David Wright David Wright posted a comment on discussion General Discussion

    Hi, I am using Windows 10 and I have a couple of old gwbasic programs stored on my c:drive as .BAS files. First question...should I use the stable 1 version or the new 2 version of PC-BASIC. Second question,..how do I access my programs? I have tried the mount command and get repeated syntax errors. Thanks. djmwright

  • Tom Lake Tom Lake posted a comment on discussion General Discussion

    Compaq BASIC was an exact clone of IBM BASICA. KEY(30) was F11 and KEY(31) was F12 in the KEY(n) and ON KEY(n) statements. If n was 15-25 then you could trap other keys by CHR$(KBflag)+CHR$(scan code). KBflag is: Caps Lock Inactive = &H0 Caps Lock Active = &H40 Num Lock Inactive = &H0 Num Lock Active = &H20 Alt = &H08 Ctrl = &H04 Left Shift = &H02 Right Shift = &H01 Duplicate Key = &H80 Scan code is the usual scan code of the keys on the keyboard.

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Hi Tom, that's interesting! At the moment F11 and F12 are only supported in Tandy mode, and even then it clashes a bit as these keys are used to access emulator functionality. I think the Compaq was a much more regular PC/AT clone. Would you know of any documentation (e.g. online links or pdfs or some such) for these versions of Compaq BASIC? I'm wondering if it has more extended features, it may be possible to include some of its features in a future version. Though admittedly I haven't had much...

  • Rob Hagemans Rob Hagemans posted a comment on discussion General Discussion

    Hi Mark, thank you very much for your interest and it's great to hear of your appreciation! You're very welcome to use/build on the emulator, currently I don't have plans to set up a donation option.

  • Marc 'BlackJack' Rintsch Marc 'BlackJack' Rintsch posted a comment on discussion BASIC Programs

    Have a look at the FRE() function.

  • James Gilchrist James Gilchrist posted a comment on discussion BASIC Programs

    out of memory error, how do I determine how much memory is free

  • Mark Carter Mark Carter posted a comment on discussion General Discussion

    I want to give a small token of my appreciation for the GWBasic emulator. I would prefer to do that using PayPal from a direct link on the download page. That would be sweet.

  • Tom Lake Tom Lake posted a comment on discussion General Discussion

    The last couple versions of IBM BASIC and BASICA (ver. 3.20 and 3.30) and Compaq BASIC supported all 12 function keys. Would it be possible to let PC-BASIC do that as well?

  • Marc 'BlackJack' Rintsch Marc 'BlackJack' Rintsch posted a comment on discussion General Discussion

    You need to write code for it. There is no command that does this. Bubblesort and Insertion Sort are two common candidates.

1 >