![VersaLogic VL-12CT96 Скачать руководство пользователя страница 55](http://html.mh-extra.com/html/versalogic/vl-12ct96/vl-12ct96_reference-manual_1006747055.webp)
VL-12CT96/7 Analog & Digital I/O Card
6-7
0049 D3 EB shr bx,cl ;Rotate right to align mask
004B BA 030A mov dx,parlo ;Fetch existing state of ports
004E ED in ax,dx
004F 0B C3 or ax,bx ;Set bit to turn channel on
0051 23 06 0000r and ax,dir ;Clear bits associated with input
0055 EE out dx,al ;Update parallel port
0056 5A pop dx ;Restore registers
0057 59 pop cx
0058 5B pop bx
0059 C3 ret
005A channel_off:
channel_off:
channel_off:
channel_off:
channel_off: ;Used to turn an output channel OFF
;AL=Channel Number. If an input
;channel is specified, nothing
;happens.
005A 53 push bx
005B 51 push cx
005C 52 push dx
005D BB 7FFF mov bx,7FFFh ;Setup initial mask position
0060 8A C8 mov cl,al ;Use channel # as rotate counter
0062 D3 EB shr bx,cl ;Rotate right to align mask
0064 BA 030A mov dx,parlo ;Fetch existing state of ports
0067 ED in ax,dx
0068 23 C3 and ax,bx ;Clear bit to turn channel on
006A 23 06 0000r and ax,dir ;Clear bits associated with input
006E EE out dx,al ;Update parallel port
006F 5A pop dx ;Restore registers
0070 59 pop cx
0071 5B pop bx
0072 C3 ret
end main
Software Examples — Parallel Port
Содержание VL-12CT96
Страница 2: ...ii VL 12CT96 7 Analog Digital I O Card ...
Страница 26: ...2 20 VL 12CT96 7 Analog Digital I O Card ...
Страница 32: ...3 6 VL 12CT96 7 Analog Digital I O Card ...
Страница 62: ...7 4 VL 12CT96 7 Analog Digital I O Card ...
Страница 65: ...VL 12CT96 7 Analog Digital I O Card 8 3 VL 12CT96 7 Parts Placement Reference ...