Changeset 241 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- Feb 9, 2012, 11:08:59 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r181 r241 31 31 ;-------------------------------------------------------------------- 32 32 .StealMemoryForRAMVARS: 33 mov ax, LITE_MODE_RAMVARS_SEGMENT 33 34 test BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE 34 35 jz SHORT .InitializeRamvars ; No need to steal RAM … … 39 40 mov ax, [BDA.wBaseMem] 40 41 eSHL_IM ax, 6 ; Segment to first stolen kB (*=40h) 42 ; Fall to .InitializeRamvars 43 44 ;-------------------------------------------------------------------- 45 ; .InitializeRamvars 46 ; Parameters: 47 ; AX: RAMVARS segment 48 ; Returns: 49 ; DS: RAMVARS segment 50 ; Corrupts registers: 51 ; AX, CX, DI, ES 52 ;-------------------------------------------------------------------- 53 .InitializeRamvars: 41 54 mov ds, ax 42 mov WORD [RAMVARS.wSignature], RAMVARS_SIGNATURE 43 ; Fall to .InitializeRamvars 44 45 ;-------------------------------------------------------------------- 46 ; .InitializeRamvars 47 ; Parameters: 48 ; Nothing 49 ; Returns: 50 ; DS: RAMVARS segment 51 ; Corrupts registers: 52 ; AX, CX, DI, ES 53 ;-------------------------------------------------------------------- 54 .InitializeRamvars: 55 call RamVars_GetSegmentToDS 55 mov es, ax 56 56 mov cx, RAMVARS_size 57 57 xor di, di 58 push ds59 pop es60 58 call Memory_ZeroESDIwithSizeInCX 61 59 mov WORD [RAMVARS.wSignature], RAMVARS_SIGNATURE
Note:
See TracChangeset
for help on using the changeset viewer.