Changeset 625 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Timestamp:
- Feb 19, 2023, 9:26:52 PM (21 months ago)
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
r617 r625 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13 by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2023 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 303 303 ;-------------------------------------------------------------------- 304 304 ALIGN JUMP_ALIGN 305 IdeCommand_ReadLBAlowRegisterToAL: 305 IdeCommand_ReadLBAlowRegisterToAL: ; Unused entrypoint OK 306 306 ; HOB bit (defined in 48-bit address feature set) should be zero by default 307 307 ; so we get the correct value for CHS, LBA28 and LBA48 drives and commands -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r602 r625 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13 by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2023 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 50 50 ALIGN JUMP_ALIGN 51 51 IdeTransfer_StartWithCommandInAL: 52 %ifdef USE_PS2 53 ; Turn on the software controlled HDD LED on IBM PS/2 machines 54 xchg bx, ax ; Save AX 55 in al, 92h ; Read System Control Port A 56 or al, 80h ; Set bit 7 to turn on LED (bit 6 would also work) 57 out 92h, al ; Write it back 58 xchg bx, ax ; Restore AX 59 %endif 52 60 ; Are we reading or writing? 53 61 test al, 16 ; Bit 4 is cleared on all the read commands but set on 3 of the 4 write commands … … 124 132 ; All sectors successfully transferred 125 133 add cx, [bp+PIOVARS.bSectorsDone] ; Never sets CF 134 %ifdef USE_PS2 135 ; Turn off the software controlled HDD LED on IBM PS/2 machines 136 in al, 92h ; Read System Control Port A 137 and al, 3Fh ; Clear bits 7 and 6 to turn off LED 138 out 92h, al ; Write it back 139 %endif 126 140 ret 127 141 … … 133 147 mov cl, [bp+PIOVARS.bSectorsDone] 134 148 mov ch, 0 ; Preserve CF 149 %endif 150 %ifdef USE_PS2 151 ; Turn off the software controlled HDD LED on IBM PS/2 machines 152 in al, 92h ; Read System Control Port A 153 and al, 3Fh ; Clear bits 7 and 6 to turn off LED (Clears CF) 154 out 92h, al ; Write it back 155 stc ; Restore the CF 135 156 %endif 136 157 ret
Note:
See TracChangeset
for help on using the changeset viewer.