Last change
on this file since 165 was
165,
checked in by aitotat@…, 13 years ago
|
Changes to XTIDE Universal BIOS:
- Hopefully this commit is successful. Sorry for the mess.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[165] | 1 | ; Project name : XTIDE Universal BIOS |
---|
| 2 | ; Description : Int 13h function AH=41h, Check if Extensions Present. |
---|
| 3 | |
---|
| 4 | ; Section containing code |
---|
| 5 | SECTION .text |
---|
| 6 | |
---|
| 7 | ;-------------------------------------------------------------------- |
---|
| 8 | ; Int 13h function AH=41h, Check if Extensions Present. |
---|
| 9 | ; |
---|
| 10 | ; AH41h_HandlerForCheckIfExtensionsPresent |
---|
| 11 | ; Parameters: |
---|
| 12 | ; DL: Translated Drive number |
---|
| 13 | ; DS:DI: Ptr to DPT (in RAMVARS segment) |
---|
| 14 | ; SS:BP: Ptr to IDEPACK |
---|
| 15 | ; Parameters on INTPACK: |
---|
| 16 | ; BX: 55AAh |
---|
| 17 | ; Returns with INTPACK: |
---|
| 18 | ; AH: Major version of EBIOS extensions |
---|
| 19 | ; BX: 55AAh |
---|
| 20 | ; CX: Support bits |
---|
| 21 | ; CF: 0 if succesfull, 1 if error |
---|
| 22 | ;-------------------------------------------------------------------- |
---|
| 23 | ALIGN JUMP_ALIGN |
---|
| 24 | AH41h_HandlerForCheckIfExtensionsPresent: |
---|
| 25 | cmp WORD [bp+IDEPACK.intpack+INTPACK.bx], 55AAh |
---|
| 26 | jne SHORT .EbiosNotSupported |
---|
| 27 | |
---|
| 28 | mov WORD [bp+IDEPACK.intpack+INTPACK.cx], ENHANCED_DRIVE_ACCESS_SUPPORT |
---|
| 29 | mov ah, EBIOS_VERSION |
---|
| 30 | and BYTE [bp+IDEPACK.intpack+INTPACK.flags], ~FLG_FLAGS_CF ; Return with CF cleared |
---|
| 31 | jmp Int13h_ReturnFromHandlerWithoutStoringErrorCode |
---|
| 32 | .EbiosNotSupported: |
---|
| 33 | jmp Int13h_UnsupportedFunction |
---|
Note: See
TracBrowser
for help on using the repository browser.