Changeset 614 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/AutoConfigure.asm
- Timestamp:
- Jun 10, 2021, 4:56:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/AutoConfigure.asm
r605 r614 42 42 pop ds ; ROMVARS now in DS:DI 43 43 call ChecksumSystemBios 44 call DetectOlivettiM24 44 45 call ResetIdevarsToDefaultValues 45 46 call DetectIdePortsAndDevices … … 139 140 140 141 ;-------------------------------------------------------------------- 142 ; DetectOlivettiM24 143 ; Parameters: 144 ; Nothing 145 ; Returns: 146 ; ZF: Set if computer is not an Olivetti M24 147 ; Clear if computer is an Olivetti M24 148 ; Corrupts registers: 149 ; AX, BX, CX, DX 150 ;-------------------------------------------------------------------- 151 ALIGN JUMP_ALIGN 152 DetectOlivettiM24: 153 mov ah, 0FEh ; Request the current date and time 154 mov ch, 0FFh ; Set the hours to an invalid value 155 int BIOS_TIME_PCI_PNP_INTERRUPT_1Ah 156 inc ch ; Hours changed? 157 jz SHORT .ThisIsNotAnOlivettiM24 158 mov BYTE [cs:IsOlivettiM24], 1 159 .ThisIsNotAnOlivettiM24: 160 ret 161 162 IsOlivettiM24: 163 db 0 164 165 166 ;-------------------------------------------------------------------- 141 167 ; ResetIdevarsToDefaultValues 142 168 ; Parameters:
Note:
See TracChangeset
for help on using the changeset viewer.