Step; Stop; Str$ - AMSTRAD cpc 6128 User Instruction

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

Advertisement

STEP
(See FOR)
STOP
STOP
10 FOR n=1 TO 30:PRINT n:NEXT
20 STOP
30 FOR n=31 TO 60:PRINT n:NEXT
run
cont
COMMAND: Stops execution of a program, but leaves BASIC in a state where the
program can be resumed by the CON T command. S TOP may be used to interrupt the
program at a particular point when de-bugging.
Associated keywords: CON T, END
STR$
S T R
$ (
<numeric expression> )
10 a=&FF :REM 255 hex
20 b=&X1111 :REM 15 binary
30 c$="***"
40 PRINT c$+STR$(a+b)+c$
run
*** 270***
FUNCTION: Converts the <numeric expression> to a decimal STRing representa-
tion.
Associated keywords: BIN $, D E C $, HEX $, V A L
Chapter 3 Page 78
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents