Changeset 491 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus
- Timestamp:
- Dec 15, 2012, 2:46:29 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Menus
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrint.asm
r489 r491 76 76 ;-------------------------------------------------------------------- 77 77 BootMenuPrint_TitleStrings: 78 xor di,di ; Null character will be eaten 78 xor di,di ; Null character will be eaten 79 79 mov si, g_szBootMenuTitle 80 80 jmp DetectPrint_RomFoundAtSegment.BootMenuEntry 81 81 82 82 83 83 ;-------------------------------------------------------------------- 84 84 ; BootMenuPrint_RefreshInformation … … 203 203 jz SHORT BootMenuPrint_RefreshInformation.FormatRelay 204 204 205 %include "BootMenuPrintCfg.asm" ; inline of code to fill out remainder of information string205 %include "BootMenuPrintCfg.asm" ; Inline of code to fill out remainder of information string 206 206 jmp DetectPrint_FormatCSSIfromParamsInSSBP 207 207 208 208 209 209 FloppyTypes: 210 .rgbCapacityMultiplier equ 20; Multiplier to reduce word sized values to byte size210 .rgbCapacityMultiplier equ 120 ; Multiplier to reduce word sized values to byte size 211 211 .rgbCapacity: 212 212 db 360 / FloppyTypes.rgbCapacityMultiplier ; type 1 -
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrintCfg.asm
r473 r491 51 51 ; CS:BX: Ptr to IDEVARS 52 52 ; Returns: 53 ; Nothing ( jumps to next push below)53 ; Nothing (falls to next push below) 54 54 ; Corrupts registers: 55 55 ; AX, CX, DX … … 86 86 .PushBlockSizeFromAX: 87 87 push ax 88 ; Fall to .PushDeviceType 88 89 89 90 ;-------------------------------------------------------------------- 90 ; PushDeviceType 91 ; Parameters: 92 ; DS:DI: Ptr to DPT 93 ; CS:BX: Ptr to IDEVARS 94 ; Returns: 95 ; Nothing (jumps to next push below) 96 ; Corrupts registers: 97 ; AX, DX 98 ;-------------------------------------------------------------------- 99 .PushDeviceType: 100 mov al,g_szDeviceTypeValues_Displacement 101 %ifdef MODULE_SERIAL 102 mov ah, [cs:bx+IDEVARS.bDevice] 103 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 104 eCMOVZ ah, [di+DPT_ATA.bDevice] ; DPT_ATA contains up to date device information for IDE drives 105 mul ah 106 %else 107 mul BYTE [di+DPT_ATA.bDevice] 108 %endif 109 110 shr ax,1 ; divide by 2 since IDEVARS.bDevice is multiplied by 2 111 112 add ax, g_szDeviceTypeValues 113 push ax 114 115 ;-------------------------------------------------------------------- 116 ; PushIRQ 91 ; .PushDeviceType 117 92 ; Parameters: 118 93 ; DS:DI: Ptr to DPT … … 121 96 ; Nothing (falls to next push below) 122 97 ; Corrupts registers: 123 ; AX, DX 98 ; AX 99 ;-------------------------------------------------------------------- 100 .PushDeviceType: 101 %ifndef MODULE_SERIAL 102 mov al, g_szDeviceTypeValues_Displacement 103 mul BYTE [di+DPT_ATA.bDevice] 104 %else 105 mov ah, [cs:bx+IDEVARS.bDevice] 106 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE ; Clears CF 107 eCMOVZ ah, [di+DPT_ATA.bDevice] ; DPT_ATA contains up to date device information for IDE drives 108 %ifdef USE_UNDOC_INTEL 109 eSALC ; Clear AL using CF (from TEST above) 110 eAAD g_szDeviceTypeValues_Displacement 111 %else 112 mov al, g_szDeviceTypeValues_Displacement 113 mul ah 114 %endif ; USE_UNDOC_INTEL 115 %endif ; MODULE_SERIAL 116 117 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 118 %if (COUNT_OF_ALL_IDE_DEVICES * 2 * g_szDeviceTypeValues_Displacement) > 255 119 %error "The USE_UNDOC_INTEL block in .PushDeviceType needs to be removed (would cause an overflow)!" 120 %endif 121 %endif 122 123 shr ax, 1 ; Divide by 2 since IDEVARS.bDevice is multiplied by 2 124 add ax, g_szDeviceTypeValues 125 push ax 126 ; Fall to .PushIRQ 127 128 ;-------------------------------------------------------------------- 129 ; .PushIRQ 130 ; Parameters: 131 ; DS:DI: Ptr to DPT 132 ; CS:BX: Ptr to IDEVARS 133 ; Returns: 134 ; Nothing (falls to next push below) 135 ; Corrupts registers: 136 ; AX 124 137 ;-------------------------------------------------------------------- 125 138 .PushIRQ: … … 127 140 cbw 128 141 push ax 142 ; Fall to .PushResetStatus 129 143 130 144 ;-------------------------------------------------------------------- 131 ; PushResetStatus145 ; .PushResetStatus 132 146 ; Parameters: 133 147 ; DS:DI: Ptr to DPT -
trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
r410 r491 327 327 HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL: 328 328 eMOVZX ax, dl 329 call Char_ChangeCaseInAL; Upper case drive letter to lower case keystroke329 xor al, 32 ; Upper case drive letter to lower case keystroke 330 330 jmp SHORT HotkeyBar_StoreHotkeyToBootvarsIfValidKeystrokeInAX 331 331 … … 376 376 call Char_IsLowerCaseLetterInAL 377 377 jnc SHORT .KeystrokeIsNotValidHotkey 378 call Char_ChangeCaseInAL; We want to print upper case letters378 xor al, 32 ; We want to print upper case letters 379 379 380 380 ; Clear HD First flag to assume Floppy Drive hotkey
Note:
See TracChangeset
for help on using the changeset viewer.