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
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...
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...
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
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...
Can you share the code?
Hi Tommy, Which PCBASIC version are you running? I am using 2.0.2. That could account for differences where files are located. I think I see the source of your confusion when editing programs in PCBASIC. PCBASIC closely emulates the GWBASIC editing features that are at odds with what one would expect nowdays. That's why I recommended Notepad++. However the trick is, PCBASIC editor only actually updates one FULL line of the program when you position the cursor over that line and hits RETURN. Just...
Hey Tommy, Sorry that Notepad++ didn't work in your system. It is an awesome tool. Did you try the 32-bit version or the 64-bit one? The benefit in finding the location of the drive letter Z: is you can load/save files using other code editors than the one included in PC-BASIC (that is cumbersome to work with any longer code). PC-BASIC documentation about the driver letter Z: states this: "If PC-BASIC is started from the start menu shortcut, the current device will be your Documents folder (or My...