Changeset 173 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools
- Timestamp:
- Sep 18, 2011, 11:41:29 AM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.