Changeset 287 in xtideuniversalbios for trunk/Assembly_Library/Src/Time


Ignore:
Timestamp:
Mar 2, 2012, 12:31:39 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • Hopefully fixed a problem of wrong sized MDA cursor.
  • Some minor improvements.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Time/SystemTimer.asm

    r256 r287  
    2929; 2. Use START_PRECISE_EVENT_TIMER macro to start timer
    3030; 3. Use STOP_PRECISE_EVENT_TIMER to stop timer (optional)
    31 ; 4. Call SystemTimer_ReadNanosecsToDXAXfromPreciseEventTimer to get event duration
     31; 4. Call SystemTimer_GetPreciseEventTimerTicksToAX to get event duration
    3232;
    33 ; SystemTimer_ReadNanosecsToDXAXfromPreciseEventTimer
     33; SystemTimer_GetPreciseEventTimerTicksToAX
    3434;   Parameters:
    3535;       Nothing
    3636;   Returns:
    37 ;       DX:AX:  Event duration in nanosecs
     37;       AX:     Event duration in timer ticks
    3838;   Corrupts registers:
    3939;       Nothing
    4040;--------------------------------------------------------------------
    4141ALIGN JUMP_ALIGN
    42 SystemTimer_ReadNanosecsToDXAXfromPreciseEventTimer:
     42SystemTimer_GetPreciseEventTimerTicksToAX:
    4343    OUTPUT_COUNTER_COMMAND_TO TIMER_2, LATCH, MODE_0_SINGLE_TIMEOUT, BINARY_COUNTER
    4444    READ_COUNT_TO_AX_FROM TIMER_2
    4545    neg     ax                  ; 0 - count (Mode 0 counts toward zero)
    46     mov     dx, TIMER_CYCLE_TIME
    47     mul     dx
    4846    ret
Note: See TracChangeset for help on using the changeset viewer.