Changeset 621 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- Nov 21, 2021, 2:15:32 PM (3 years ago)
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Device
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/Device.asm
r617 r621 52 52 jne IdeDPT_Finalize 53 53 jmp SerialDPT_Finalize 54 %else 54 %else ; ~USE_386 55 55 je SHORT .FinalizeDptForSerialPortDevice 56 56 jmp IdeDPT_Finalize … … 100 100 ; AL, BX, CX, DX, SI, DI, ES 101 101 ;-------------------------------------------------------------------- 102 %ifndef NO_ATAID_CORRECTION 102 103 Device_IdentifyToBufferInESSIwithDriveSelectByteInBH: 103 %ifndef NO_ATAID_CORRECTION104 104 cmp cx, XUB_INT13h_SIGNATURE 105 105 je SHORT .DoNotFixAtaInformation … … 108 108 ePUSH_T cx, AtaID_PopESSIandFixIllegalValuesFromESSI ; Here we modify ATA information if necessary 109 109 .DoNotFixAtaInformation: 110 %endif111 110 112 111 %ifdef MODULE_SERIAL ; IDE + Serial … … 115 114 jne IdeCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 116 115 jmp SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 117 %else 116 %else ; ~USE_386 118 117 je SHORT .IdentifyDriveFromSerialPort 119 118 jmp IdeCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH … … 126 125 %endif 127 126 127 %else ; NO_ATAID_CORRECTION 128 %ifdef MODULE_SERIAL ; IDE + Serial 129 cmp BYTE [cs:bp+IDEVARS.bDevice], DEVICE_SERIAL_PORT 130 %ifdef USE_386 131 jne IdeCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 132 jmp SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 133 %else ; ~USE_386 134 je SHORT .IdentifyDriveFromSerialPort 135 jmp IdeCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 136 .IdentifyDriveFromSerialPort: 137 jmp SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 138 %endif 139 140 %else ; IDE 141 Device_IdentifyToBufferInESSIwithDriveSelectByteInBH EQU IdeCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 142 %endif 143 %endif ; NO_ATAID_CORRECTION 144 128 145 129 146 ;-------------------------------------------------------------------- … … 149 166 jz IdeCommand_OutputWithParameters 150 167 jmp SerialCommand_OutputWithParameters 151 %else 168 %else ; ~USE_386 152 169 jnz SHORT .OutputCommandToSerialPort 153 170 jmp IdeCommand_OutputWithParameters … … 182 199 ; jz IdeCommand_ReadLBAlowRegisterToAL 183 200 ; jmp SerialCommand_ReadLBAlowRegisterToAL 184 ;%else 201 ;%else ; ~USE_386 185 202 ; jnz SHORT .ReadFromSerialPort 186 203 ; jmp IdeCommand_ReadLBAlowRegisterToAL … … 214 231 jnz SHORT ReturnSuccessForSerialPort 215 232 jmp IdeCommand_SelectDrive 216 %else 233 %else ; USE_386 217 234 jz IdeCommand_SelectDrive 218 235 ; Fall to ReturnSuccessForSerialPort … … 225 242 226 243 %ifdef MODULE_SERIAL 227 ALIGN JUMP_ALIGN228 244 ReturnSuccessForSerialPort: 229 245 xor ax, ax -
trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm
r601 r621 154 154 155 155 push si 156 call FindDPT_ToDSDIforSerialDevice 156 call FindDPT_ToDSDIforSerialDevice ; Preserves AX 157 157 pop si 158 158 %ifdef MODULE_SERIAL_FLOPPY … … 162 162 ; So, if there was a previously found floppy disk, DI will point to that DPT and we use that value for the slave. 163 163 ; 164 cmp BYTE [RAMVARS.xlateVars+XLATEVARS.bFlopCntAndFirst], 0164 cmp [RAMVARS.xlateVars+XLATEVARS.bFlopCntAndFirst], al ; Zero? 165 165 je SHORT .notfounddpt 166 166 .founddpt:
Note:
See TracChangeset
for help on using the changeset viewer.