Changeset 208 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src


Ignore:
Timestamp:
Jan 7, 2012, 8:17:49 PM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Enhanced checksum for serial communications, much better at detecting single bit errors.

File:
1 edited

Legend:

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

    r207 r208  
    322322; Compare checksums
    323323;
    324         xor     bp,si
     324        xchg    ax,bp
     325        xor     ah,al
     326        mov     cx,si
     327        xor     cl,ch
     328        mov     al,cl
    325329        cmp     ax,bp
    326330        jnz     SerialCommand_OutputWithParameters_Error
     
    479483
    480484        mov     ax,bp           ; merge checksum for possible write (last loop)
    481         xor     ax,si
     485        xor     ah,al
     486        mov     cx,si
     487        xor     cl,ch
     488        mov     al,cl
    482489
    483490        jmp     .writeLoopChecksum
Note: See TracChangeset for help on using the changeset viewer.