Changeset 186 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Nov 15, 2011, 10:35:17 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Boot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r182 r186 66 66 ; CF: Set since menu event was handled successfully 67 67 ; Corrupts registers: 68 ; AX 68 ; AX, DI 69 69 ;-------------------------------------------------------------------- 70 70 ALIGN JUMP_ALIGN 71 71 BootMenuPrint_NullTerminatedStringFromCSSIandSetCF: 72 push di 73 CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI 74 pop di 75 stc 76 ret 77 72 ; 73 ; We send all CSSI strings through the Format routine for the case of 74 ; compressed strings, but this doesn't hurt in the non-compressed case either 75 ; (perhaps a little slower, but shouldn't be noticeable to the user) 76 ; and results in smaller code size. 77 ; 78 push bp 79 mov bp,sp 80 jmp BootMenuPrint_FormatCSSIfromParamsInSSBP 78 81 79 82 ;-------------------------------------------------------------------- … … 229 232 cmp bl, FLOPPY_TYPE_525_HD 230 233 ja .ThreeHalf 234 %if g_szFddThreeFive_Displacement = 2 235 inc ax ; compressed string case 236 inc ax 237 %else 231 238 add ax, g_szFddThreeFive_Displacement 239 %endif 232 240 .ThreeHalf: 233 241 push ax ; "5 1/4" or "3 1/2" -
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrintCfg.asm
r185 r186 21 21 ALIGN JUMP_ALIGN 22 22 BootMenuPrintCfg_ForOurDrive: 23 pop di24 23 mov si, g_szCfgHeader 25 24 call BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 25 pop di 26 26 eMOVZX ax, BYTE [di+DPT.bIdevarsOffset] 27 27 xchg si, ax ; CS:SI now points to IDEVARS … … 91 91 mov al,g_szBusTypeValues_Displacement 92 92 mul BYTE [cs:si+IDEVARS.bDevice] 93 shr ax,1 93 94 shr ax,1 ; divide by 2 since IDEVARS.bDevice is multiplied by 2 95 94 96 add ax,g_szBusTypeValues 95 97 push ax
Note:
See TracChangeset
for help on using the changeset viewer.