Changeset 491 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- Dec 15, 2012, 2:46:29 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm
r473 r491 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ; GNU General Public License for more details. 16 ; GNU General Public License for more details. 17 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 18 ; 19 19 20 20 ; Section containing code … … 67 67 AccessDPT_GetDeviceControlByteToAL: 68 68 %ifdef MODULE_IRQ 69 70 %ifndef USE_UNDOC_INTEL 69 71 xor al, al 70 test BYTE [di+DPT.bFlagsLow], FLGL_DPT_ENABLE_IRQ 72 %endif 73 74 test BYTE [di+DPT.bFlagsLow], FLGL_DPT_ENABLE_IRQ ; Clears CF 75 76 %ifdef USE_UNDOC_INTEL 77 eSALC ; Clears AL using CF while preserving flags 78 %endif 79 71 80 jnz SHORT .EnableDeviceIrq 72 81 or al, FLG_DEVCONTROL_nIEN ; Disable IRQ … … 74 83 %else 75 84 mov al, FLG_DEVCONTROL_nIEN ; Disable IRQ 76 %endif 85 %endif ; MODULE_IRQ 77 86 ret 78 87 -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AtaGeometry.asm
r445 r491 81 81 AtaGeometry_GetLCHStoAXBLBHfromAtaInfoInESSIandTranslateModeInDX: 82 82 call AtaGeometry_GetPCHStoAXBLBHfromAtaInfoInESSI 83 ; Fall to AtaGeometry_GetLCHStoAXBLBHfromPCHSinAXBLBH 83 ; Fall to AtaGeometry_GetLCHStoAXBLBHfromPCHSinAXBLBHandTranslateModeInDX 84 84 85 85 AtaGeometry_GetLCHStoAXBLBHfromPCHSinAXBLBHandTranslateModeInDX: 86 86 ; Check if user defined translate mode 87 test dx, dx88 jn zSHORT .CheckIfLargeTranslationWanted87 dec dx ; Set ZF if TRANSLATEMODE_LARGE, SF if TRANSLATEMODE_NORMAL 88 jns SHORT .CheckIfLargeTranslationWanted 89 89 MIN_U ax, MAX_LCHS_CYLINDERS ; TRANSLATEMODE_NORMAL maximum cylinders 90 90 inc dx 91 91 .CheckIfLargeTranslationWanted: 92 dec dx ; Set ZF if TRANSLATEMODE_LARGE93 92 jz SHORT ConvertPCHfromAXBLtoRevisedEnhancedCHinAXBL 94 93 dec dx ; Set ZF if TRANSLATEMODE_ASSISTED_LBA -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm
r489 r491 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ; GNU General Public License for more details. 16 ; GNU General Public License for more details. 17 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 18 ; 19 19 20 20 ; Section containing code … … 33 33 BootVars_Initialize: 34 34 %ifdef MODULE_8BIT_IDE 35 mov WORD [es:BOOTVARS.wNextXTCFportToScan], XTCF_BASE_PORT_ 135 mov WORD [es:BOOTVARS.wNextXTCFportToScan], XTCF_BASE_PORT_DETECTION_SEED 36 36 %endif 37 37 … … 72 72 73 73 %endif ; MODULE_HOTKEYS 74 75 76 %ifdef MODULE_8BIT_IDE77 ;--------------------------------------------------------------------78 ; BootVars_GetNextXTCFportToDetectToDX79 ; Parameters:80 ; ES: BDA Segment81 ; Returns:82 ; DX: Next XT-CF port to detect83 ; Corrupts registers:84 ; AX85 ;--------------------------------------------------------------------86 BootVars_GetNextXTCFportToDetectToDX:87 mov dx, [es:BOOTVARS.wNextXTCFportToScan]88 test dl, dl89 jz SHORT .NextOneIs240hor340h90 add WORD [es:BOOTVARS.wNextXTCFportToScan], XTCF_BASE_PORT_3 - XTCF_BASE_PORT_291 ret92 .NextOneIs240hor340h:93 mov BYTE [es:BOOTVARS.wNextXTCFportToScan], XTCF_BASE_PORT_2 & 0FFh ; 40h94 ret95 %endif ; MODULE_8BIT_IDE
Note:
See TracChangeset
for help on using the changeset viewer.