Changeset 84 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Jan 14, 2011, 10:57:46 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Boot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm
r32 r84 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 25.3.2010 4 ; Last update : 3.8.2010 5 ; Author : Tomi Tilli 4 ; Last update : 14.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 6 7 ; Description : Displays Boot Menu. 7 8 … … 31 32 call BootMenu_Enter ; Get selected menuitem index to CX 32 33 call BootMenuPrint_ClearScreen 33 cmp cx, BYTE 0; -1 if nothing selected (ESC pressed)34 j lSHORT BootMenu_DisplayAndReturnSelection34 test cx, cx ; -1 if nothing selected (ESC pressed) 35 js SHORT BootMenu_DisplayAndReturnSelection 35 36 call BootMenu_CheckAndConvertHotkeyToMenuitem 36 37 jc SHORT .SetDriveTranslationForHotkey -
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r32 r84 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 26.3.2010 4 ; Last update : 3.8.2010 5 ; Author : Tomi Tilli 4 ; Last update : 14.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 6 7 ; Description : Functions for printing boot menu strings. 7 8 … … 43 44 ; DH: Cursor Y coordinate 44 45 ; Corrupts registers: 45 ; AX46 ; Nothing 46 47 ;-------------------------------------------------------------------- 47 48 ALIGN JUMP_ALIGN 48 49 BootMenuPrint_GetCoordinatesForBottomStrings: 49 50 mov dx, 1800h ; (0, 24) 50 xor ax, ax ; Zero AX 51 sub al, bl ; Set CF if any floppy drives 52 sbb dh, 0 ; Decrement Y-coordinate if necessary 53 sub ah, bh ; Set CF if any hard disks 54 sbb dh, 0 ; Decrement Y-coordinate if necessary 51 cmp dl, bl ; Set CF if any floppy drives 52 sbb dh, dl ; Decrement Y-coordinate if necessary 53 cmp dl, bh ; Set CF if any hard disks 54 sbb dh, dl ; Decrement Y-coordinate if necessary 55 55 ret 56 56 -
trunk/XTIDE_Universal_BIOS/Src/Boot/BootVars.asm
r3 r84 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 1.4.2010 4 ; Last update : 12.4.2010 5 ; Author : Tomi Tilli 4 ; Last update : 14.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 6 7 ; Description : Functions to access BOOTVARS struct. 7 8 … … 66 67 cli ; Disable interrupts 67 68 LOAD_BDA_SEGMENT_TO ss, sp 68 eLSS sp, ss:BOOTVARS.dwPostStack 69 ; eLSS sp, ss:BOOTVARS.dwPostStack ; Expanded macro to remove 70 ; unneeded CLI instruction 71 %ifndef USE_386 72 mov sp, [ss:BOOTVARS.dwPostStack] 73 mov ss, [ss:BOOTVARS.dwPostStack+2] 74 %else 75 lss sp, [ss:BOOTVARS.dwPostStack] 76 %endif 69 77 sti ; Enable interrupts 70 78 jmp ax
Note:
See TracChangeset
for help on using the changeset viewer.