EasyManua.ls Logo

Sinclair QL - Page 169

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PAUSE
PAUSE
will
cause a program
to
wait
a specified period
of
time.
Delays
are
specified
in
units
of
20ms
in
the
UK
only,
otherwise
16.67ms.
If
no
delay
is
specified then the
program
will
pause Indefinitely. Keyboard input
will
terminate the
PAUSE
and
restart
program execution.
[wait 1 secondj
[wait
10
secondsj
syntax:
example:
delay:
~
numeric_expression
PAUSE
[delay]
I.
PAUSE
50
Ii.
PAUSE
500
syntax:
PEEK
is
a function which returns
the
contents
of
the specified memory location.
PEEK
has
three forms which
will
access a byte
(8
bits),
a word
(16
bitS),
or a long word
(32
bits).
address: = numeric_expression
PEEK(address)
[byte
accessJ
PEEK.-
W(address) [word access]
PEEK.-L(address) [long word
accessJ
example:
I.
PRINT PEEK(12245) [byte contents of location
12245]
ii.
PRINT
PEEK
W(12) [word contents of locations
12
and
13J
iii.
PRINT
PEEK-L(1000l
[long word contents
of
location
1000J
warning
For
word and long word access
the
specified address must be
an
even
address.
PEEK
PEEILW
PEEILL
BASIC
42
12/84

Other manuals for Sinclair QL

Related product manuals