Extended BASIC Version 5 Release Note EXTENDED BASIC VERSION 5 REFERENCE MANUAL RELEASE NOTE Release 1 Part No. 02358002 There are four versions of BASIC recorded on the cassette provided. These differ only in the provision of special additional functions. They are named BASC or BASIC with the following suffixes. G with High Resolution Graphics support P with BASIC Reader Extension Each of the programs on the cassette is recorded once, slow. Side A: BASIC Equivalent to BASC BASCG With HRG support Side B: BASCP With Reader support BASCGP With HRG and Reader support You may have been supplied with a second cassette in case of loading problems with the first. KNOWN PROBLEMS When a line is entered from the keyboard, it can be no longer than 129 characters. However, because a space is inserted after the line number when a program is SAVEd, the last character of the line may be lost when a program containing a line of maximum length is LOADed. HIGH RESOLUTION GRAPHICS SUPPORT Users operating BASIC in conjunction with High Resolution Graphics should use either BASCG or BASCGP. These versions contain the necessary support routines as described in the "High Resolution Graphics Reference Manual". BASIC SIZES AND ADDRESSES The following addresses hold for all four versions of BASIC. Version 5.1 D Start address 100 Restart address 103 USR 106 USRVF 109 USRVT 10C SAVVAR 10F E.ERR 115 BBUFV 118 SUBPTR 11A ENDMEM 11C Research Machines 1 of 2 7 November 1980 Extended BASIC Version 5 Release Note File name Memory Limits BASIC 100-2F93 BASCP 100-31D1 BASCG 100-389F BASCGP 100-3ADD Users should note that the upper memory limit does not necessarily correspond to the start of area C as described in Chapter 13 of the Manual, and this should be determined by inspecting location BBUFV. The start of BASIC contains a number of jumps and vectors. These will be of interest to those who wish to add machine code subroutines. BASIC RML Z80 ASS V 9.9 B PAGE 1 0100 C30000 0165 BASIC: JP INIT ;"INITIALIZE" ENTRY POINT 0103 C30000 0166 REST: JP ERR.RC ;RECOVERY ENTRY POINT 0106 C30000 0167 USR: JP ERR.FC ;USER DEFINED JUMP 0109 C30000 0168 USRVF: JP CVRLIN ;USR SUBROUTINE TO GET VARIABLE 010C C30000 0169 USRVT: JP CS16R2 ;USR SUBROUTINE TO PASS VARIABLE 010F C30000 0170 SAVVAR: JP SAVINT ;SAVE INTEGER IN VAR 0112 C30000 0171 OUTMX: JP .OUTM ;PRINT MESSAGE 0115 CD0000 0172 E.ERR: CALL ER.EXT ;EXTERNAL ERROR 0118 0000 0173 BBUFV: DEFW ENDIT ;END OF BASIC 011A 0000 0174 SUBPTR: DEFW 0 ;POINTER TO SUBS 011C 0000 0175 ENDMEM: DEFW 0 ;END OF MEMORY 011E 0000 0176 BRFCB: DEFW RFCB ;READ FCB 0120 0000 0177 BWFCB: DEFW WFCB ;WRITE FCB 0122 01 0178 DEFBLK: DEFB 1 ;COPY COUNT 0123 14 0179 DEFB 20 ;INTERRECORD GAP 0124 00 0180 DEFB 0 ;START BLOCK 0125 00 0181 HRMEMF: DEFB 0 ;HRG MEMORY FLAG 0182 COND RDRIN ;IF READER EXTENSIONS 0126 0000 0183 RDRCOD: DEFW 0 ;READER EXTENSION INFO 0184 ENDC Research Machines 2 of 2 7 November 1980