Changeset 623 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
- Timestamp:
- Jun 15, 2022, 2:48:59 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r592 r623 135 135 136 136 137 ;--------------------------------------------------------------------138 ; RamVars_GetCountOfKnownDrivesToAX139 ; Parameters:140 ; DS: RAMVARS segment141 ; Returns:142 ; AX: Total hard disk count143 ; Corrupts registers:144 ; None145 ;--------------------------------------------------------------------146 ALIGN JUMP_ALIGN147 RamVars_GetCountOfKnownDrivesToAX:148 mov ax, [RAMVARS.wFirstDrvAndCount]149 add al, ah150 and ax, BYTE 7fh151 ret152 153 ;--------------------------------------------------------------------154 ; RamVars_GetIdeControllerCountToCX155 ; Parameters:156 ; Nothing157 ; Returns:158 ; CX: Number of IDE controllers to handle159 ; Corrupts registers:160 ; Nothing161 ;--------------------------------------------------------------------162 ALIGN JUMP_ALIGN163 RamVars_GetIdeControllerCountToCX:164 eMOVZX cx, [cs:ROMVARS.bIdeCnt]165 ret166 167 168 137 %ifdef MODULE_SERIAL_FLOPPY 169 138 ;-------------------------------------------------------------------- … … 184 153 ret 185 154 %endif 155 156 157 ;-------------------------------------------------------------------- 158 ; RamVars_GetIdeControllerCountToCX 159 ; Parameters: 160 ; Nothing 161 ; Returns: 162 ; CX: Number of IDE controllers to handle 163 ; Corrupts registers: 164 ; Nothing 165 ;-------------------------------------------------------------------- 166 ALIGN JUMP_ALIGN 167 RamVars_GetIdeControllerCountToCX: 168 eMOVZX cx, [cs:ROMVARS.bIdeCnt] 169 ret 170 171 172 ;-------------------------------------------------------------------- 173 ; RamVars_GetCountOfKnownDrivesToAX 174 ; Parameters: 175 ; DS: RAMVARS segment 176 ; Returns: 177 ; AX: Total hard disk count 178 ; Corrupts registers: 179 ; None 180 ;-------------------------------------------------------------------- 181 ALIGN JUMP_ALIGN 182 RamVars_GetCountOfKnownDrivesToAX: 183 mov ax, [RAMVARS.wFirstDrvAndCount] 184 add al, ah 185 and ax, BYTE 7Fh 186 ret
Note: See TracChangeset
for help on using the changeset viewer.