Or - AMSTRAD cpc 6128 User Instruction

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

Advertisement

OR
<argument> 0 R <argument>
IF
"aLan"<"bob" OR "dog">"cat" THEN PRINT "correct" ELSE PRINT "wrong"
correct
IF "bob"<"aLan" OR "cat">"dog" THEN PRINT "correct" ELSE PRINT "wrong"
wrong
IF
"aLan"<"bob" OR "cat">"dog" THEN PRINT "correct" ELSE PRINT "wrong"
correct
PRINT
OR
1
PRINT 0 OR 0
0
PRINT
OR 0
1
OPERATOR: Performs bit-wise boolean operation on integers. Result is 1 unless both
argument bits are 0.
Further information concerning logic will be found in part 2 of the chapter entitled
'At your leisure .... '.
Associated keywords:
AND, NOT,
X 0
R
ORIGIN
OR I GIN <x>, <y>[, <left>, <right>, <top>, <bottom>]
10 MODE 1:BORDER 13:TAG
20 ORIGIN 0,0,100,540,300,100
30 GRAPHICS PAPER 3:CLG
40 FOR x=550 TO -310 STEP -10
50 MOVE x,206
60 PRINT "This is a graphics window";
70 FRAME:NEXT:GOTO 40
run
COMMAND: Sets the graphics origin points 0,0 to the position specified by the
co-ordinates <x> and <y>.
A graphics window's dimensions may also be set by specifying the last four optional
parameters. If the co-ordinates specified for the graphics window describe points
beyond the edge of screen, then the edge of the graphics window is taken as edge of
screen.
Associated keywords: C L G
Chapter 3 Page 54
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents