Updated 30 May 2003

Z88 with [ ]B. Z88 BBC BASIC (Z80) Viewer for Windows


Overview

A viewer for BASIC program files. Output as the listing on the Z88 screen with line numbers, keywords, GOTO line numbers and indention of FOR and REPEAT loops.
Font, Window size and position saved in ini-file.
Menus for Save as text, Cut, Copy, Paste, Delete, Find, Find Next, Add CLI Header and Font.

The viewer can be used with BBC BASIC (Z80) for Cambridge Computer Z88 and Amstrad NC100/NC200 and BBC BASIC (86) for PC which all are written by Richard Russel and share the same tokenised format.

Z88 BASIC Viewer Screen.


Version History

970728
Considering writing a Windows program for viewing Z88 BBC Basic programs. Possibly with save as text.

9708xx
First implementation as part of PipeView.
Moved it to Z88-Xport wich has better file selecting.

970809
Line numbers and keywords seems to be shown properly. Line numbers following GOTO are not.

970819 Version 0.1
GOTO line numbers correctly calculated.
Moved viewer to a separate application.
Ini-file handling of font, window size and position.

970828
Now takes a filename as command line argument.
Fixed ini-file font assignment

970904
Eliminated Error 5 'Illegal function call' in ReadBasicFile caused by bad handling of indention.
Ignore bad linenumbers.

970906
Eliminated Error 32755, 'Cancel was selected.' in mnuFont_Click.

970907
Added instructions to CLI header.
Changed default Save As extension to .cli.
Now the default Save As filename is the path of the loaded file without extension.

980101 version 0.2
Save last used directory in ini-file.
Added list of recently used files to the File menu.
Show filename in window caption.
Report "Bad program." when not proper Z88 BBC BASIC (Z80) file format.
Set focus on textbox after reading file to enable scrolling by keyboard.
Confirm 'Save changes' when closing program.
Exits program when pressing Esc. I think it is proper behavior for a file viewer.
Also print date and time in Errors.txt.

030530 version 0.21
Avoid Error 7 'Out of memory' on reading large programs.


Probable updates

Better handling of indention.
Save window state when closing program.


Feedback

mailto address


Downloads

Download z88basv.exe. Z88 BBC BASIC (Z80) Viewer for Windows. Version 0.21, 30 May 2003. 24K.

If you don't already have them in your \windows\system\ directory:
Download cmdialog.zip. Containing cmdialog.vbx Common Dialog Control for Microsoft Visual Basic, 18K.
Download ftp://ftp.microsoft.com/Softlib/MSLFILES/VBRUN300.EXE. Self-extracting archive, 241K, containing the Visual Basic 3.0 runtime library, vbrun300.dll.


Back to Cambridge Computer Z88