Jump to content

Category:Locomotive Basic: Difference between revisions

Line 48:
Either use the CPCBasic browser-based Locomotive Basic emulator (https://benchmarko.github.io/CPCBasic/cpcbasic.html) or download a native CPC emulator binary for your platform. A list of emulators is available at http://cpcwiki.eu/index.php/Emulators. JavaCPC (http://sourceforge.net/projects/javacpc/) or WinAPE (http://www.winape.net/) are particularly recommended.
 
In CPCBasic, enter your program, e.g.
In the emulator, type
 
<lang locobasic>10 print "Goodbye,Hello World!"</lang>
 
into the "CPC Basic" text box at the top and then press the Run button below it. Output goes to the blue CPC screen below. You can also interact with the CPC screen directly if you first click on it with the mouse. The Reset button stops a running program and returns you to the Ready prompt.
 
In thea native emulator, just type
 
<lang locobasic>10 print "Hello World!"
run</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.