forked from NEO-SPECTRUMAN/SpecEmu
-
Notifications
You must be signed in to change notification settings - Fork 3
/
atapi.inc
139 lines (109 loc) · 4.83 KB
/
atapi.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
IDE_Initialise macro
call [fIDE_Initialise]
endm
IDE_ShutDown macro lpIDEHandle
push lpIDEHandle
call [fIDE_ShutDown]
endm
IDE_SelectHDF macro lpIDEHandle, IDEUnitNumber, lpFileName
push lpFileName
push IDEUnitNumber
push lpIDEHandle
call [fIDE_SelectHDF]
endm
IDE_CloseHDFFile macro lpIDEHandle, IDEUnitNumber
push IDEUnitNumber
push lpIDEHandle
call [fIDE_CloseHDFFile]
endm
IDE_CloseHDFFiles macro lpIDEHandle
push lpIDEHandle
call [fIDE_CloseHDFFiles]
endm
IDE_HardwareReset macro lpIDEHandle
push lpIDEHandle
call [fIDE_HardwareReset]
endm
IDE_WriteCommand macro lpIDEHandle, CmdByte
push CmdByte
push lpIDEHandle
call [fIDE_WriteCommand]
endm
IDE_WriteData macro lpIDEHandle, DataByte
push DataByte
push lpIDEHandle
call [fIDE_WriteData]
endm
IDE_WriteFeature macro lpIDEHandle, ArgByte
push ArgByte
push lpIDEHandle
call [fIDE_WriteFeature]
endm
IDE_WriteSectorCount macro lpIDEHandle, DataByte
push DataByte
push lpIDEHandle
call [fIDE_WriteSectorCount]
endm
IDE_WriteSectorNumber macro lpIDEHandle, DataByte
push DataByte
push lpIDEHandle
call [fIDE_WriteSectorNumber]
endm
IDE_WriteCylinderLow macro lpIDEHandle, DataByte
push DataByte
push lpIDEHandle
call [fIDE_WriteCylinderLow]
endm
IDE_WriteCylinderHigh macro lpIDEHandle, DataByte
push DataByte
push lpIDEHandle
call [fIDE_WriteCylinderHigh]
endm
IDE_WriteDrive_Head macro lpIDEHandle, DataByte
push DataByte
push lpIDEHandle
call [fIDE_WriteDrive_Head]
endm
IDE_ReadData macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadData]
endm
IDE_ReadError macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadError]
endm
IDE_ReadSectorCount macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadSectorCount]
endm
IDE_ReadSectorNumber macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadSectorNumber]
endm
IDE_ReadCylinderLow macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadCylinderLow]
endm
IDE_ReadCylinderHigh macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadCylinderHigh]
endm
IDE_ReadDrive_Head macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadDrive_Head]
endm
IDE_ReadStatus macro lpIDEHandle
push lpIDEHandle
call [fIDE_ReadStatus]
endm
IDE_GetHDFSectorSize macro lpIDEHandle, IDEUnitNumber
push IDEUnitNumber
push lpIDEHandle
call [fIDE_GetHDFSectorSize]
endm
IDE_SetHDFAccessSize macro lpIDEHandle, IDEUnitNumber, AccessSize
push AccessSize
push IDEUnitNumber
push lpIDEHandle
call [fIDE_SetHDFAccessSize]
endm