Bin$; Border; Break - AMSTRAD cpc 6128 User Instruction

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

Advertisement

BIN$
BIN $ ( <unsigned integer expression> [, <integer expression>] )
PRINT BIN$(64,8)
01000000
FUNCTION: Produces a string of B I Nary digits representing the value of the
<unsigned integer expression>, using the number of binary digits instructed by the
second <integer expression> (in the range 0 to 16).
If
the number of digits instructed is
too great, the resulting expression will be filled with leading zeros; if the number of
digits instructed is too small, the resulting expression will NOT be shortened to the
instructed number of digits, but will be produced in as many digits as are required.
The <unsigned integer expression> to be converted into binary form must yield a value
in the range -32768 to 65535.
Associated keywords: D E C $, HEX $, S T R $
BORDER
B 0 R D E R <colour> [, <colour>]
10 REM 729 border combinations!
20 SPEED INK 5,5
30 FOR a=0 TO 26
40 FOR b=0 TO 26
50 BORDER a,b:CLS:LOCATE 14,13
60 PRINT "border";a;",";b
70 FOR t=1 TO 500
80 NEXT t,b,a
run
COMMAND: Changes the colour of the border on the screen. If two colours are
specified, the border alternates between the two at a rate determined in the S P E E D.
INK command. The range of border colours is 0 to 26.
Associated keywords: S P E E DIN K
BREAK
(See ON BREAK CONT, ON BREAK GOSUB, ON BREAK STOP)
Chapter 3 Page 6
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents