Changeset 580 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- Feb 19, 2015, 1:38:02 PM (10 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AtaGeometry.asm
r568 r580 304 304 ; Max = 16,514,064 / 63 = 262128 305 305 mov cx, LBA_ASSIST_SPT ; CX = 63 306 call Math_DivDXAXbyCX 306 call Math_DivDXAXbyCX ; Preserves CX 307 307 push dx 308 308 push ax ; Value CH stored for later use … … 316 316 ; AX = Number of heads = ((Value CH - 1) / 1024) + 1 317 317 ; Max = (262127 / 1024) + 1 = 256 318 push si 319 call Size_DivideSizeInBXDXAXby1024andIncrementMagnitudeInCX 320 pop si 318 call Size_DivideSizeInBXDXAXby1024 ; Preserves CX 321 319 inc ax ; + 1 322 320 323 321 ; Heads must be 16, 32, 64, 128 or 255 (round up to the nearest) 324 322 ; Max = 255 325 mov c x, 16 ; Min number of heads323 mov cl, 16 ; Min number of heads 326 324 .CompareNextValidNumberOfHeads: 327 325 cmp ax, cx
Note:
See TracChangeset
for help on using the changeset viewer.