Category:Locomotive Basic: Difference between revisions

Turned off HoPL reference.
No edit summary
(Turned off HoPL reference.)
 
(2 intermediate revisions by one other user not shown)
Line 1:
{{language|Locomotive Basic
|exec=interpreted
|site=http://www.grimware.org/doku.php/documentations/software/locomotive.basic/}}
|hopl=no
}}
{{implementation|BASIC}}
 
'''Locomotive BASIC''' is a variant of BASIC that is built into the ROM of the [[wp:Amstrad CPC|Amstrad CPC]] series of home computers introduced in 1984. In the 1980s, the CPC was a popular, slightly more expensive alternative to the Commodore C64/C128. It was not just suited for games but also office work because of its high resolution display and [[wp:CP/M|CP/M]] support.
 
The easiest way to use Locomotive BASIC today is [https://benchmarko.github.io/CPCBasic/cpcbasic.html CPCBasic], a very fast implementation in JavaScript which also allows easy pasting of code from Rosetta Code. Note that programs will run much faster in CPCBasic than on a real CPC,. soTo animationsslow maydown requirea program, add an extra delay forloop eachto framethe main loop, e.g. a delay loop:<lang locobasic>for delay=1 to 100005:frame:next</lang> or the "frame" command which will waitpause for thefive nextframes frameor 0.1 seconds.
 
[https://www.retrovm.com/ CPCBox] is another option for the web browser, a whole-machine JavaScript CPC emulator mainly for games which has good compatibility but which lacks copy and paste support.
 
Locomotive BASIC can also be used via native CPC emulators such as [http://www.winape.net/ WinAPE] (Windows) or [http://sourceforge.net/projects/javacpc/ JavaCPC] (Windows/macOS/Linux). All these CPC emulators are also perfectly legal because Amstrad has given their permission for distributing CPC ROM images with emulators.
 
==Getting started with Locomotive BASIC==
1,606

edits