Changeset 150 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
- Timestamp:
- Apr 29, 2011, 7:04:13 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r148 r150 40 40 eSHL_IM ax, 6 ; Segment to first stolen kB (*=40h) 41 41 mov ds, ax 42 mov WORD [ FULLRAMVARS.wSign], W_SIGN_FULLRAMVARS43 ; Fall to .InitializeRamvars FromDS42 mov WORD [RAMVARS.wSignature], RAMVARS_SIGNATURE 43 ; Fall to .InitializeRamvars 44 44 45 45 ;-------------------------------------------------------------------- … … 59 59 pop es 60 60 call Memory_ZeroESDIwithSizeInCX 61 mov WORD [RAMVARS.wSignature], RAMVARS_SIGNATURE 61 62 ; Fall to .InitializeDriveTranslationAndReturn 62 63 … … 92 93 test BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE 93 94 jnz SHORT .GetStolenSegmentToDS 94 mov di, SEGMENT_RAMVARS_TOP_OF_INTERRUPT_VECTORS95 mov di, LITE_MODE_RAMVARS_SEGMENT 95 96 mov ds, di 96 97 ret … … 105 106 mov ds, di ; EBDA segment to DS 106 107 add di, BYTE 64 ; DI to next stolen kB 107 cmp WORD [ FULLRAMVARS.wSign], W_SIGN_FULLRAMVARS108 cmp WORD [RAMVARS.wSignature], RAMVARS_SIGNATURE 108 109 jne SHORT .LoopStolenKBs ; Loop until sign found (always found eventually) 109 110 ret … … 167 168 168 169 ;-------------------------------------------------------------------- 169 ; RamVars_IncrementHardDiskCount170 ; Parameters:171 ; DL: Drive number for new drive172 ; DS: RAMVARS segment173 ; Returns:174 ; Nothing175 ; Corrupts registers:176 ; Nothing177 ;--------------------------------------------------------------------178 RamVars_IncrementHardDiskCount:179 inc BYTE [RAMVARS.bDrvCnt] ; Increment drive count to RAMVARS180 cmp BYTE [RAMVARS.bFirstDrv], 0 ; First drive set?181 ja SHORT .Return ; If so, return182 mov [RAMVARS.bFirstDrv], dl ; Store first drive number183 .Return:184 ret185 186 187 ;--------------------------------------------------------------------188 170 ; RamVars_GetHardDiskCountFromBDAtoCX 189 171 ; Parameters:
Note:
See TracChangeset
for help on using the changeset viewer.