Changeset 364 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- Mar 27, 2012, 4:21:58 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm
r358 r364 4 4 ; Section containing code 5 5 SECTION .text 6 7 %ifdef MODULE_ADVANCED_ATA 8 ;-------------------------------------------------------------------- 9 ; AccessDPT_GetIdeBasePortToBX 10 ; Parameters: 11 ; DS:DI: Ptr to Disk Parameter Table 12 ; Returns: 13 ; BX: IDE Base Port Address 14 ; Corrupts registers: 15 ; Nothing 16 ;-------------------------------------------------------------------- 17 ALIGN JUMP_ALIGN 18 AccessDPT_GetIdeBasePortToBX: 19 eMOVZX bx, [di+DPT.bIdevarsOffset] ; CS:BX points to IDEVARS 20 mov bx, [cs:bx+IDEVARS.wPort] 21 ret 22 23 %endif 24 6 25 7 26 ;-------------------------------------------------------------------- -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r294 r364 31 31 ;-------------------------------------------------------------------- 32 32 .StealMemoryForRAMVARS: 33 ; Always steal memory when using Advanced ATA module since it 34 ; uses larger DPTs 35 %ifndef MODULE_ADVANCED_ATA 33 36 mov ax, LITE_MODE_RAMVARS_SEGMENT 34 37 test BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE 35 38 jz SHORT .InitializeRamvars ; No need to steal RAM 39 %endif 36 40 37 41 LOAD_BDA_SEGMENT_TO ds, ax, ! ; Zero AX
Note:
See TracChangeset
for help on using the changeset viewer.