Changeset 543 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CompatibleDPT.asm
- Timestamp:
- Apr 16, 2013, 11:41:49 AM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CompatibleDPT.asm
r542 r543 89 89 ;-------------------------------------------------------------------- 90 90 FillToESDIusingDPTfromDSSI: 91 mov ax, [si+DPT.wLchsCylinders] 92 call AH8h_LimitAXtoMaximumLCylinders 91 93 test BYTE [si+DPT.bFlagsLow], MASKL_DPT_TRANSLATEMODE 92 94 jz SHORT FillStandardDPTtoESDIfromDPTinDSSI … … 96 98 ; FillTranslatedDPTtoESDIfromDPTinDSSI 97 99 ; Parameters: 100 ; AX: Number of Logical Cylinders 98 101 ; CL: Device Control Byte 99 102 ; DS:SI: Ptr to DPT … … 106 109 FillTranslatedDPTtoESDIfromDPTinDSSI: 107 110 xor dx, dx ; Clear for checksum 108 mov ax, [si+DPT.wLchsCylinders]109 ;MIN_U ax, MAX_LCHS_CYLINDERS ; Our DPT can have up to 1027110 111 call StoswThenAddALandAHtoDL ; Bytes 0 and 1 (Logical number of cylinders) 111 112 … … 144 145 ; FillStandardDPTtoESDIfromDPTinDSSI 145 146 ; Parameters: 147 ; AX: Number of Physical Cylinders == Number of Logical Cylinders 146 148 ; CL: Device Control Byte 147 149 ; DS:SI: Ptr to DPT … … 153 155 ;-------------------------------------------------------------------- 154 156 FillStandardDPTtoESDIfromDPTinDSSI: 155 mov ax, [si+DPT.wLchsCylinders]156 157 stosw ; Bytes 0 and 1 (Physical number of cylinders) 157 158 eMOVZX ax, BYTE [si+DPT.bLchsHeads]
Note:
See TracChangeset
for help on using the changeset viewer.