Last change
on this file since 195 was 181, checked in by krille_n_@…, 13 years ago |
Changes to all parts of the project:
- Size optimizations.
- Added a define (EXCLUDE_FROM_XTIDECFG) to exclude unused library code from XTIDECFG.
- Tried to minimize time spent with interrupts disabled.
- Some minor attempts to improve speed (reordering instructions etc).
- Tried to improve readability, did some cleanup and fixed some errors in comments.
|
File size:
699 bytes
|
Rev | Line | |
---|
[150] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
| 2 | ; Description : Sets Serial Device specific parameters to DPT.
|
---|
| 3 |
|
---|
| 4 | ; Section containing code
|
---|
| 5 | SECTION .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 | ;--------------------------------------------------------------------
|
---|
[179] | 17 | SerialDPT_Finalize:
|
---|
| 18 | or byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
|
---|
| 19 | mov al, byte [es:si+SerialCommand_IdentifyDevice_PackedPortAndBaud]
|
---|
[181] | 20 | mov byte [di+DPT.bSerialPortAndBaud], al
|
---|
[179] | 21 | ret
|
---|
| 22 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.