Changeset 292 in xtideuniversalbios for trunk/Assembly_Library/Src


Ignore:
Timestamp:
Mar 3, 2012, 6:53:28 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Small optimization, moved around some serial code to avoid a few jumps and unnecessary number of sectors check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Serial/SerialServer.asm

    r277 r292  
    3737        mov     al,[bp+SerialServer_Command.bSectorCount]
    3838        mov     ah,[bp+SerialServer_Command.bCommand]
     39       
    3940;
    4041; Command byte and sector count live at the top of the stack, pop/push are used to access
     
    116117        push    ax
    117118
     119%ifndef SERIALSERVER_NO_ZERO_SECTOR_COUNTS
    118120        test    al,al           ; if no sectors to be transferred, wait for the ACK checksum on the command
    119121        jz      .zeroSectors
    120 
     122%endif
     123       
    121124;
    122125; Top of the read/write loop, one iteration per sector
Note: See TracChangeset for help on using the changeset viewer.