Sharp mz-3500 Manual For Use page 296

Business computer eos 3.0
Hide thumbs Also See for mz-3500:
Table of Contents

Advertisement

Section B:
Hardware interface
************************************************************************
*
*
*
22 - Check Drive Ready
*
*
*
************************************************************************
On entry:
On exit :
c
H
L
Drive Number, 0 to 15
Bit Vector
0 or 0FFH
The
drive
specified
by
the number passed in
register
C
is
whether it is ready for 1/0. A value of
0
denotes drive A, a
B and so on up to 15 for drive P.
checked
1
drive
If the drive is ready,
L is set to 0FFH and H contains a bit vector
as
explained below:
Bit 7
Bit 6
Data carrier of that drive is not removable
Drive contains a two-sided floppy disk.
A zero value in L denotes that the drive is not ready; in this case, the
contents of H are meaningless.
Example:
See if drive B is ready
LD
LD
CALL
XOR
OR
JP
PARAMS:
DB
DB
DW
DW
DW
EOS System manual
C,50
DE,PARAMS
5
A
L
NZ,READY
22
~
'B'-'A'
~
~
EOS function code
Parameters
Call EOS to execute function
Hardware function No.
Drive B
Daeumling & Zimmermann
Page 158

Advertisement

Chapters

Table of Contents
loading

Table of Contents