Word And List Processing; Ascii; Bf; Char - AMSTRAD cpc 6128 User Instruction

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

Advertisement

Word and List Processing:
(N ote that prompts? and> are shown in the following examples)
ascii
Outputs the ASCII value of the first character in the input word.
bf
?asc;; "G
71
?asc;;
"g
1133
(but first) Outputs all but the first element in the input object.
bl
?bf "srn; les
m;
le s
?bf [1 2 3]
[2 3]
(but last) Outputs all but the last element in the input object.
?bl "srn; les
srn; le
?bl [1 2 3 4]
[1 2 3]
char
Outputs the character whose ASCII value is the input number.
?char 83
S
Chapter 6 Page B
Introduction to Logo

Advertisement

Table of Contents
loading

Table of Contents