This archive contains the following executable programs :- BASIC522.COM,z80 BAS522FP.COM,z80 BASIC531.COM,z80 BAS531FP.COM,z80 (Remove the “,z80” from the file extensions before FTP’ing or copying the files to the MTX.) USAGE The “522” programs are for CP/M 2.2 The “531” programs are for CP/M 3.1 The “FP” versions are for use with MFX with Cyclone IV (red) FPGA boards and support floating point maths using the numeric accelerator configured in the FPGA. Over and above the output options of the original BBC BASIC for CPM, all 4 versions of BASIC 5 have: COLOUR x 0 to 7 set the foreground text colour, 128 to 135 set the background colour MODE x mode 0 is 80x24, mode 1 is 80x48 OFF turns off the cursor ON turns on the cursor In addition the CPM2 versions have block graphics on a virtual resolution of 1280 x 768. The actual plot resolution depends on the screen mode. All positions are absolute, there’s no relative drawing. If the start or end of a line is off the screen nothing is drawn, as the driver does not support clipping. DRAW x,y GCOL x 0 to 7 set the foreground plot colour, 128 to 135 set the background colour LINE x1,y1,x2,y2 MOVE x,y PLOT x,y The 2 FP versions run all the FP maths through the Red4 FPGA for a 10-15% speed up on average. Attempting to run those programs on MFX with Cyclone II (blue) FPGA boards will give unpredictable results and should be avoided. The non-FP programs can be run on machines with and without the numeric accelerator, including non-MFX systems. A consequence of the extra commands the CPM2 version is 256 bytes bigger and therefore has that much less program space in addition to the smaller memory space to start with. CPM3 has 41.5K for the program, CPM2 gets a smaller but still useful 34K. KEYBOARD FUNCTIONS For compatibility with the MTX keyboard, the editing keys used in BASIC5 have been modified as listed below: Up and Home Move to the start of the line Down and EOL Move to the end of the line Ctrl X Clear everything Left Ctrl C and BRK Delete Left DEL Delete the Character under the Cursor INS Toggle insert/Overtype Left and BS Cursor left Right Cursor right