Changeset 258 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialDPT.asm
- Timestamp:
- Feb 22, 2012, 7:01:53 PM (12 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialDPT.asm
r242 r258 11 11 ; ES:SI: Ptr to 512-byte ATA information read from the drive 12 12 ; Returns: 13 ; Nothing 13 ; CF: Set, indicates that this is a floppy disk 14 ; Clear, indicates that this is a hard disk 14 15 ; Corrupts registers: 15 16 ; AX 16 17 ;-------------------------------------------------------------------- 17 18 SerialDPT_Finalize: 18 or byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 19 mov ax, [es:si+ATA6.wVendor] 19 mov ax, [es:si+ATA6.wSerialPortAndBaud] 20 20 mov [di+DPT_SERIAL.wSerialPortAndBaud], ax 21 22 ; 23 ; Note that this section is not under %ifdef MODULE_SERIAL_FLOPPY. It is important to 24 ; detect floppy disks presented by the server and not treat them like hard disks, even 25 ; if the floppy support is disabled. 26 ; 27 mov al, [es:si+ATA6.wSerialFloppyFlagAndType] 28 or al, FLGH_DPT_SERIAL_DEVICE 29 or byte [di+DPT.bFlagsHigh], al 30 31 test al, FLGH_DPT_SERIAL_FLOPPY ; clears CF 32 jz .notfloppy 33 stc 34 .notfloppy: 35 21 36 ret 22 37
Note: See TracChangeset
for help on using the changeset viewer.