Skip to Content
LibraryCambridge Z88BBC BASIC ReferenceBBC BASIC (Z80) Reference Guide

BBC BASIC (Z80) Reference Guide

This is the BBC BASIC (Z80) Reference Guide for the Cambridge Z88, second edition, imported from the Cambridge Z88 wiki , where it is published as a Google Document. It describes BBC BASIC as the Z88 runs it, including the commands the Z88 Patch adds. The pages follow the manual’s chapters; every keyword has a page of its own under Statements and functions.

R. T. Russell's logo

Richard. T. Russell & Douglas J. Mounter

The
BBC BASIC(Z80)
Reference Manual
for Cambridge Z88

Second edition

BBC BASIC(Z80) is the copyright © 1982, 1984-2006 of R.T. Russell.

The BBC BASIC(Z80) Reference Manual, first edition, 1 February 1989, is the copyright © 1983, 1984, 1985. and 1989 of M-TEC Computer Services (UK).

This BBC BASIC(Z80) Reference Manual, second edition is copyright © 2019 of cambridgez88.jira.com (general improvements and fixes of first edition, added information of latest version of BBC BASIC(Z80) for Cambridge Z88 using extended commands of the Z88 Patch).

Disclaimer

The authors have made every reasonable effort to check the information in this manual and they believe it to be correct. However, they will not in any event be liable for any loss, including consequential loss, caused by an error, defect or inaccuracy in this information, including, but not limited to, loss of profit or loss of contracts.

Credits

Our thanks to Richard Russell, Matthew Soar and Cambridge Computer Ltd for providing technical information and help in preparing this manual.

Preface

You are reading the second edition of this manual. It happened because Richard Russell decided to release the source code of the BBC BASIC(Z80) for CP/M in June 2019 and a few months later also the source code of the Z88 Patch under the same Zlib license .

It allowed us, the team of cambridgez88.jira.com , to finally release the source code of BBC BASIC(Z80) port for the Cambridge Z88 that also contained the integration of the Z88 Patch, released to the project in 2006 by Richard Russell as a “ROMable” binary. Previously, the patch was only available as a binary add-on program for OZ releases V2.2 UK - V4.0 UK. The integrated patch allowed OZ V4.3  and newer releases to enjoy the improved BBC BASIC application. Respecting copyright, we preserved the reverse-engineered and optimised version source code privately. This source code, however, lacked all the deeper understanding and comments of the original work.

All original source code labels and comments from the ZLib licensed files have now been applied to our reverse-engineered and optimized version of BBC BASIC(Z80) for Cambridge Z88.

You can find the source code here: https://bitbucket.org/cambridge/oz/src/develop/apps/bbcbasic/ 

The original Z88 User Guide contained introductory information about the BBC BASIC(Z80) V3.0 available for the Cambridge Z88. Many years have passed since the first edition of this manual was released by M-TEC, It is no longer available in print or purchase. The Z88 Patch contained an introduction readme text file, referencing the added star commands.

We decided to do the effort and preserve the legacy of BBC BASIC for Z88, by making this guide available with ALL the updated information from the patch and new improvements of OZ. This guide is based on mainly the online CP/M Z80 guide also using the extended random files examples, typed in from the original contents of the M-TEC first edition. It was then improved, spell-checked, clearer layout, improved Z88-specific descriptions (ie. screenshot for clarity) and added with the Z88 Patch command reference. All the original text from the M-TEC first edition has been checked against this second edition. It is targeted to be the complementary guide for BBC BASIC(Z80) on Cambridge Z88 ROM V4.7 and later releases.

Screenshots, code examples and Z88 Patch have been validated on OZvm - the Cambridge Z88 emulator .

On behalf of the cambridgez88.jira.com  team, thank you Richard, for the generous decision to make the source code of BBC BASIC(Z80) and Z88 Patch available for everybody.

Gunther Strube, Vic Gerhardi and Jamie Bradbury
October 2019 - May 2020

Contents

Last updated on