Changeset 105 in xtideuniversalbios for trunk/Assembly_Library/Src/File/FileIO.asm


Ignore:
Timestamp:
Feb 17, 2011, 2:52:42 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:

  • More optimizations to reduce size.
  • Removed some utility functions to reduce size.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/File/FileIO.asm

    r67 r105  
    1 ; File name     :   FileIO.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   1.9.2010
    4 ; Last update   :   6.12.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for file access.
    73
     
    175171ALIGN JUMP_ALIGN
    176172.TransferNextBytes:
    177     call    Registers_NormalizeDSSI
     173    call    NormalizeDSSI
    178174    call    bp                      ; Transfer function
    179175    jc      SHORT .ErrorOccurredDuringTransfer
     
    184180    pop     cx                      ; CX = Bytes for last transfer
    185181    jcxz    .ReturnErrorCodeInAX    ; No remaining bytes
    186     call    Registers_NormalizeDSSI
     182    call    NormalizeDSSI
    187183    call    bp
    188184.ReturnErrorCodeInAX:
     
    195191    pop     cx                      ; Remove bytes for last transfer
    196192    jmp     SHORT .ReturnErrorCodeInAX
     193
     194;--------------------------------------------------------------------
     195; NormalizeDSSI
     196;   Parameters
     197;       DS:SI:  Ptr to normalize
     198;   Returns:
     199;       DS:SI:  Normalized pointer
     200;   Corrupts registers:
     201;       Nothing
     202;--------------------------------------------------------------------
     203ALIGN JUMP_ALIGN
     204NormalizeDSSI:
     205    push    dx
     206    push    ax
     207    NORMALIZE_FAR_POINTER ds, si, ax, dx
     208    pop     ax
     209    pop     dx
     210    ret
    197211
    198212
Note: See TracChangeset for help on using the changeset viewer.