Xor - AMSTRAD cpc 6128 User Instruction

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

Advertisement

In this example the values of the variables which you input, are written to stream
#
9
(the disc stream).
(To recall the values of those variables from disc, it would be necessary to use a
program such as follows:)
10 REM retrieve variabLes from disc
20
OPENIN "datafi Le":INPUT #9,a,a$
30
CLOSEIN:PRINT "The
2
vaLues are:"
40 PRINT:PRINT a,a$
run
Associatedkeywords: IN PUT, L IN E I N PUT
XOR
<argument> X 0 R <argument>
IF "aLan"<"bob" XOR "dog">"cat" THEN PRINT "correct" ELSE PRINT "wrong"
wrong
IF "bob"<"aLan" XOR "cat">"dog" THEN PRINT "correct" ELSE PRINT "wrong"
wrong
IF "aLan"<"bob" XOR "cat">"dog" THEN PRINT "correct" ELSE PRINT "wrong"
correct
PRINT
XOR
0
PRINT
0
XOR
0
0
PRINT
XOR
0
1
OPERATOR: Performs bit-wise boolean operation on integers. Result is 1 unless both
argument bits are the same - eXclusive 0
R.
Further information concerning logic will be found in part 2 of the chapter entitled
'At your leisure .... '.
Associated keywords:
AND,
0
R, NOT
Complete List of Keywords
Chapter 3 Page 91

Advertisement

Table of Contents
loading

Table of Contents