Changeset 60 in xtideuniversalbios for trunk/Assembly_Library/Src/Time
- Timestamp:
- Nov 25, 2010, 2:17:45 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Time/TimerTicks.asm
r41 r60 2 2 ; Project name : Assembly Library 3 3 ; Created date : 24.7.2010 4 ; Last update : 3.8.20104 ; Last update : 22.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for system timer related operations. … … 72 72 ret 73 73 74 74 75 ;-------------------------------------------------------------------- 75 ; Timeout counter can be initialized with TimerTicks_InitializeTimeoutFromAX. 76 ; 77 ; TimerTicks_SetCarryIfTimeoutFromDSBX 76 ; TimerTicks_GetTimeoutTicksLeftToAXfromDSBX 78 77 ; Parameters: 78 ; AX: Number of ticks left before timeout 79 79 ; DS:BX: Ptr to timeout variable WORD 80 80 ; Returns: … … 85 85 ;-------------------------------------------------------------------- 86 86 ALIGN JUMP_ALIGN 87 TimerTicks_SetCarryIfTimeoutFromDSBX: 88 push ax 87 TimerTicks_GetTimeoutTicksLeftToAXfromDSBX: 88 push dx 89 mov dx, [bx] 89 90 call TimerTicks_ReadFromBdaToAX 90 cmp [bx], ax ; Set CF if timeout WORD is less than time 91 pop ax 91 xchg ax, dx 92 sub ax, dx ; AX = End time - current time 93 pop dx 92 94 ret 93 95
Note:
See TracChangeset
for help on using the changeset viewer.