Jump to content

Category:Locomotive Basic: Difference between revisions

No edit summary
Line 12:
==Z80 Extensions==
 
As on many other 8-bit machines of the era, BASIC programs are often extended with [[Z80 Assembly|Z80]] machine code which is <tt>READ</tt> from <tt>DATA</tt> statements, <tt>[[wp:PEEK and POKE|POKE]]</tt>-d to RAM, and then <tt>CALL</tt>-ed—an approach that was especially popular with type-in games in CPC magazines. The CPC also has a more convenient form of BASIC extensions, RSX<ref>http://www.cpcwiki.eu/index.php/RSX</ref> commands ('''r'''esident '''s'''ystem e'''x'''tensions). They are easily recognized by being prefixed with a pipe character and have the advantage of being freely relocatable in memory. Some RSX commands, such as "|ren" to rename files, are part of the AMSDOS ROM, but RSX routines can also reside in RAM, e.g. to provide new graphics primitives or other new capabilities to BASIC.
 
==Memory management==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.