Changeset 294 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
- Timestamp:
- Mar 4, 2012, 1:35:10 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
r285 r294 28 28 29 29 ;-------------------------------------------------------------------- 30 ; DetectPrint_StartDetectWithMasterOrSlaveStringIn AXandIdeVarsInCSBP30 ; DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP 31 31 ; Parameters: 32 32 ; CS:CX: Ptr to "Master" or "Slave" string … … 38 38 ; AX, SI, DI, CX 39 39 ;-------------------------------------------------------------------- 40 DetectPrint_StartDetectWithMasterOrSlaveStringIn AXandIdeVarsInCSBP:40 DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP: 41 41 mov ax, [cs:bp+IDEVARS.wPort] ; for IDE: AX=port address, DH=.bDevice 42 42 mov dx, [cs:bp+IDEVARS.bDevice-1] ; for Serial: AL=port address>>2, AH=baud rate … … 48 48 49 49 mov si, g_szDetectOuter ; Load SI with default wrapper string "IDE %s at %s: " 50 50 51 51 push bp ; setup stack for call to 52 52 mov bp, sp ; BootMenuPrint_FormatCSSIfromParamsInSSBP … … 98 98 mov cl, (g_szDetectCOMSmall-$$) & 0xff ; Setup secondary print string for "COMn/XXy00" 99 99 100 .pushAndPrintSerial: 100 .pushAndPrintSerial: 101 101 mov si, g_szDetectOuterSerial ; Finally load SI with wrapper string "Serial %s on %s: " 102 102 103 103 .pushAndPrint: 104 104 %endif 105 105 106 106 push cx ; Push print string 107 107 push ax ; Push high order digits, or port address, or N/A
Note:
See TracChangeset
for help on using the changeset viewer.