IBM 5110 Basic Reference Manual
| Brand: | IBM |
| Category: | Desktop |
| Model: | 5110 (Basic Reference Manual) |
| File Type: | |
| File Size: | — |
| Pages: | 255 |
Text of IBM 5110 Basic Reference Manual
IBM 5110 - - ---
- ---
- - ---
- - - ---
-----
--_ .-
o
,...
IBM 5110
Basic Reference ,Manual
,...
It)
This manual contains specific information about the IBM
5110 Computer and its BASIC programming capability.
Related Publications
IBM 5110 BASIC User's Guide, SA21-9307
Preface
Prerequisite Publication
IBM 5110 BASIC Reference Handbook, GX21-9309
IBM 5110 Customer Support Functions Reference
Manual, SA21-9311
IBM 5110 BASIC Introduction, SA21-9306
First Edition (January 1978)
Changes are continually made to the specifications herein; any such changes will
b
IBM 5110 CHAPTER 1. OPERATION
Arrays .
61
IBM 5110 Overview
Declaring Arrays
62
C~_)
Display Screen
2
Redimensioning Arrays
63
Keyboard
3
Arithmetic Arrays .
63
Special Keys .
7
Character Arrays
64
Switches.
9
Summary of Naming Conventions
64
Indicators
9
System Functions .
65
Editing Input Lines
10
Expressions
67
Storage Capacity
11
Arithmetic Expressions and Operators.
67
C)
Character Expressions
70
CHAPTER 2. SYSTEM CO
[MAT] PRINT USING and Image/FORM . . . . . .
Conversion of Data Reference Values with Image
Format Specifications
[MAT] PUT .. .
[MAT] READ ... .
[MAT] READ FILE. .
[MAT] REREAD FILE
REM
RESET [FILE]
RESTORE
.
RETURN ..
[MAT] REWRITE FILE
STOP ..... .
USE ...... .
[MAT] WRITE FILE
Matrix Operations.
MAT Assignment Statements
MAT Assignment (Scalar Value)
MAT Assignment (Simple) ...
MAT Assignment (Addition and Subtraction)
MAT Assignment (Matrix Multiplica
Chapter 1. Operation
IBM 5110 OVERVIEW
... _.'--_. ,-----
The IBM 5110 Model 1 (Figure 1) is a computer designed for direct l;Ise by the
user for solving problems. The 5110 Model 1 has a display screen, a
combined alphameric and numeric keyboard, a tape unit, switches, and
indicator lights. The 5110 Model 2 is identical to Model 1 except that it has
no built-in tape unit. The display screen and indicator lights communicate
information to the user
IBM 5110 The display screen (Figure 2) can display 16 lines of data at a time, with up to
64 characters in each line. Input data (information supplied by the user) as well
as output data (processed information) is displayed. The bottom line contains
status information. The number in the lower right (NNNNN) indicates the
number of character positions (bytes) in storage available to the user.
Line 1 (input line) contains information entered from the
IBM 5110 .. --_. __ ._. __ .-_ .... _ ...
KEYBOARD
The APL/BASIC system keyboard (Figure 3) combines alphameric and numeric
characters. The keyboard provides two modes of character keying selection:
standard BASIC character mode and lowercase character mode. When you
turn the system power on, you are in standard BASIC character mode. In
standard BASIC character mode, you can enter uppercase alphameric
characters (without using the shift key
The following examples show the use of standard BASIC character mode and
lowercase character mode.
In standard BASIC mode, press:
to enter the character K.
to enter the charaacter ' (single quotation mark).
to enter the keyword PAUSE.
In lowercase character mode, press:
to enter the character k.
to enter the character K.
to enter the character' (single quotation mark).
Note: All the examples in this manual are in standard BASIC character mode.
\.
/"-
...
You can enter numeric data conveniently by using the calculator arrangement of numeric
keys to the right of the alphameric keys. You can also enter this data by using the
numeric keys above the alphameric keys. The arithmetic operator keys, located on the
right of the keyboard, are also on the alphameric keys.
Note that on a BASIC-only keyboard (Figure 4) upper shift APL symbols above the
alphameric characters can be entered as data, even though they
CD CD CD CD OJ CD CD OJ CD OJ CJ CD •• ••• D"
QJCDCDCDCDCO(I)OJCDCD~O
CJGJ80
CO CO CD GJ CD CD CJ [J (I) CD OJ CD
[J GJ GJ [?-
_
GJCDCIJwCDCDITJ[]CJCDCIJ _
OCJD 0
(
0 )0 []
Figure 3. Combined BASI,C/ APL Keyboard
[] [J CD CD OJ CD CD OJ GJ [J CJ 0 •• ••• .:---~:
CD GJGJGJ GJCOGJCJGJCDOO
CJGJ8 CJ
~
-
Q GJ [J GJ GJ GJ [J [J [J CD OJ CD
[J GJ GJ 0
-
GJGJGJGJGJGJITJ[]CJQCIJ _
OCJD 0
(
(
0 )0 []
Figure 4. BASIC-Only Keyboard
'-
6