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

Last change on this file since 208 was 203, checked in by gregli@…, 13 years ago

Reworked the 'skip detecting the slave if there was no master' code to be more complete (includes configurator drives) and to take into account int13h/25h calls. Some of the changes in my last checkin have been rolled back as a result (they are no longer needed). I did take a byte out of RAMVARS, but there was an alignment byte available for the taking. I also added a perl script for padding and adding the checksum byte to a binary image, which can be invoked manually or with 'make checksum'.

File size: 681 bytes
Line 
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:
15; AX, BX, CX, DX
16;--------------------------------------------------------------------
17SerialDPT_Finalize:
18 or byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
19 mov al, [RAMVARS.xlateVars+XLATEVARS.bLastSerial]
20 mov byte [di+DPT.bSerialPortAndBaud], al
21 ret
22
Note: See TracBrowser for help on using the repository browser.