1 | ; Project name : XTIDE Universal BIOS
|
---|
2 | ; Description : Int 13h function AH=1Eh, Lo-tech XT-CF features.
|
---|
3 |
|
---|
4 | ;
|
---|
5 | ; XTIDE Universal BIOS and Associated Tools
|
---|
6 | ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
|
---|
7 | ;
|
---|
8 | ; This program is free software; you can redistribute it and/or modify
|
---|
9 | ; it under the terms of the GNU General Public License as published by
|
---|
10 | ; the Free Software Foundation; either version 2 of the License, or
|
---|
11 | ; (at your option) any later version.
|
---|
12 | ;
|
---|
13 | ; This program is distributed in the hope that it will be useful,
|
---|
14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | ; GNU General Public License for more details.
|
---|
17 | ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
---|
18 | ;
|
---|
19 |
|
---|
20 | ; Section containing code
|
---|
21 | SECTION .text
|
---|
22 |
|
---|
23 | ;--------------------------------------------------------------------
|
---|
24 | ; Int 13h function AH=1Eh, Lo-tech XT-CF features.
|
---|
25 | ; This function is supported only by XTIDE Universal BIOS.
|
---|
26 | ;
|
---|
27 | ; AH1Eh_HandlerForXTCFfeatures
|
---|
28 | ; Parameters:
|
---|
29 | ; AL, CX: Same as in INTPACK
|
---|
30 | ; DL: Translated Drive number
|
---|
31 | ; DS:DI: Ptr to DPT (in RAMVARS segment)
|
---|
32 | ; SS:BP: Ptr to IDEPACK
|
---|
33 | ; Parameters on INTPACK:
|
---|
34 | ; AL: XT-CF subcommand (see XTCF.inc for more info)
|
---|
35 | ; Returns with INTPACK:
|
---|
36 | ; AH: Int 13h return status
|
---|
37 | ; CF: 0 if successful, 1 if error
|
---|
38 | ;--------------------------------------------------------------------
|
---|
39 | AH1Eh_HandlerForXTCFfeatures:
|
---|
40 | eMOVZX bx, al ; Subcommand to BX
|
---|
41 | %ifndef USE_186
|
---|
42 | call AH1Eh_ProcessXTCFsubcommandFromBX
|
---|
43 | jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
|
---|
44 | %else
|
---|
45 | push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
|
---|
46 | ; Fall to AH1Eh_ProcessXTCFsubcommandFromBX
|
---|
47 | %endif
|
---|
48 |
|
---|
49 |
|
---|
50 | ;--------------------------------------------------------------------
|
---|
51 | ; AH1Eh_ProcessXTCFsubcommandFromBX
|
---|
52 | ; Parameters:
|
---|
53 | ; BX: XT-CF subcommand (see XTCF.inc for more info)
|
---|
54 | ; DS:DI: Ptr to DPT (in RAMVARS segment)
|
---|
55 | ; SS:BP: Ptr to IDEPACK
|
---|
56 | ; Returns:
|
---|
57 | ; AH: Int 13h return status
|
---|
58 | ; CF: 0 if successful, 1 if error
|
---|
59 | ; Corrupts registers:
|
---|
60 | ; AL, BX, CX, DX
|
---|
61 | ;--------------------------------------------------------------------
|
---|
62 | AH1Eh_ProcessXTCFsubcommandFromBX:
|
---|