Gury Posted October 9, 2018 Share Posted October 9, 2018 What I am doing wrong here? ? CHR$(65) REPEAT UNTIL Key() Error output: Compiling 'code03.bas' to assembler. c:\Atari\Appl\FastBasic\code03.bas:1:5: parse error, expected string expression ? CHR<--- HERE -->$(65) Regards Quote Link to comment Share on other sites More sharing options...
vitoco Posted October 9, 2018 Share Posted October 9, 2018 Which version of FastBasic? Quote Link to comment Share on other sites More sharing options...
Gury Posted October 9, 2018 Author Share Posted October 9, 2018 FastBasic v3.5 Quote Link to comment Share on other sites More sharing options...
vitoco Posted October 9, 2018 Share Posted October 9, 2018 CHR$ is not available in that version. Unfortunately, the online manual includes that for the next release. You could download the sources from GitHub and compile, or download a preview ATR that dmsc shared in one of the funkhels's threads. 2 Quote Link to comment Share on other sites More sharing options...
Gury Posted October 10, 2018 Author Share Posted October 10, 2018 Thank you for the info! Just to know to make proper fixes for my experimentations. Greetings Quote Link to comment Share on other sites More sharing options...
funkheld Posted October 10, 2018 Share Posted October 10, 2018 (edited) Hello thanks for the information. with which compiler can you compile the fastbasic under win10 please? can you please give a brief briefing on compiling? the "pause 0" in fastbasic is not a VBI routine to call a new procedur but just for image syncronization. Thank you. greeting Edited October 10, 2018 by funkheld Quote Link to comment Share on other sites More sharing options...
vitoco Posted October 10, 2018 Share Posted October 10, 2018 Hello thanks for the information. with which compiler can you compile the fastbasic under win10 please? can you please give a brief briefing on compiling? I like the IDE and use it for my developments... Sorry! the "pause 0" in fastbasic is not a VBI routine to call a new procedur but just for image syncronization. Thank you. greeting You have many threads in this forum with similar questions. Please try to keep all related questions in one thread in order to follow them and understand your requests by the context. I guess that your comment about "pause 0" should be in this other thread. 3 Quote Link to comment Share on other sites More sharing options...
_The Doctor__ Posted October 10, 2018 Share Posted October 10, 2018 he's on fire, perhaps a moderator could wrangle all of his threads into 1 1 Quote Link to comment Share on other sites More sharing options...
dmsc Posted October 11, 2018 Share Posted October 11, 2018 (edited) Hi! Hello thanks for the information. with which compiler can you compile the fastbasic under win10 please? can you please give a brief briefing on compiling? I develop from Linux, and compile using mingw64. I will try to document all steps to generate a working cross-compiler. To compile in windows 10, I think the "easiest" is to install msys2 from http://www.msys2.org/ : - First, install MSYS2 following the instructions on the web-page. Remember to do the "pacman -Syu" and then, after closing and reopening the window, do the "pacman -Su" command. - Install "mingw-w64-i686-gcc", "make", "zip", "unzip" and "git" packages. Remember that packages with "i668" in the name compile to 32bit windows. This is done typing " pacman -S make mingw-w64-i686-gcc zip unzip git " Also, you need to install CC65, follow the instructions at https://cc65.github.io/getting-started.htmland install to C:\CC65 Now, open a "Mingw x32" window, and use that to download and compile Fastbasic: - First, add CC65 to the path: PATH=$PATH:/c/cc65/bin - Download the code from github: git clone https://github.com/dmsc/fastbasic.git - Enter the fastbasic source folder: cd fastbasic - Compile a "debug" build: make EXT=.exe This will put the compilers into bin/fastbasic-fp.exe and bin/fastbasic-int.exe If you want to generate the "release" tarball, use a different compile line: - make EXT=.exe SHEXT=.bat CXXFLAGS="-DNDEBUG -Os -Wall -static-libstdc++ -static-libgcc -Wl,--gc-sections" build/fastbasic.zip That will generate a build/fastbasic.zip file with the compiler, scripts, libraries and documentation, all also in the folder "compiler/". Just tested the steps in a fresh windows VM, seems to work. Edited October 11, 2018 by dmsc 1 Quote Link to comment Share on other sites More sharing options...
funkheld Posted October 11, 2018 Share Posted October 11, 2018 hello thanks for the info. greeting. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.