Changeset 148 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Common/HTimer.asm
- Timestamp:
- Mar 19, 2011, 8:09:41 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Common/HTimer.asm
r143 r148 45 45 ; RTC resolution is 977 microsecs. 46 46 ; 47 ; HTimer_ MicrosecondsFromAX47 ; HTimer_DelayMicrosecondsFromAX 48 48 ; Parameters: 49 49 ; AX: Number of microsecs to wait … … 53 53 ; AX 54 54 ;-------------------------------------------------------------------- 55 HTimer_ MicrosecondsFromAX:55 HTimer_DelayMicrosecondsFromAX: 56 56 %ifndef USE_AT 57 57 mov ax, 1 … … 62 62 63 63 xor cx, cx 64 xchg dx, ax 64 xchg dx, ax ; Microsecs now in CX:DX 65 65 mov ah, EVENT_WAIT 66 66 int BIOS_SYSTEM_INTERRUPT_15h 67 sti 67 sti ; XT BIOSes return with interrupt disabled 68 68 69 69 pop cx 70 70 pop dx 71 mov ax, 1 ; Prepare to wait 1 timer tick72 jc SHORT HTimer_ TimerTicksFromAX ; Event Wait was unsupported or busy71 mov ax, 1 ; Prepare to wait 1 timer tick 72 jc SHORT HTimer_DelayTimerTicksFromAX ; Event Wait was unsupported or busy 73 73 ret 74 74 %endif … … 79 79 ; will occur at 54.9 ms intervals. 80 80 ; 81 ; HTimer_ TimerTicksFromAX81 ; HTimer_DelayTimerTicksFromAX 82 82 ; Parameters: 83 83 ; AX: Number of timer ticks to wait … … 87 87 ; AX 88 88 ;-------------------------------------------------------------------- 89 HTimer_ TimerTicksFromAX:89 HTimer_DelayTimerTicksFromAX: 90 90 sti ; Make sure that interrupts are enabled 91 91 call ReadTimeFromBdaToCX
Note:
See TracChangeset
for help on using the changeset viewer.