Changeset 84 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
- Timestamp:
- Jan 14, 2011, 10:57:46 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.