Changeset 173 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers
- Timestamp:
- Sep 18, 2011, 11:41:29 AM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH8h_HParams.asm
r150 r173 58 58 ALIGN JUMP_ALIGN 59 59 AH8h_GetDriveParameters: 60 call AccessDPT_GetLCHS fromPCHS; AX=sectors, BX=cylinders, DX=heads60 call AccessDPT_GetLCHS ; AX=sectors, BX=cylinders, DX=heads 61 61 ; Fall to .PackReturnValues 62 62 -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
r170 r173 94 94 95 95 ; Initialize Logical Sectors per Track and Max Head number 96 mov ah, [di+DPT.b PchsHeads]96 mov ah, [di+DPT.bHeads] 97 97 dec ah ; Max Head number 98 mov dl, [di+DPT.b PchsSectors]; Sectors per Track98 mov dl, [di+DPT.bSectors] ; Sectors per Track 99 99 mov al, COMMAND_INITIALIZE_DEVICE_PARAMETERS 100 100 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_BSY, FLG_STATUS_BSY) -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/Address.asm
r165 r173 83 83 ; LHead / PHeadCount and LHead % PHeadCount 84 84 eMOVZX ax, bh ; Copy L-CHS Head number to AX 85 div BYTE [di+DPT.b PchsHeads]; AL = LHead / PHeadCount, AH = LHead % PHeadCount85 div BYTE [di+DPT.bHeads] ; AL = LHead / PHeadCount, AH = LHead % PHeadCount 86 86 mov bh, ah ; Copy P-CHS Head number to BH 87 87 xor ah, ah ; AX = LHead / PHeadCount … … 124 124 ; cylToSeek*headsPerCyl (18-bit result) 125 125 mov ax, cx ; Copy Cylinder number to AX 126 eMOVZX dx, BYTE [di+DPT.b LchsHeads]126 eMOVZX dx, BYTE [di+DPT.bHeads] 127 127 mul dx ; DX:AX = cylToSeek*headsPerCyl 128 128 … … 133 133 134 134 ; *=sectPerTrack (18-bit by 6-bit multiplication with 24-bit result) 135 eMOVZX cx, BYTE [di+DPT.bPchsSectors]; Load Sectors per Track135 mov cx, LBA_ASSIST_SPT ; Load Sectors per Track 136 136 xchg ax, dx ; Hiword to AX, loword to DX 137 137 mul cl ; AX = hiword * Sectors per Track
Note:
See TracChangeset
for help on using the changeset viewer.