Odos
will
reschedule
the
system
automatically
at
a
rate
related
to
the
50 Hz frame
rate.
•
The
system
will
also
be
rescheduled
after
certain
system
calls.
example:
This
program generates
an
on-screen readout
of
the real-time clock,
running
as
an
Independent
Job.
First
RUN
this
program with a formatted cartndge
in
mlcrodnve
2,
This
generates a machine code
title
called
'Clock':
Walt
for
the
Mlcrodnve
to
stop,
Next,
set
the clock using
the
SDATE
command.
Then type
EXEC
mdv2
cLock
and a continuous time display
will
appear
at
the top
nght
of
the
command
window.
42
100 c=RESPR(100)
110
FOR
;=0
TO
68
STEP
2
120
READ
x:POKE_W
;+c,x
130
END
FOR
i
140
SEXEC
mdv2
clock,c,100,256
1000
DATA
29439~29697,28683,20033,17402
1010
DATA
48,13944,200,20115,12040
1020
DATA
28691,20033,17402,74,-27698
1030
DATA
13944,236,20115,8279,-11314
1040
DATA
13944,208,20115,16961,16962
1050
DATA
30463,28688,20035,24794
1060
DATA
0,7,240,10,272,200
N.B.
line
1060
governs
the
position and colour
of
the
clock window -
the
data Items
are,
in
order:
border colour/width, paper/ink
colour,
window width, height, x-ongln, y-origin
These are pairs
of
bytes,
entered by
POKE_Was
words.
The
x-ongin
and
the
y-origin
(the
last
data
item)
should be
272
and 202
In
monitor mode,
or
240
and
216
in
TV
mode.
Generate the paper and 'nk
word,
for
example,
as
256 * paper +
Ink,
Thus
white
paper,
red
Ink
is
256 * 7 + 2 =
1794.
12/84
•
•
•