Intel 9800758-02 Initializing the Predefined RMX/SO BASIC-SO Configuration, Isis-Ii Basic-So

Page 94

RMX/SO BASIC-SO

BASIC-SO

With RMX/SO BASIC-SO, you can create BASIC programs and program them into PROMs for permanent reference.

You can configure RMX/SO to execute a PROM-resident BASIC-SO program immediately on restart.

If you wish to interrupt program execution when BASIC-SO expects input from the console, you must enter CONTROL-C followed by a carriage return. If you wish to interrupt a program that has been stopped by a CONTROL-S, type CONTROL-C followed by CONTROL-Q.

RMX/SO BASIC-SO does not have the EDIT Mode features supported by ISIS-II BASIC-80.

RMX/SO BASIC-SO supports only the console and disk files.

You should also be aware of two similarities between RMX/SO BASIC-SO and

ISIS-II BASIC-SO:

The data formats and protocols of the ISIS-II and RMX·/SO disk file systems (DFS) are identical. You can create data or program files on one system and use them on the other.

If you use a random file or open a file for output on one disk, and then remove that disk and insert another, you may destroy files on the new disk. You can open files for input without problems.

Initializing the Predefined RMX/SO BASIC-SO Configuration

RMX/SO allows many different configurations of its modules. Intel supplies two PROMs that you can use to load BASIC-SO from disk and to execute it. If you have the required hardware, as listed below, you can quickly run the predefined RMX/SO BAS IC-SO configuration.

An iSBC 80/30 Single Board Computer

An additional32K bytes of RAM on two iSBC 016s, or one iSBC 032 board.

An iSBC 204 Disk Controller.

An MDS-2DS Disk Drive attached through the cable supplied with the BASIC-SO package.

An RS-232C compatible terminal.

An iSBC chassis and power supply

If you have the required hardware, it must be configured as shown below. Refer to the RMX/SO Installation Guide if you must alter your present configuration. Table F-l shows the jumper configurations described in the following paragraphs.

1.The iSBC SO/30 board must be wired to conform to the RMX/SO terminal handler interrupt structure. This requires the wiring changes listed in Table F-l. Check your iSBC SO/30 board to verify that these changes have been made. For further information, refer to the RMX/SO User's Guide.

2.The iSBC on-board PROMs must be addressed at locations OOOO-OFFF. This is the factory-wired default configuration. These default jumper settings are shown in Table F-l. For further information, refer to the iSBC SO/30 Single Board Computer Hardware Reference Manual, chapter 2.

3.The iSBC SO/30 on-board RAM must be addressed at locations 4000H-7FFFH. This is the factory-wired default configuration. These default jumper settings are shown in Table F-l. Jumper IS0-171 is a factory-wired default configuration that disables off-board access of on-board RAM. For further information, refer to the iSBC 80/30 Single Board Computer Hardware Reference Manual, chapter 2.

F-2

Image 94
Contents BASIC-SO Reference Manual A108/0979/7500 FL Preface Page Contents Illustrations Chapter Introduction to BASIC-80 Invoking BASIC-80Basic filename MEMTOPaddress ExamplesIntroduction to BASIC-80 FilenameChanging File Attributes Listing the Directory of a DiskRenaming a File Deleting a FileYou can now run, list, or edit the program Save LP ,ACommands StatementsBASIC-80 Commands Contd BASIC-80 StatementsBASIC-80 Statements Contd BASIC-80 FunctionsBASIC-80 Functions Contd Representing Data FunctionsDecimal Integer Constants ConstantsInteger Constants Hexadecimal Integer ConstantsSingle-Precision Floating-Point Constants Octal Integer ConstantsDouble-Precision Floating-Point Constants This is a string constant String ConstantsString Variables $ = Enter next data stringL4! = Csng l4 YI,1String Arrays Arithmetic Operators BASIC-SO Operators in Order of Precedence ContdNumeric Expressions Logical OperatorsString Operator String ExpressionsEntering and Editing Programs 30 A=8*52 30 A=8*37 30 A=8*5230 A=8 30 A--=8xx*522537 Control-R a = 8*37Integer D SubcommandCommand 3D press 3, then D results If AB thenIf AB then 120 Else Null SET Syntax of the X subcommand is At this point, the other editing subcommands may be usedMove the cursor to PRINT. Enter 2C RE L Print Undefined SET The E subcommand is enteredInteger C character character Print Undefined SET. Enter a LSyntax Error Messages BASIC-80 Error MessagesOverflow, Underflow, and Divide-by-Zero Error Trapping Trace Facility Restarting Program Execution Error SimulationError Handling If line 40 is replaced withOpening a Sequential File Open 1,#1,F1DATESReading from a Sequential File Refer to for further details of Print UsingWriting to a Sequential File If executed four times, it would read all eight valuesClosing a Sequential File Value of R$ would beDefining a Random 1/0 Field-FIELD BuffersField #3, 20 AS N$ Disk File Input/Output Field #3, 20 AS N$, 9 AS SS$Any of the parameters can be variables Opening and Closing a Random Disk FileReading from a Random 1/0 File To read the next recordSingle-precision value Writing to a Random 1/0 FileInteger Double-precision valueMKI$ Auto first lineJ, increment Attrib Fdrive numberfilename, W1Attrib Fdrive numberfilename, WO Clear expression,addressCommands and Statements CloseDEF FNX Rules for function name are the same as for variable nameDefsng Defdbl Defstr Defint DIM DeleteEdit ErrorDIR ENDField Error expressionExit FOR-NEXT-STEPFor variable=expression to expression Step expression GETGosub GET I file number ,record numberInput IF-THEN-ELSEGoto Line Input KillLET ListLSET, Rset LoadMerge NEWNext 9 16On ... Goto On ... GosubOpen OUT Option BasePoke Print Print UsingString Fields Numeric fields If X$=SEVEN and Y$=EIGHT, the results of line 40 would bePrun PUTRandomize ReadREM Resume ReturnLine number RUN filename SaveRUN line numberlstring expression ,F 60 ENDTRON, Troff ? 5,8,2Wait WidthABS ATNCint CHR$Functions 10 A# = 1.00/3.00 CsngCVI CVS AO/o =Dskf EOFFIX Ok·INP HexsInputs Instr INTLEFT$ LOF LENLOC LOGMKI$ MKS$ MKD$ MID$OCT$ POS integer RightsPeek expression RIGHT$ string,integerSpaces SGNSIN 10 a =1If A$ = 2 then Print Correct Else Goto SPCSPC integer SQRexpressionTAB expression STR$ expressionTAN expression Here is an example of how the USRn statement is used 60 AO/o =Appendix a BASIC-SO Error Codes Table A-I. BASIC-80 Error CodesTable A-I. BASIC-SO Error Codes Contd Appendix B BASIC-SO Reserved Words Page To tab across the line To halt program execution and return to commandLevel To resume program execution after it is stopped byPage Table D-l. Ascii Code List Appendix D Ascii CodesTable D-2. Ascii Code Definition BELAppendixe Calling Subroutines Figure B-1. Internal Representation of Numbers and Strings Some Real Examples RESULT=USR%1VARPTRA, VARPTRB, VARPTRC» PRINTA+B+C= ResultFigure E-2 /8085 Assembly Language Program Figure E-3. PL/M-80 Program Appendix F RMX/SO BASIC-SO Initializing the Predefined RMX/SO BASIC-SO Configuration ISIS-II BASIC-SOTable F-l. Sample Configuration Jumper Wiring OOOOH-OFFFHBASIC-80 Object Files Generating Boot-Loaded and PROM-Based VersionsBASIC-80 Source Files BASIC-80 Executable FilesGenerating a Boot-Loaded RMX/80 BASIC-80 Setting baud rates, refer to the RMX/SO Users Guide That are not boot loadedThis option is used to allocate memory. It is 1 if the boot This option enables your user-written I/O drivers if youISBC 80/20-4 Generating a PROM-Based RMX/80 BASIC-80 Prom F1 RMX820.L1BSTART, & FOBASCM.OBJ,& FORMXBAS.LlB F1 DFSDIR. L1BDIRECTORY ,RENAM E,& F1 MTI810.L1B Configuration Requirements Configuring DFS on an iSBC 80/10Adding BASIC-SO to an Existing RMX/SO Configuration ISBC SO/10 System ClockPublic Variables Adding User-Written I/O Drivers to RMX/SO BASIC-SO Open 0,#1, L1LlSTFigure F-S. Sample User-Written 1/0 Driver Routine Altering BASIC-80 Workspace Burning a BASIC-80 Program Into PromBaprom F1HEATER.BAS Page Index Ase BASIC-80 RIGHT$,7-1O Request for Readerscomments 111111