TimerDemo: latch and read counters
mov dx, pcctcw ; set up dx for control word
mov al, 10000100xb ; to latch counter 2
out dx,al
mov dx, pcct2 ; this reads from the latch
; the counter continues to decrement
in al, dx ; low byte
mov bl, al
in al, dx ; high byte
mov bh, al
Previous slide
Next slide
Back to first slide
View graphic version