Changeset 413 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization
- Timestamp:
- Apr 28, 2012, 4:23:30 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm
r392 r413 33 33 ; Nothing 34 34 ;-------------------------------------------------------------------- 35 Initialize_FromMainBiosRomSearch: ; unused entrypoint ok 36 pushf 37 push es 35 Initialize_FromMainBiosRomSearch: ; unused entrypoint ok 36 pushf ; To store IF 38 37 push ds 39 ePUSHA40 38 41 LOAD_BDA_SEGMENT_TO es, ax 42 sti ; Enable interrupts 43 test BYTE [es:BDA.bKBFlgs1], (1<<2) ; Clears ZF if CTRL is held down 39 %ifndef USE_186 40 push ax 41 LOAD_BDA_SEGMENT_TO ds, ax 42 %else 43 push BYTE 0 44 pop ds 45 %endif 46 47 sti ; Enable interrupts for keystrokes 48 test BYTE [BDA.bKBFlgs1], (1<<2) ; Clears ZF if CTRL is held down 44 49 jnz SHORT .SkipRomInitialization 45 50 46 51 ; Install INT 19h handler (boot loader) where drives are detected 47 mov al, BIOS_BOOT_LOADER_INTERRUPT_19h 48 mov si, Int19h_BootLoaderHandler 49 call Interrupts_InstallHandlerToVectorInALFromCSSI 52 mov WORD [BIOS_BOOT_LOADER_INTERRUPT_19h*4], Int19h_BootLoaderHandler 53 mov [BIOS_BOOT_LOADER_INTERRUPT_19h*4+2], cs 50 54 51 55 .SkipRomInitialization: 52 ePOPA 56 %ifndef USE_186 57 pop ax 58 %endif 53 59 pop ds 54 pop es55 60 popf 56 61 retf … … 66 71 ; DS: RAMVARS segment 67 72 ; Corrupts registers: 68 ; All 73 ; All, except ES 69 74 ;-------------------------------------------------------------------- 70 75 Initialize_AndDetectDrives:
Note:
See TracChangeset
for help on using the changeset viewer.