EasyManua.ls Logo

Epson PX-8 - Page 150

Epson PX-8
168 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...
As
an
illustration
of
the use
of
the routine,
and
because the battery could vary
in voltage, lines 4280 to 4320 will show the variation
of
the voltage as the resis-
tor
spindle is turned, from zero
up
to
the maximum value. A value
of
63
will
denote 2.0 volts. Since the battery voltage in the diagram is 1.5 volts, the maxi-
mum
value obtained will be in either 46
or
47.
H-5
~T~
e
G
~
r "
~1~
·r~
~I~
~
r '
~I
~
;)/
I
~~
e
~
~
I ,
'-
I
e
I'
e I
~
C
1
?
~'I
-J
~!
1
~
'I, 1 .,
~
~
d
I,'
~
::
I'
:
y/
...
' I
~
..",/'
I
~~
'~
~I~
::
I)
:: I
.~
'#./!
I,
'IjI) l
..
~~
'#1)
L~
'IV
L""
'II)
""
H-2. Saving and loading the graphics screen from disk.
The following two listings show heavily commented programs written with the
MACRO-80 assembler in Z-80 code. The comments should be sufficient for
an
assembler programmer
to
follow, although they may require the OS Refer-
ence Manual
or
the Technical Reference Manual for further details
of
the use
of
the slave processor.
For
those users wishing
to
enter the programs, use either the MACRO-80 as-
sembler,
or
the dumps
at
the end
of
the listings together with the pertinent in-
structions. A BASIC listing
is
given as
an
example
to
show how such programs
can be used with BASIC.
0001
0005
F2C9
F3SB
0000'
0003'
0006'
0009'
ooOB'
HACRO-SO
3.
44
09~Oec~81
PAGE
21
OOOE
11
B400
01
014E
ED
80
C3
0000
:
*HiiHiifH*iHtffH***fHH**HHi*HHfffffHfHHHffffHHfHffHff
:*
f
;<
Prooralft
Save
the praphic
5creen
to the currentlv
:<
lopped
in
drive to
file
'VRAHDATA.
OAT'
:<
SV5te.
PH
:f
CDnfi~uration
9
Kb
RAM
disk & 0
paoe
USERBIOS
size
;<
LaoQuage
lilog
lBO
oneoonic
code
:'
Ref
DCEm
:'
Date
JAN-B4
:<
;
HUffflUHfHUfnHHUHfffHfHUfHHHfflfUHHIfHlfffffHfffff
.1BO
;
ffffHfHffffffHfflHfffH**HHfHffHffHfHHffHfffffffffffflfffffl
:*
f
;< Slandard
CP/M
&
PI~B
equates.
;<
;
ffftffffff.ffffflfffffffffffflfftlffffflftfffftlfftfffffffflf'Hffffffff
BIOS
EQU
OOOIH
; Pointer to
NBOOT
address
BOOS
EQU
OOOSH
;
BOOS
function
di
spatch
jUlP
vector
SCRMOOE
EQU
OF2C9H
;
Poi
nter to the address that
hoi
ds
the
:
current
screen
lode.
SLVFLG
EQU
OF35BH
;
Slave
co
••
unications enable flag.
;
ffffffflftftftfftffffflflfftflffflflffffffff"Ulflffffffflflfflflffffll
;1
f
:*
Reiocator to love the lain progra.
up
to
OB400H
*
;*
;
flffffflfllfffffffflllfflfllfHlffflffllflflffflffftffffttftlffffffffffl
LD
HL
,SOURCE
Set
up
the oriQin address
LD
DE.DEST
Set
Destination address
LD
BC,LEN
Set
up
the
lenQth
of
the
pro~ral
LDIR
And
love the progra ••
JP
OOOOH
Exit
back
to
CP/M
H-6

Other manuals for Epson PX-8

Related product manuals