Changeset 196 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
- Timestamp:
- Nov 19, 2011, 11:18:39 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
r192 r196 36 36 ; Nothing 37 37 ; Corrupts registers: 38 ; AX, SI, DI 38 ; AX, SI, DI, CX 39 39 ;-------------------------------------------------------------------- 40 40 DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP: 41 41 push bp 42 42 mov di, [cs:bp+IDEVARS.wPort] 43 %ifdef MODULE_SERIAL 44 mov cx, [cs:bp+IDEVARS.wSerialPackedPrintBaud] 45 %endif 46 43 47 mov bp, sp 44 push ax ; Push "Master" or "Slave" 45 push di ; Push port number 46 jmp DetectPrint_BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay 48 49 push ax ; Push "Master" or "Slave" 50 51 push di ; Push Port address or COM port number 52 53 %ifdef MODULE_SERIAL 54 ; 55 ; Baud rate is packed into one word: 56 ; High order 6 bits: number to add to '0' to get postfix character ('0' or 'K') 57 ; Low order 10 bits: binary number to display (960, 240, 38, or 115) 58 ; To get 9600: '0'<<10 + 960 59 ; To get 2400: '0'<<10 + 240 60 ; To get 38K: ('K'-'0')<<10 + 38 61 ; To get 115K: ('K'-'0')<<10 + 115 62 ; 63 mov ax,cx ; Unpack baud rate number 64 and ax,03ffh 65 push ax 66 67 mov al,ch ; Unpack baud rate postfix ('0' or 'K') 68 eSHR_IM al,2 69 add al,'0' 70 push ax 71 %endif 72 73 jmp short DetectPrint_BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay 47 74 48 75 … … 70 97 71 98 72 ;-------------------------------------------------------------------- 73 ; DetectPrint_DriveNotFound 74 ; Parameters: 75 ; Nothing 76 ; Returns: 77 ; Nothing 78 ; Corrupts registers: 79 ; AX, SI 80 ;-------------------------------------------------------------------- 81 DetectPrint_DriveNotFound: 82 mov si, g_szNotFound 83 jmp BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 99
Note:
See TracChangeset
for help on using the changeset viewer.