source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm@ 153

Last change on this file since 153 was 150, checked in by Tomi Tilli, 14 years ago

Changes to XTIDE Universal BIOS:

  • Redesigned Disk Parameter Tables.
  • Code generalizations for supporting non-IDE devices in the future.
File size: 1.4 KB
RevLine 
[150]1; Project name : XTIDE Universal BIOS
2; Description : Serial Device Command functions.
3
4; Section containing code
5SECTION .text
6
7;--------------------------------------------------------------------
8; SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH
9; Parameters:
10; BH: Drive Select byte for Drive and Head Select Register
11; DS: Segment to RAMVARS
12; ES:SI: Ptr to buffer to receive 512-byte IDE Information
13; CS:BP: Ptr to IDEVARS
14; Returns:
15; AH: INT 13h Error Code
16; CF: Cleared if success, Set if error
17; Corrupts registers:
18; AL, BL, CX, DX, SI, DI, ES
19;--------------------------------------------------------------------
20ALIGN JUMP_ALIGN
21SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH:
22
23
24;--------------------------------------------------------------------
25; SerialCommand_OutputWithParameters
26; Parameters:
27; BH: Non-zero if 48-bit addressing used
28; BL: IDE Status Register bit to poll after command
29; ES:SI: Ptr to buffer (for data transfer commands)
30; DS:DI: Ptr to DPT (in RAMVARS segment)
31; SS:BP: Ptr to IDEREGS_AND_INTPACK
32; Returns:
33; AH: INT 13h Error Code
34; CF: Cleared if success, Set if error
35; Corrupts registers:
36; AL, BX, CX, DX, (ES:SI for data transfer commands)
37;--------------------------------------------------------------------
38ALIGN JUMP_ALIGN
39SerialCommand_OutputWithParameters:
40
41
Note: See TracBrowser for help on using the repository browser.