Changeset 88 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization
- Timestamp:
- Jan 27, 2011, 8:14:13 AM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Initialization
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
r86 r88 1 ; Project name : IDEBIOS1 ; Project name : XTIDE Universal BIOS 2 2 ; Description : Functions for printing drive detection strings. 3 3 … … 14 14 ; Nothing 15 15 ; Corrupts registers: 16 ; AX, CX, DX,SI16 ; AX, SI 17 17 ;-------------------------------------------------------------------- 18 18 ALIGN JUMP_ALIGN 19 19 DetectPrint_RomFoundAtSegment: 20 push cs21 ePUSH_T ax, ROMVARS.szTitle 20 push bp 21 22 22 mov si, g_szRomAt 23 jmp SHORT DetectPrint_4BytesPushedToStack 23 mov bp, sp 24 ePUSH_T ax, ROMVARS.szTitle ; Bios title string 25 push cs ; BIOS segment 26 jmp BootMenuPrint_FormatCSSIfromParamsInSSBP 24 27 25 28 … … 34 37 ; Nothing 35 38 ; Corrupts registers: 36 ; AX, CX, DX,SI39 ; AX, SI 37 40 ;-------------------------------------------------------------------- 38 41 ALIGN JUMP_ALIGN … … 50 53 ; DetectPrint_StartingDriveDetect 51 54 ; Parameters: 52 ; AX: Offsetto "Master" or "Slave" string55 ; CS:AX: Ptr to "Master" or "Slave" string 53 56 ; CS:BP: Ptr to IDEVARS 54 57 ; Returns: 55 58 ; Nothing 56 59 ; Corrupts registers: 57 ; AX, CX, DX,SI60 ; AX, SI 58 61 ;-------------------------------------------------------------------- 59 62 ALIGN JUMP_ALIGN 60 63 DetectPrint_StartingDriveDetect: 61 push WORD [cs:bp+IDEVARS.wPort] 62 push ax 64 push bp 65 66 mov si, [cs:bp+IDEVARS.wPort] 67 mov bp, sp 68 push ax ; Push "Master" or "Slave" 69 push si ; Push port number 63 70 mov si, g_szDetect 64 DetectPrint_4BytesPushedToStack: 65 mov dh, 4 ; 4 bytes pushed to stack 66 jmp PrintString_JumpToFormat 71 jmp BootMenuPrint_FormatCSSIfromParamsInSSBP 67 72 68 73 … … 79 84 ; Nothing 80 85 ; Corrupts registers: 81 ; AX, DX,SI86 ; AX, SI 82 87 ;-------------------------------------------------------------------- 83 88 ALIGN JUMP_ALIGN 84 89 DetectPrint_DriveNameOrNotFound: 90 push di 85 91 jc SHORT .PrintDriveNotFound 92 push bx 93 86 94 lea si, [bx+BOOTNFO.szDrvName] 87 call PrintString_FromES 88 jmp Print_Newline 95 mov bx, es 96 CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromBXSI 97 CALL_DISPLAY_LIBRARY PrintNewlineCharacters 98 99 pop bx 100 pop di 101 ret 102 89 103 ALIGN JUMP_ALIGN 90 104 .PrintDriveNotFound: 91 105 mov si, g_szNotFound 92 jmp PrintString_FromCS 106 call PrintNullTerminatedStringFromCSSIandSetCF 107 pop di 108 ret
Note:
See TracChangeset
for help on using the changeset viewer.