EasyManua.ls Logo

Epson PX-8 - Page 154

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...
B24A
B24C
B24D
B24E
B24F
B24F
B251
B254
B257
B25A
B25D
B25F
B26l
B264
B266
B269
B26C
B26E
B27l
B274
B27S
B275
8277
MACRO-SO
3.44
3E
72
S5
6F
E9
3E
CO
32
B322
21
8322
11
B323
01
0019
ED
BO
OE
OD
CD
0005
OE
lA
11
B295
CD
0005
OE
OF
11
8316
CD
0005
C9
OE
14
11
B316
09-Dec-81
PA6E
1-2
address
can
be
calculated
LD
A.072H
Set
the
SLAVE
BIOS
call's
offset
frol
WBOOT
ADD
A.L
And
calculate the
SLAVE
calls'
actual
address
LD
LA
Move
the calculated address
to execute the call
JP
IHLI
Execute
the
SLAVE
BIOS
call
~
return
fro.
this
subroutine.
;
fff****Hff****HHHHHffHlifffHfHHffffffffflHffffHffHfffffffff
;f
f
;f
Subroutine
Open
the
file
VRAMDATA.DAT
fro.
which
;f
to
load
the screen data
fro.
the
di
sk.
;'
It
takes
up
3.75Kb.
;<
;
ffffff*ffffflllUffflfffllffffffffffffftffffffltlHflllftfUfffflfflllff
OPEN:
LD
A,OO
Zero
the
first
bvte after the fi Ie tvpe
LD
IFCBADR+121,A
in
the
FCB
for safetv's
sake
LD
HL.
FCBADR+
12
Set
up
the source location to
zero
the
the
rest
01
the
FCB
LD
DE.FCBADR+13
Set
up
the destination address to zero
the rest
of
the
FCB
LD
BC,25
Set
up
the
nUlber
of
bvtes to
be
zero
LDIR
And
set the. tp
zero
using
a ripple effect
LD
C.13
Set
up'
the
BDOS
function
code
that perf oriS
CALL
BDOS
the
'RESET'
of
the
di
sks.
i.e.
sets
all
of
the disks to a
RIN
status
and
sets the
DMA
default address to
OOBOH
~
execute
it.
LD
C,26
Set
up
the
BDOS
function
code
that sets the
D"A
address.
LD
DE.D"ABUF
Set
up
the
DMA
buffer address
CALL
BDOS
And
go
and
set the
DMA
address
LD
C.15
Set
up
the
BDOS
function
code
that will
open
the
file
'VRA"DATA.DAT'.
LD
DE.FCBADR
Set
up
the
FCB
address
CALL
BDOS
60
and
trv to
open
the fi Ie.
RET
And
return to the
uin
oroora.
which
will
deal
wi
th
anv
errors that .av occur.
:
fff****IHfHHfffl******ffHfffHHfHfHfffH****fffffffftffHfffffIH
;f
:f
Subroutine
Read
the data blocf
which
is
going
to
be
written
;f
to the
screen
fro.
the
file
called
VRA"DATA.DAT.
:f
~
ffffffffHffflflfffffflHffffffflfffHfffflflffffffffffffffflfffffffffff
READ:
LD
C.20
LD
DE
.FC8ADR
H-13
Set
up
the
BDOS
function
code
that will
read
the data
fro.
the
next
record
of
the
file
into the
DHA
buffer.
Set
up
the
FCB
address
tT~
e
~
r~
c r
,~
MACRO-SO
3.44
09-Dec-81
PAGE
1-3
.,
r~
B27A
CD
0005
CALL
BDOS
60
and
read
the data
J
r~
B27D
C9
RET
And
return to the lain
orogra
~r~
;
fffHfffffUHfHfUfflHfffftffflnfUfff,UHftfflfffftlffffffffftfHI
.JI
r'~
;'
;f
Subroutine
Close
the
file
VRAMDATA.DAT
which
;f
contains the screen data.
~}
r~
If
~
~
;
flHfffHUfffnfffUlfffflffHffffltfffUffnfiffffflffffflfffffffffflf
B27E
CLOSE:
el~
B27E
OE
10
LD
C.16
Set
the
BDOS
function
code
that
closes
a
file.
B2BO
11
B316
LD
DE.FCBADR
Set
up
the
FCB
address
e
l
-,
B2B3
CD
0005
CALL
BDOS
60
and
close the
file
'VRAMDATA.DAT·
B2B6
C9
RET
And
return to the
.ain
progr
...
I
CI~
;
,fflfffffllfffff,fUffftfffftffffffffUfffflffilffUfttfffffffHfffflfff
~I~
;f
f
;*
Data
storage for all variables
needed
bv
the
prograo
~I~
;f
;
fffttHlfftfffflffftfUffHfffHffffflflfffffllfffftttffffftffffffffffff
B2B7
PACKET:
Slave
CPU's
cOI.unications
packet
~
L~
B2B7
B2BF
DN
SNDPKT
Address
of
the
packet
that will
be
sent
to
the sl
ave
CPU
'J
l
~
B2B9
007E
DW
126
Size
of
the packet that will
be
sent
to the slave
CPU
~
B2BB
B3l5
DN
RCVPKT
Address
of
the
packet
expected
~)
back
frol the slave
CPU
L~
B2BD
0001
DN
Size
of
the packet
expected
to
~
be
returned
fro.
the slave
CPU
L~
B28F
SNDPKT:
Actual
packet
to
be
sent to the slave
e
CPU.
It
includes
both
the
cOlland
and
anv
para.eters that are required
L~
B2BF
25
DB
02SH
Slave
cOlland
code
that sets the
~
graphic screens contents.
--
L~
8290
00
ICOORD,
DB
OOH
Starting I coordinate frol
which
tJI»:
to
read
the data
8291
00
YCOORD:
DB
OOH
Starting Y coordinate frol
which
l~
to
read
the data
-
B292
3C
DB
60
NUlber
of
bytes to
be
set
L~
in
the I direction
,....
B293
02
DB
NUlber
of
bytes to
be
set
.
.///
I~
in
the Y direction
8294
00
DB
I/IIIA
B295
DMA8UF:
OS
12B
Space
allocated
for
the receipt
of
the
-/
I~
screen data
and
for the
DMA
buffer.
-,
8315
RCVPKT,
Packet
returned frol the slave
CPU
"'$
l~
once
the cOlund
has
been
executed.
B31S
00
DB
OOH
Return
code
that indicates the success
'Q/
of
the execution
of
the
cOlland
I~
B316
FCBADR:
Fi
Ie
control
block
IFCBI
work
area
8316
00
DB
OOH
Drive
code
in
this case the currentlv
~
L~
'~
H-14
~~
,-
V/

Other manuals for Epson PX-8

Related product manuals