Changeset 99 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
- Timestamp:
- Jan 31, 2011, 11:27:17 AM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r97 r99 171 171 172 172 ;-------------------------------------------------------------------- 173 ; Increments hard disk count to RAMVARS.174 ;175 173 ; RamVars_IncrementHardDiskCount 176 174 ; Parameters: … … 182 180 ; Nothing 183 181 ;-------------------------------------------------------------------- 184 ALIGN JUMP_ALIGN185 182 RamVars_IncrementHardDiskCount: 186 183 inc BYTE [RAMVARS.bDrvCnt] ; Increment drive count to RAMVARS … … 188 185 ja SHORT .Return ; If so, return 189 186 mov [RAMVARS.bFirstDrv], dl ; Store first drive number 190 ALIGN JUMP_ALIGN191 187 .Return: 192 188 ret … … 242 238 ; Nothing 243 239 ;-------------------------------------------------------------------- 244 ALIGN JUMP_ALIGN245 240 RamVars_GetIdeControllerCountToCX: 246 mov cx, 1 ; Assume lite mode (one controller) 247 test BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE 248 jz SHORT .Return 249 mov cl, [cs:ROMVARS.bIdeCnt] 250 ALIGN JUMP_ALIGN, ret 251 .Return: 252 ret 241 eMOVZX cx, BYTE [cs:ROMVARS.bIdeCnt] 242 ret
Note:
See TracChangeset
for help on using the changeset viewer.