Changeset 117 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers
- Timestamp:
- Feb 28, 2011, 12:16:21 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.asm
r35 r117 1 ; File name : AH15h_HSize.asm 2 ; Project name : IDE BIOS 3 ; Created date : 28.9.2007 4 ; Last update : 24.8.2010 5 ; Author : Tomi Tilli 1 ; Project name : XTIDE Universal BIOS 6 2 ; Description : Int 13h function AH=15h, Read Disk Drive Size. 7 3 … … 36 32 push ax 37 33 38 call HCapacity_GetSectorCountFromOurAH08h; Sector count to DX:AX 34 call HCapacity_GetSectorCountFromOurAH08h; Sector count to DX:AX (clears CF) 39 35 mov cx, dx ; HIWORD to CX 40 36 xchg dx, ax ; LOWORD to DX … … 43 39 pop bx 44 40 mov ah, 3 ; Type code = Hard disk 45 clc46 41 jmp Int13h_ReturnWithValueInDL -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Common/HCapacity.asm
r88 r117 41 41 mul bx ; AX=Head count * Sectors per track 42 42 mul cx ; DX:AX = Total sector count 43 xor bx, bx ; Zero BX for 48-bit sector count 43 xor bx, bx ; Zero BX for 48-bit sector count (and clear CF) 44 44 ret
Note:
See TracChangeset
for help on using the changeset viewer.