Ignore:
Timestamp:
Feb 4, 2012, 6:21:22 PM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Serial Port: split single byte port and baud into two bytes, taking advantage of the two bytes in DPT_SERIAL, which supports more serial baud rates and in particular fixed a bug where a 4x client machine couldn't talk to a 115.2K server machine. This is a wide change, touching lots of files, but most are shallow changes. DetectPrint.asm took the most significant changes, now it calculates the baud rate to display instead of using characters provided by the Configurator. The Configurator now has a new menu flag, FLG_MENUITEM_CHOICESTRINGS, for specifying that values are not linear and they should be lookedup rather than indexed. Finally, another important bug fixed here is that in some error cases, the serial port code could get into an infinite loop waiting ont the hardware; now it has a timeout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm

    r199 r233  
    289289    mov     ax, [es:di]
    290290
     291    test    BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_BYTEVALUE
     292    jz      SHORT .NoConvertWordToByteValue
     293    xor     ah, ah              ; conversion needs to happen before call to the reader,
     294                                ; in case the reader unpacks the byte to a word
     295       
     296.NoConvertWordToByteValue:
    291297    mov     bx, [si+MENUITEM.itemValue+ITEM_VALUE.fnValueReader]
    292298    test    bx,bx
     
    300306    pop     es
    301307
    302     test    BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_BYTEVALUE
    303     jnz     SHORT .ConvertWordToByteValue
    304308    test    BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_FLAGVALUE
    305309    jz      SHORT .Return
     
    309313    jnz     SHORT .Return
    310314    xor     ax, ax
    311 ALIGN JUMP_ALIGN
    312 .ConvertWordToByteValue:
    313     xor     ah, ah
     315
    314316ALIGN JUMP_ALIGN, ret
    315317.Return:
Note: See TracChangeset for help on using the changeset viewer.