Changeset 602 in xtideuniversalbios for trunk/Assembly_Library/Src/Util


Ignore:
Timestamp:
May 9, 2019, 8:11:46 PM (6 years ago)
Author:
Krister Nordvall
Message:

Changes:

  • SerDrive: Fixed a bug that prevented use of 3.5" 720 KB floppy disk images.
  • Also added support for Microsoft DMF (Distribution Media Format) floppy disk images.
  • XTIDECFG / Library: Minor size optimizations. Added a new macro (SKIP1B) as part of that.
  • BIOS: A small size optimization (2 bytes) to MODULE_8BIT_IDE_ADVANCED that is enabled only when USE_NEC_V is defined.
Location:
trunk/Assembly_Library/Src/Util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Util/Memory.asm

    r592 r602  
    122122
    123123;--------------------------------------------------------------------
     124; Memory_ReserveCLbytesFromStackToDSSI
    124125; Memory_ReserveCXbytesFromStackToDSSI
    125126;   Parameters
    126 ;       CX:     Number of bytes to reserve
     127;       CL/CX:  Number of bytes to reserve
    127128;   Returns:
    128129;       DS:SI:  Ptr to reserved buffer
     
    132133%ifndef EXCLUDE_FROM_XUB
    133134ALIGN JUMP_ALIGN
     135Memory_ReserveCLbytesFromStackToDSSI:
     136    xor     ch, ch
    134137Memory_ReserveCXbytesFromStackToDSSI:
    135138    pop     ax
  • trunk/Assembly_Library/Src/Util/Sort.asm

    r592 r602  
    3232;       ES:DI:  Ptr to second item to compare
    3333;   Returns:
    34 ;       FLAGS:  Signed comparition between first and second item
     34;       FLAGS:  Signed comparison between first and second item
    3535;   Corrupts registers:
    3636;       Nothing
     
    5656Sort_ItemsFromDSSIwithCountInDXsizeInCXandComparatorInBX:
    5757    push    es
    58     push    di
    59     mov     di, cx
    60     eSHL_IM cx, 1                       ; Reserve temp and pivot items
    61     add     cx, BYTE QSORT_PARAMS_size
    62     eENTER_STRUCT cx
    63     push    cx
     58    mov     ax, cx
     59    eSHL_IM ax, 1                       ; Reserve temp and pivot items
     60    add     ax, BYTE QSORT_PARAMS_size
     61    eENTER_STRUCT ax
     62    push    ax
    6463
    6564%ifdef CLD_NEEDED
    6665    cld
    6766%endif
    68     mov     cx, di                      ; Restore item size to CX
    6967    xor     ax, ax                      ; Zero starting index
    7068    dec     dx                          ; Count to index of last item
     
    7674    pop     ax
    7775    eLEAVE_STRUCT ax
    78     pop     di
    7976    pop     es
    8077    ret
Note: See TracChangeset for help on using the changeset viewer.