Changeset 505 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu
- Timestamp:
- Feb 25, 2013, 4:23:09 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenu.asm
r492 r505 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 16 ; GNU General Public License for more details. 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 19 19 20 20 ; Section containing code … … 24 24 ; Displays Boot Menu and returns Drive or Function number. 25 25 ; 26 ; BootMenu_DisplayAnd StoreSelection26 ; BootMenu_DisplayAndReturnDriveInDLRomBootClearCF 27 27 ; Parameters: 28 28 ; DS: RAMVARS segment … … 41 41 42 42 xchg cx, ax 43 43 44 44 ; Clear Boot Menu from screen 45 45 mov ax, ' ' | (MONO_NORMAL<<8) … … 52 52 ; Parameters: 53 53 ; CX: Index of menuitem selected from Boot Menu 54 ; DS: RAMVARS segment 54 55 ; Returns: 55 56 ; DX: Drive number to be used for booting 56 ; DS: RAMVARS segment57 57 ; CF: Set: There is a selected menu item, DL is valid 58 58 ; Clear: The item selected is Rom Boot, DL is not valid 59 59 ; Corrupts registers: 60 ; AX, BX , DI60 ; AX, BX 61 61 ; 62 62 ; NOTE: We can't use the menu structure in here, as we are falling through 63 ; throughfrom BootMenu_DisplayAndReturnDriveInDLRomBootClearCF when the63 ; from BootMenu_DisplayAndReturnDriveInDLRomBootClearCF when the 64 64 ; menu structure has already been destroyed. 65 65 ;-------------------------------------------------------------------- … … 73 73 sub dl, al ; Remove floppy drives from index 74 74 call RamVars_GetHardDiskCountFromBDAtoAX 75 or al, 80h ; Or 80h into AL before the sub 75 or al, 80h ; Or 80h into AL before the sub 76 76 cmp dl, al ; Set CF if hard disk 77 77 ; Clear CF if last item, beyond hard disk list, which indicates ROM boot
Note:
See TracChangeset
for help on using the changeset viewer.