78 PCM-4335 User's Manual
;; Setting I/O Chip Program Configuration Register Value
;; Input : al = register number
;; ah = setting value
W977Write PROC
push dx
call EnterConfig ;; Enter Config Mode
call SelectDevice ;; Select Logical Device
mov dx,cs:CONFIG_PORT ;; Write value(al) to Config Port
out dx,al ;; to select register number
mov al,ah
mov dx,cs:DATA_PORT ;; Write data(ah) to Data Port
out dx,al ;; to setting register value
call ExitConfig ;; Exit Config Mode
pop dx
ret
W977Write ENDP
end