Hardware Reference
In-Depth Information
Figure 12.8 Simplified circuit of the enunciator card
MOV
BX,[BP+6]
; get argument passed
MOV
AX,[BX]
; and preserve in BX
MOV
BX,AX
PUSH SI
PUSH DI
PUSH SS
PUSH DS
MOV
DX,0300H
; port used for analogue input
MOV
AX,7000H
; block 0 is at 70000H
MOV
DS,AX
MOV
DI,0
; first location
MOV
CX,0FFFFH
; buffer size 64k
Rloop1:
IN
AL,DX
; get a byte
MOV
[DI],AL
; and save it to the buffer
INC
DI
; point to next location
CALL Sdelay
; sampling delay
Search WWH ::




Custom Search