Changeset 196 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/Serial


Ignore:
Timestamp:
Nov 19, 2011, 11:18:39 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Added printing of COM port and baud rate, when set explicitly by idecfg. Although it eats some bytes, I think it is worth it, since the BIOS will be looking for a server on a particular com port and baud rate, and it could be hard to troubleshoot a mismatch without this information. However, if we become space crunched, this change can be backed out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm

    r181 r196  
    4040SerialCommand_UART_scratch                      EQU     7
    4141
     42; note that the actual StaringPoint port address is not achievable (results in 0 which triggers auto detect)
    4243SerialCommand_PackedPortAndBaud_StartingPort    EQU     240h
     44       
    4345SerialCommand_PackedPortAndBaud_PortMask        EQU     0fch    ; upper 6 bits - 240h through 438h
    4446SerialCommand_PackedPortAndBaud_BaudMask        EQU     3       ; lower 2 bits - 4 baud rates
     
    125127        and     dl, SerialCommand_PackedPortAndBaud_PortMask
    126128        mov     dh, 0
    127         shl     dx, 1
     129        shl     dx, 1           ; port offset already x4, needs one more shift to be x8
    128130        add     dx, SerialCommand_PackedPortAndBaud_StartingPort
    129131
     
    499501SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH:
    500502
    501         mov     dx,[cs:bp+IDEVARS.wPortCtrl]
    502         inc     dx
    503         dec     dx
     503        mov     dl,[cs:bp+IDEVARS.bSerialPackedPortAndBaud]
     504        test    dl,dl
    504505        jz      SerialCommand_AutoSerial
    505506
     
    542543;
    543544
    544 SerialCommand_ScanPortAddresses:  db  0b8h, 0f8h, 0bch, 0bah, 0fah, 0beh, 0feh, 0
    545 ; Corresponds to I/O port:             3f8,  2f8,  3e8,  2e8,  2f0,  3e0,  2e0,  260,  368,  268,  360,  270
    546 ; COM Assignments:                       1,    2,    3,    4,    5,    6,    7,    8,    9,   10,   11,   12
     545SerialCommand_ScanPortAddresses:     db  0b8h, 0f8h, 0bch, 0bah, 0fah, 0beh, 0feh, 0
     546; Corresponds to I/O port:                3f8,  2f8,  3e8,  2e8,  2f0,  3e0,  2e0,  260,  368,  268,  360,  270
     547; COM Assignments:                          1,    2,    3,    4,    5,    6,    7,    8,    9,   10,   11,   12
     548; Corresponds to Packed I/O port (hex):    37,   17,   35,   15,   16,   34,   14,    4,   25,    5,   24,    6     
    547549
    548550ALIGN JUMP_ALIGN
Note: See TracChangeset for help on using the changeset viewer.