Changeset 589 in xtideuniversalbios for trunk/BIOS_Drive_Information_Tool
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- Location:
- trunk/BIOS_Drive_Information_Tool/Src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BIOS_Drive_Information_Tool/Src/Bios.asm
r566 r589 146 146 mov bx, 55AAh 147 147 int BIOS_DISK_INTERRUPT_13h 148 jc SHORT .NoEbiosPresent 149 cmp bx, 0AA55h 150 jne SHORT .NoEbiosPresent 151 eMOVZX bx, ah ; Copy version to BX 152 xor ah, ah 153 ret 154 .NoEbiosPresent: 155 mov ah, RET_HD_INVALID 156 stc 148 jc SHORT ReturnInvalidErrorCodeInAH ; No EBIOS present 149 xor bx, 0AA55h 150 jnz SHORT ReturnInvalidErrorCodeInAH ; No EBIOS present 151 xchg bl, ah ; Version to BX, BIOS error code to AH 157 152 ret 158 153 -
trunk/BIOS_Drive_Information_Tool/Src/Main.asm
r558 r589 60 60 mov si, g_szProgramName 61 61 call Print_NullTerminatedStringFromSI 62 63 call ReadAndDisplayAllHardDrives 64 65 ; Exit to DOS 66 mov ax, 4C00h ; Exit to DOS 67 int 21h 62 ; Fall to ReadAndDisplayAllHardDrives 68 63 69 64 … … 112 107 loop .DisplayNextDriveFromDL 113 108 .NoDrivesAvailable: 114 ret 109 ret ; Exit to DOS 115 110 116 111 -
trunk/BIOS_Drive_Information_Tool/Src/Print.asm
r567 r589 42 42 ; Parameters: 43 43 ; AL: Character to output 44 ; DS: BDA segment (zero) 45 ; ES:DI: Ptr to video memory where to output 46 ; Returns: 47 ; DI: Incremented for next character 44 ; Returns: 45 ; Nothing 48 46 ; Corrupts registers: 49 47 ; AX, DX … … 51 49 DosCharOut: 52 50 xchg dx, ax 53 mov ah, 02h ; DOS 1+ - WRITE CHARACTER TO STANDARDOUTPUT54 int 21h ; Call DOS51 mov ah, WRITE_CHARACTER_TO_STANDARD_OUTPUT 52 int DOS_INTERRUPT_21h 55 53 ret 56 54
Note:
See TracChangeset
for help on using the changeset viewer.