A
ll
and more about Sharp PC-1500
at
http://www.PC-1500.info
H.
HEXADECIMAL
Numbers and Boolean Functions
H.1. Hexadecimal Numbers
The
PC·1500 provides the capabi
lity
to
use
a h exadecimal
(base
16) number
within
any
cxpre"
sion
in
which a decimal number may
b-e
use
d.
Hexadecimal numbers
arc
distingui
she
d frorn
decimal
nu
mbers
by
preceding them
with
an & {ampersand). The
fo
llo
o,.ving
a
re
exa1nplcs
of
valid
hexadecimal
numbers:
&16
&F
&7ECA
&08
&99A
&- 5B
Hex
ad
ecimal numbe1s
may
be
used
in calculations:
10 +
&A
l
<•T<A
)
A:
UN
Or
.....
ithin programs:
Progra
rn:
35
GPRINT
&F,
54,
&3E
40
DATA
67, &7F, &26. 1
2,
305
H.2.
AND
FunC1ion
The
AND
function provides a boolean
AND
of the internal representation
of
t\vo
values
. The
values
must
be
in
the
range
- 32768 through 32767. Numbers which exc
eed
this
ran
ge
will
cause
an
ERRO
R
19.
Exampl
e:
Result:
10
AND
&F
1 0
1
ANO
0
0
- 1
AND
1
55
AINO
64
0
16
AND
63
1 6
98
Do
not sale this PDF
!!!