
100 SBC-658 User Manual
ExitConfig endp
;; Select The I/O Chip Program Configuration Register Logical
Device
;; Input : bl = logical device number
SelectDevice proc
push ax
push dx
mov
al,07h
;; Select control register 7
mov
dx,cs:CONFIG_PORT
out
dx,al
;; Write to Config Port
jmp
$+2
mov
al,bl
;; Write logical device number
mov
dx,cs:DATA_PORT
;; to Data Port
out
dx,al
pop
dx
pop
ax
ret
SelectDevice endp
;; Setting I/O Chip Program Configuration Register Value
;; Input : al = register number
;; ah = setting value