EasyManuals Logo
Home>IBM>Laptop>5100

IBM 5100 Basic Reference Manual

IBM 5100
187 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #80 background imageLoading...
Page #80 background image
76
Example
The following examples show the execution
of
GOSUB
and
RETURN statements:
50
GOSUB 100
-60-
100-
140 RETURN
80 GOSUB 150
90------,
150 -
190 GOSUB 250
200 -
...
----1--,
240
RETURN-
250-
300
RETURN--
.....
The following example
shows
a GOSUB
to
a
keys
function:
100
GOSUB
9994-
_______
LOADO,KEY4
-9994
REM
9994 PRINT
'IN
MAIN
PROGRAM'
9995 RETURN
0010 PRINT
'IN
KEYGROUP 9994'
0020 RETURN
In this example, statement 100
causes
the program
to
branch
to
the REM function
defined
for
key
4.
If
key 4
is
not defined or
is
defined
as
something other than
REM, the program
seeks
statement 9994 within the main program.
\",-

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5100 and is the answer not in the manual?

IBM 5100 Specifications

General IconGeneral
BrandIBM
Model5100
CategoryLaptop
LanguageEnglish

Related product manuals