source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialDPT.asm@ 254

Last change on this file since 254 was 242, checked in by krille_n_@…, 13 years ago

Changes:

  • Optimizations (both for size and speed) in IdeTransfer.asm and MemIdeTransfer.asm
  • Fixed a bug where the SingleByteRead/Write functions in IdeTransfer.asm would fail on 128 sector transfers.
  • Fixed some typos and errors in general, comments etc.
File size: 650 bytes
RevLine 
[150]1; Project name : XTIDE Universal BIOS
2; Description : Sets Serial Device specific parameters to DPT.
3
4; Section containing code
5SECTION .text
6
7;--------------------------------------------------------------------
8; SerialDPT_Finalize
9; Parameters:
10; DS:DI: Ptr to Disk Parameter Table
11; ES:SI: Ptr to 512-byte ATA information read from the drive
12; Returns:
13; Nothing
14; Corrupts registers:
[242]15; AX
[150]16;--------------------------------------------------------------------
[179]17SerialDPT_Finalize:
18 or byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
[233]19 mov ax, [es:si+ATA6.wVendor]
[242]20 mov [di+DPT_SERIAL.wSerialPortAndBaud], ax
[179]21 ret
22
Note: See TracBrowser for help on using the repository browser.