Ignore:
Timestamp:
Mar 19, 2011, 8:09:41 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • INT 13h optimizations to save almost 100 bytes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Common/HTimer.asm

    r143 r148  
    4545; RTC resolution is 977 microsecs.
    4646;
    47 ; HTimer_MicrosecondsFromAX
     47; HTimer_DelayMicrosecondsFromAX
    4848;   Parameters:
    4949;       AX:     Number of microsecs to wait
     
    5353;       AX
    5454;--------------------------------------------------------------------
    55 HTimer_MicrosecondsFromAX:
     55HTimer_DelayMicrosecondsFromAX:
    5656%ifndef USE_AT
    5757    mov     ax, 1
     
    6262
    6363    xor     cx, cx
    64     xchg    dx, ax                          ; Microsecs now in CX:DX
     64    xchg    dx, ax                      ; Microsecs now in CX:DX
    6565    mov     ah, EVENT_WAIT
    6666    int     BIOS_SYSTEM_INTERRUPT_15h
    67     sti                                     ; XT BIOSes return with interrupt disabled
     67    sti                                 ; XT BIOSes return with interrupt disabled
    6868
    6969    pop     cx
    7070    pop     dx
    71     mov     ax, 1                           ; Prepare to wait 1 timer tick
    72     jc      SHORT HTimer_TimerTicksFromAX   ; Event Wait was unsupported or busy
     71    mov     ax, 1                               ; Prepare to wait 1 timer tick
     72    jc      SHORT HTimer_DelayTimerTicksFromAX  ; Event Wait was unsupported or busy
    7373    ret
    7474%endif
     
    7979; will occur at 54.9 ms intervals.
    8080;
    81 ; HTimer_TimerTicksFromAX
     81; HTimer_DelayTimerTicksFromAX
    8282;   Parameters:
    8383;       AX:     Number of timer ticks to wait
     
    8787;       AX
    8888;--------------------------------------------------------------------
    89 HTimer_TimerTicksFromAX:
     89HTimer_DelayTimerTicksFromAX:
    9090    sti                             ; Make sure that interrupts are enabled
    9191    call    ReadTimeFromBdaToCX
Note: See TracChangeset for help on using the changeset viewer.