Normal quotes
This commit is contained in:
parent
5e10794a24
commit
18011c595a
352 changed files with 6040 additions and 6040 deletions
32
03-02.md
32
03-02.md
|
|
@ -35,10 +35,10 @@
|
|||
;
|
||||
; Note: These routines can introduce slight inaccuracies into the
|
||||
; system clock count for each code section timed even if
|
||||
; timer 0 doesn’t overflow. If timer 0 does overflow, the
|
||||
; timer 0 doesn't overflow. If timer 0 does overflow, the
|
||||
; system clock can become slow by virtually any amount of
|
||||
; time, since the system clock can’t advance while the
|
||||
; precison timer is timing. Consequently, it’s a good idea
|
||||
; time, since the system clock can't advance while the
|
||||
; precison timer is timing. Consequently, it's a good idea
|
||||
; to reboot at the end of each timing session. (The
|
||||
; battery-backed clock, if any, is not affected by the Zen
|
||||
; timer.)
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
; in when ZTimerOn was called.
|
||||
;
|
||||
|
||||
Code segment word public ‘CODE’
|
||||
Code segment word public ‘CODE'
|
||||
assumecs: Code, ds:nothing
|
||||
public ZTimerOn, ZTimerOff, ZTimerReport
|
||||
|
||||
|
|
@ -117,26 +117,26 @@
|
|||
OutputStr label byte
|
||||
db 0dh, 0ah, ‘Timed count: ‘, 5 dup (?)
|
||||
ASCIICountEnd labelbyte
|
||||
db ‘ microseconds’, 0dh, 0ah
|
||||
db ‘$’
|
||||
db ‘ microseconds', 0dh, 0ah
|
||||
db ‘$'
|
||||
;
|
||||
; String printed to report timer overflow.
|
||||
;
|
||||
OverflowStr label byte
|
||||
db 0dh, 0ah
|
||||
db ‘****************************************************’
|
||||
db ‘****************************************************'
|
||||
db 0dh, 0ah
|
||||
db ‘* The timer overflowed, so the interval timed was *’
|
||||
db ‘* The timer overflowed, so the interval timed was *'
|
||||
db 0dh, 0ah
|
||||
db ‘* too long for the precision timer to measure. *’
|
||||
db ‘* too long for the precision timer to measure. *'
|
||||
db 0dh, 0ah
|
||||
db ‘* Please perform the timing test again with the *’
|
||||
db ‘* Please perform the timing test again with the *'
|
||||
db0dh, 0ah
|
||||
db ‘* long-period timer. *’
|
||||
db ‘* long-period timer. *'
|
||||
db 0dh, 0ah
|
||||
db ‘****************************************************’
|
||||
db ‘****************************************************'
|
||||
db 0dh, 0ah
|
||||
db ‘$’
|
||||
db ‘$'
|
||||
|
||||
; ********************************************************************
|
||||
; * Routine called to start timing. *
|
||||
|
|
@ -158,7 +158,7 @@
|
|||
; to 0
|
||||
push ax
|
||||
;
|
||||
; Turn on interrupts, so the timer interrupt can occur if it’s
|
||||
; Turn on interrupts, so the timer interrupt can occur if it's
|
||||
; pending.
|
||||
;
|
||||
sti
|
||||
|
|
@ -171,7 +171,7 @@
|
|||
mov al,00110100b ;mode 2
|
||||
out MODE_8253,al
|
||||
;
|
||||
; Set the timer count to 0, so we know we won’t get another
|
||||
; Set the timer count to 0, so we know we won't get another
|
||||
; timer interrupt right away.
|
||||
; Note: this introduces an inaccuracy of up to 54 ms in the system
|
||||
; clock count each time it is executed.
|
||||
|
|
@ -418,7 +418,7 @@
|
|||
CTSLoop:
|
||||
sub dx, dx
|
||||
div bx
|
||||
add dl,’0’
|
||||
add dl,'0'
|
||||
mov [si],dl
|
||||
dec si
|
||||
loop CTSLoop
|
||||
|
|
|
|||
Loading…
Reference in a new issue