Changeset 370 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/AtaID.asm
- Timestamp:
- Mar 29, 2012, 4:40:50 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/AtaID.asm
r364 r370 89 89 ; Get PIO mode and cycle time for PIO 0...2 90 90 mov bx, [es:si+ATA1.bPioMode] 91 mov ax, bx ; AH = 0, AL = PIO mode 0, 1 or 2 91 92 shl bx, 1 ; Shift for WORD lookup 92 93 mov cx, [cs:bx+.rgwPio0to2CycleTimeInNanosecs] 93 shr bx, 194 xchg ax, bx ; AH = 0, AL = PIO mode 0, 1 or 295 94 96 95 ; Check if IORDY is supported … … 105 104 ; Get Advanced PIO mode 106 105 ; (Hard Disks supports up to 4 but CF cards can support 5 and 6) 107 mov b x, [es:si+ATA2.bPIOSupp]106 mov bl, [es:si+ATA2.bPIOSupp] 108 107 .CheckNextFlag: 109 108 inc ax 110 shr b x, 1109 shr bl, 1 111 110 jnz SHORT .CheckNextFlag 112 111 MIN_U al, 6 ; Make sure not above lookup tables
Note: See TracChangeset
for help on using the changeset viewer.