Line | |
---|
1 | ; File name : AH10h_HReady.asm
|
---|
2 | ; Project name : IDE BIOS
|
---|
3 | ; Created date : 9.12.2007
|
---|
4 | ; Last update : 12.4.2010
|
---|
5 | ; Author : Tomi Tilli
|
---|
6 | ; Description : Int 13h function AH=10h, Check Drive Ready.
|
---|
7 |
|
---|
8 | ; Section containing code
|
---|
9 | SECTION .text
|
---|
10 |
|
---|
11 | ;--------------------------------------------------------------------
|
---|
12 | ; Int 13h function AH=10h, Check Drive Ready.
|
---|
13 | ;
|
---|
14 | ; AH10h_HandlerForCheckDriveReady
|
---|
15 | ; Parameters:
|
---|
16 | ; AH: Bios function 10h
|
---|
17 | ; DL: Drive number (8xh)
|
---|
18 | ; Parameters loaded by Int13h_Jump:
|
---|
19 | ; DS: RAMVARS segment
|
---|
20 | ; Returns:
|
---|
21 | ; AH: Int 13h return status
|
---|
22 | ; CF: 0 if succesfull, 1 if error
|
---|
23 | ; IF: 1
|
---|
24 | ; Corrupts registers:
|
---|
25 | ; Flags
|
---|
26 | ;--------------------------------------------------------------------
|
---|
27 | ALIGN JUMP_ALIGN
|
---|
28 | AH10h_HandlerForCheckDriveReady:
|
---|
29 | ; Save registers
|
---|
30 | push dx
|
---|
31 | push cx
|
---|
32 | push bx
|
---|
33 | push ax
|
---|
34 |
|
---|
35 | ; Wait until drive is ready
|
---|
36 | call FindDPT_ForDriveNumber ; DS:DI now points to DPT
|
---|
37 | call HStatus_WaitRdyDefTime
|
---|
38 | jmp Int13h_PopXRegsAndReturn
|
---|
Note:
See
TracBrowser
for help on using the repository browser.