ZXBasic

From CPCWiki - THE Amstrad CPC encyclopedia!
Revision as of 08:04, 25 March 2016 by Nitrofurano (Talk | contribs) (1)

Jump to: navigation, search

About

ZX BASIC is a BASIC cross compiler. It will compile BASIC programs (in your PC) for your ZX Spectrum. ZX BASIC is an SDKentirely written in python. The SDK is implemented using the PLY (Python Lex/Yacc) compiler tool. It translates BASIC to Z80 assembler code, so it is easily portable to other Z80 platforms (Amstrad, MSX). Other non Z80 targets could also be available in the future. ZX BASIC syntax tries to maintain compatibility as much as possible with Sinclair BASIC, it also have many new features, mostly taken from FreeBASIC dialect. With some patching/scripting, the binary results from this cross-compiler can be, in most cases, easily adapted to run on all other z80-based hardware than ZX Spectrum only (Amstrad CPC included!).

Features

Allows use of inline-assembly and libraries

Links

Official wikipage

CPC examples (GX-4000 rom files for now, all with sources)