Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 95

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

TRS-80
MODEL
III
DISK
SYSTEM
^*iil!iM^^
'
:
""--
'""'"
'"
'.™^
(fcfcfcfis
a
1
to
4
digit
sequence composed
of
hexadecimal numerals
I$|ffl^
&oddddd=&ddddd.
The
constants
always
represent signed
integers.
Therefore
any hex
number
greater
than &H7FFF, or
any
octal
number
greater
than &077777,
will
be
interpreted as
a negative
quantity.
The
following
table
illustrates
this:
Octal
Hex
Decimal
&1
&H1
1
&2
&H2
2
&77777
&H7FFF
32767
&
100000
&H8000
-32768
&1 00001
&H8001
-32767
&1
00002
&H8002
-32766
&
177776
&HFFFE
-2
&
177777
&HFFFF
-1
Hex
and
octal
constants
cannot be typed
in as
responses
to
an input
prompt
or
be
contained
in
a
data
statement.
Often
the
hex
or
octal
constant
must be
enclosed
in
parentheses
to
prevent
a
syntax
error
from
occurring.
Examples
PRINT &H5200, &O51000
prints
the
decimal
equivalent of
the
two
constants (both equal 20992).
POKE
&H3C00,
42
puts
decimal
42
(ascii
code
for
an
asterisk) into
video
memory
address
hex
3C00.
94

Advertisement

loading