Merge; Mid$ - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

MEMORY
M EM 0 R Y <address expression>
MEMORY &20AA
COMMAND: Allocates the amount of BASIC memory available by setting the
address of the highest byte.
NOTE -BASIC uses only the first 64K ofthe memory.
Associated keywords: FRE, HIMEM, SYMBOL, SYMBOL AFTER
MERGE
MER G E <filename>
MERGE "newLoad.bas"
COMMAND: Loads a program from disc, and adds it to the current program in the
memory.
Note that line numbers in the old program which exist in the new program to be
MER G E d, will be over-written by the new program lines.
Protected files, (S AV Ed by , p) can NOTbe ME RG Edinto the current program.
Associated keywords: CHAIN, CHAIN MERGE, LOAD
MID$
M ID
$ (
<string expression> , <start position>[, <sub-string length>])
10 MODE 1:Z0NE 3
20 a$="ENCYCLOPAEDIA"
30 PRINT "Show me how to speLL ";a$
40 PRINT "OK .... ":PRINT
50 FOR n=1 TO LEN(a$)
60 PRINT MID$(a$,n,1),
70 FOR t=1 TO 700:NEXT t,n
80 PRINT:PRINT
90 INPUT "Now enter another word";a$
100 GOTO 50
run
Chapter 3 Page 44
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents