Changeset 492 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc
- Timestamp:
- Dec 21, 2012, 1:01:55 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
r473 r492 22 22 %define BOOTVARS_INC 23 23 24 ; Default drives 25 DEFAULT_FLOPPY_DRIVE_LETTER EQU 'A' 26 DEFAULT_HARD_DRIVE_LETTER EQU 'C' 27 24 28 ; Number of times to retry booting before accepting error 25 29 BOOT_READ_RETRY_TIMES EQU 3 … … 43 47 .clearToZeroFromThisPoint: 44 48 %ifdef MODULE_HOTKEYS 45 .hotkeyVars resb HOTKEYVARS_size49 .hotkeyVars resb HOTKEYVARS_size 46 50 %endif 47 51 … … 50 54 51 55 %ifdef MODULE_HOTKEYS 56 52 57 struc HOTKEYVARS 53 58 .wTimeToClose resb 2 ; Earliest system time when Hotkey Bar can be closed 54 .bScancode resb 1 ; Function hotkey scancode55 .bFlags resb 1 ; Must be just before .bHddLetter!56 59 .wHddAndFddLetters: 60 .bFddLetter resb 1 ; Floppy Drive letter hotkey (upper case) 57 61 .bHddLetter resb 1 ; Hard Drive letter hotkey (upper case) 58 .bFddLetter resb 1 ; Floppy Drive letter hotkey (upper case) 62 .bFlags resb 1 ; Must be just after .bHddLetter! (dependency in Hotkeybar.asm) 63 .bScancode resb 1 ; Function hotkey scancode, must be just after .bFlags! 59 64 endstruc 60 65 61 ; Bit defines for HOTKEYVARS.bFlags 66 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 67 %if HOTKEYVARS.bFddLetter+1 != HOTKEYVARS.bHddLetter || HOTKEYVARS.bHddLetter+1 != HOTKEYVARS.bFlags || HOTKEYVARS.bFlags+1 != HOTKEYVARS.bScancode 68 %error "HOTKEYVARS: bytes need to come in the order .bFddLetter, then .bHddLetter, then .bFlags, then .bScancode" 69 %endif 70 %endif 71 72 ; Bit defines for KEYBOARDVARS.bFlags 62 73 FLG_HOTKEY_HD_FIRST EQU (1<<0) ; First try to boot from HDD, then FDD 63 74 64 %endif ; MODULE_HOTKEY 65 66 75 %endif ; MODULE_HOTKEYS 67 76 68 77 struc DRVDETECTINFO -
trunk/XTIDE_Universal_BIOS/Inc/HotkeyBar.inc
r413 r492 23 23 MIN_TIME_TO_DISPLAY_HOTKEY_BAR EQU (5000/55) ; 5000 ms 24 24 25 26 ; Hotkeys27 BOOT_MENU_HOTKEY_SCANCODE EQU 3Ch ; F228 25 ROM_BOOT_HOTKEY_SCANCODE EQU 42h ; F8 29 26 30 ; Default drives 31 DEFAULT_FLOPPY_DRIVE_LETTER EQU 'A' 32 DEFAULT_HARD_DRIVE_LETTER EQU 'C' 27 %ifdef MODULE_BOOT_MENU 28 BOOT_MENU_HOTKEY_SCANCODE EQU 3Ch ; F2 29 %endif 33 30 31 %ifdef MODULE_SERIAL 32 COM_DETECT_HOTKEY_SCANCODE EQU 40h ; F6 33 %endif 34 34 35 35 %endif ; HOTKEYBAR_INC -
trunk/XTIDE_Universal_BIOS/Inc/ModuleDependency.inc
r491 r492 18 18 ; 19 19 20 ; Boot Menu requires Hotkey support21 %ifdef MODULE_BOOT_MENU22 %ifndef MODULE_HOTKEYS23 %define MODULE_HOTKEYS24 %endif25 %endif26 27 20 %ifdef MODULE_SERIAL_FLOPPY 28 21 %ifndef MODULE_SERIAL … … 30 23 %endif 31 24 %endif 32 33 25 34 26 ; Include module specific .INC files … … 50 42 %ifdef MODULE_HOTKEYS 51 43 %include "HotkeyBar.inc" ; For Hotkeys 52 %ifdef MODULE_BOOT_MENU 53 %include "BootMenu.inc" ; For Boot Menu 54 %endif 44 %endif 45 46 %ifdef MODULE_BOOT_MENU 47 %include "BootMenu.inc" ; For Boot Menu 48 %endif 49 50 %ifdef MODULE_BOOT_MENU OR MODULE_HOTKEYS 51 %define MODULE_DRIVEXLATE 55 52 %endif 56 53 -
trunk/XTIDE_Universal_BIOS/Inc/RamVars.inc
r444 r492 26 26 %endif 27 27 28 %ifdef MODULE_SERIAL_FLOPPY 29 %define NEED_XLATEVARS 30 %endif 31 32 %ifdef MODULE_DRIVEXLATE 33 %define NEED_XLATEVARS 34 %endif 35 36 28 37 ; RAM Variables. 29 38 ; Variables should be kept to minimum since they might be located … … 50 59 51 60 ; Variables for drive number translation 52 %ifdef MODULE_HOTKEYS61 %ifdef NEED_XLATEVARS 53 62 .xlateVars resb XLATEVARS_size 54 63 %endif … … 60 69 61 70 62 71 %ifdef NEED_XLATEVARS 63 72 ; Variables for translating drive numbers. 64 %ifdef MODULE_HOTKEYS65 73 struc XLATEVARS 66 74 %ifdef MODULE_SERIAL_FLOPPY … … 69 77 ; and number of drives (low order bit, max 2 drives supported). 70 78 ; During initialization, until the end of DetectDrives_FromAllIDEControllers, 71 ; this byte contains the raw number of floppy drives seen (using .bFlopCreateCnt) 79 ; this byte contains the raw number of floppy drives seen 80 ; (using .bFlopCreateCnt) 72 81 %else 73 82 resb 1 ; alignment 74 83 %endif 84 85 %ifdef MODULE_DRIVEXLATE 75 86 .bXlatedDrv resb 1 ; Drive number after translation 76 87 .wFDandHDswap: 77 88 .bFDSwap resb 1 ; Floppy Drive to swap to 00h and vice versa 78 89 .bHDSwap resb 1 ; Hard Drive to swap to 80h and vice versa 90 %else 91 resb 1 ; alignment 92 %endif 79 93 endstruc 80 94 %endif 81 82 95 83 96 %ifdef MODULE_SERIAL_FLOPPY
Note:
See TracChangeset
for help on using the changeset viewer.