(AH) =2
READ THE DES I RED SECTORS I NTO MEMORY
( ES : BX ) -
ADORES S OF BUFFER
(NOT REQU I RED FOR VER I FY )
( AH) = 3
WR I TE THE DE S I RED SECTOR S FROM MEMORY
5-23
8
9
15
9
: PARM 1 : PARM 2 :
1-1
01-10-86
DRIVE
: 320K/360K/I. 2M:
50H
: 320K/360K/l.2M:
50H
:
1.2M
:
54H
:
120K
:
50H
:
320K
:
360K
:
1.2M
:
120K
: MEDIA
:
DISKETTE '01 /1 0/86)
( AH) = 15 READ DASD TYPE
OUTPUT REG I STERS
( AH)
- ON RETURN I F CARRY FLAG NOT SET, OTHERW I SE ERROR
00 - DR I VE NOT PRESENT
o
1 -
0
I SKETTE, NO CHANGE LI NE AVA I LABLE
02 - 0 I SKETTE, CHANGE LI NE AVA I LABLE
03 - RESERVED
( DL ) - DR I VE NUMBER
(0 - 1 ALLOWED, VALUE CHECKED)
NOTES: - PARM
I
= GAP LENGTH FOR FORMAT
- PARM 2 = EOT (LAST SECTOR ON TRACK)
- DISK BASE: IS POINTED TO BY DISK POINTER LOCATED
AT ABSOLUTE ADDRESS 0 :18H.
- WHEN FORMAT OPERATIONS ARE COMPLETE, THE PARAMETERS
SHOULD BE RESTORED TO THE I R RESPECT I VE I NIT I AL VALUES.
(AH) =8
READ DR I VE PARAMETERS
REGI STERS
INPUT
( DL ) - DR I VE NUMBER
(0 - 1 ALLOWED, VALUE CHECKED)
OUTPUT
(ES:DI) POINTS TO DRIVE PARAMETERS TABLE
(CH)
- LOW ORDER 8 OF lOB I TS MAX I MUM NUMBER OF TRACKS
(CL)
- BITS 1
&
6 - HIGH ORDER TWO BITS OF MAXIMUM TRACKS
- BITS 5 THRU 0 - MAX I MUM SECTORS PER TRACK
( DH)
- MAX I MUM HEAD NUMBER
(DL)
- NUMBER OF DISKETTE DRIVES INSTALLED
(BH)
-
0
( BLl
- BITS 1 THRU 4 - 0
BITS 3 THRU 0 - VALID DRIVE TYPE VALUE IN CMOS
(AX)
-
0
UNDER THE FOLLOW I NG CIRCUMSTANCES:
( 1) THE DR I VE NUMBER I S I NVALI
0 ,
( 2 ) THE DR I VE TYPE I S UNKNOWN AND CMOS I S NOT PRESENT,
( 3)
THE DR I VE TYPE I S UNKNOWN AND CMOS I S BAD,
( 4)
OR THE DR I VE TYPE I S UNKNOWN AND THE CMOS DR I VE TYPE I S I NVAL I 0
THEN ES,AX,BX,CX,DH,DI=O ; DL=NUMBER OF DRIVES.
IF NO DRIVES ARE PRESENT THEN: ES,AX,BX,CX,DX,DI=O.
ODSKETTE_STATUS = 0 AND CY I S RESET.
(AH) =4
VER I FY THE DES I RED SECTORS
(AH)=O
RESET DISKETTE SYSTEM
HARD RESET TO NEC, PREPARE COMMAND, RECAL I BRATE REQU I RED
ON ALL DR I VES
(AH)=5
FORMAT THE DESIRED TRACK
(ES:BX) MUST POINT TO THE COLLECTION OF DESIRED ADDRESS FIELDS
FOR THE TRACK.
EACH FIELD IS COMPOSED OF 4 BYTES,
(C,H,R,N),
WHERE C = TRACK NUMBER, H=HEAD NUMBER, R = SECTOR NUMBER,
N= NUMBER OF BYTES PER SECTOR
(00= 128, 01 =256, 02=512, 03= 1024) •
THERE MUST BE ONE ENTRY FOR EVERY SECTOR ON THE TRACK.
THIS INFORMATION IS USED TO FIND THE REQUESTED SECTOR DURING
READ/WRITE ACCESS.
PR I OR TO FORMA TTl NG A 0 I SKETTE ,
I F THERE EX 1ST S MORE THAN
ONE 'SUPPORTED MEDIA FORMAT TYPE WITHIN THE DRIVE IN QUESTION,
THEN "SET DASD TYPE"
(INT 13H, AH = 11H) OR "SET MEDIA TYPE"
( I NT 13H, AH = 18H) MUST BE CALLED TO SET THE
0
I SKETTE TYPE
THAT IS TO BE FORMATED.
IF "SET DASD TYPE" OR "SET MEDIA TYPE"
I S NOT CALLED, THE FORMAT ROUT I NE WILL ASSUME THE MED I A FORMAT
TO BE THE MAX I MUM CAPAC I TY OF THE DR I VE.
THESE PARAMETERS OF 0 I SK BASE MUST BE CHANGED I N ORDER TO
FORMAT THE FOLLOWING MEDIAS:
(AH)=1
READ THE STATUS OF THE SYSTEM INTO (AH)
ODISKETTE_STATUS FROM LAST OPERATION IS USED
;------
-~~~~~~~~~
-
;~~
-
~~~~ I;~~ ~~I ~~~ ~;; I;~~~~~
---------------------------------
;
( DLl
- DR I VE NUMBER (0 - 1 ALLOWED, VALUE CHECKED)
;
( DH ) - HEAD NUMBER (0 - 1 ALLOWED, NOT VALUE CHECKED)
;
( CH)
- TRACK NUMBER (NOT VALUE CHECKED)
;
MED I A
DR I VE
TRACK NUMBER
;
320/360
320/360
0-39
;
320/360
1.2M
0-39
;
1.2M
1.2M
0-19
•
120K
120K
0-19
( CL ) -
SECTOR NUMBER (NOT VALUE CHECKED, NOT USED FOR FORMAT)
MED I A
DR I VE
SECTOR NUMBER
320/360
320/360
1-8/9
320/360
1.2M
1-8/9
1 .2M
1 .2M
1- 15
120K
120K
1-9
(ALl
- NUMBER OF SECTORS (NOT VALUE CHECKED)
MED I A
DR I VE
MAX NUMBER OF SECTORS
320/360
320/360
8/9
320/360
1.2M
8/9
1.2M
1.2M
15
120K
120K
9
PAGE 1 18, 121
TITLE DSKETTE - -
0
I
I
10/86
0
I SKETTE ADAPTER B I OS
.LIST
; --
I NT 13 -------------------------------------------------------------------
DISKETTE
1/0
THIS INTERFACE PROVIDES DISK ACCESS TO THE 5.25 INCH 360 KB,
;
INPUT 1.2MB, AND 120 KB 80 TRACK 0 I SKETTE DR I VES.
1
2
3
4
5
6
1
8
9
10
11
12
13
14
15
16
11
18
19
20
21
22
23
24
25
26
21
28
29
30
31
32
33
34
35
36
31
38
39
40
41
42
43
44
45
46
41
48
49
50
51
52
53
54
55
56
51
58
59
60
61
62
63
64
65
66
61
68
69
10
11
12
13
14
15
16
11
18
19
80
81
82
83
84
85
86
81
88
89
90
91
92
93
94
95
96
91
98
99
100
101
102
103
104
105
106
101
108
109
110
III
112
113
114
I BM Persona I Computer MACRO Assemb I er
Vers
i
on 2.00
DSKETTE - -
0 111 0/86
0 I SKETTE ADAPTER B I OS