ECM-3410/3410L/3410N
ECM-3410/3410L/3410N User’s Manual
107
;;---------------------------------------------------
;; Select W83977 I/O chip Logic Device
;; bl : Device Number
;;---------------------------------------------------
Set_Device proc
push ax
push dx
mov dx, cs:W83977_IO_PORT
mov al, 07h
out dx, al
inc dx
mov al, bl
out dx, al
pop dx
pop ax
ret
Set_Device endp
;;---------------------------------------------------
;;---------------------------------------------------
;; Write data to W83977 Register
;; al : register number
;; ah : data
;; bl : device number
;;---------------------------------------------------
W977_Register_Set PROC
push dx
call Unlock_977
call Set_Device
mov dx, cs: W83977_IO_PORT
out dx, al
mov al, ah
inc dx
out dx, al
call Lock_977
pop dx
ret
W977_Register_Set ENDP
;;---------------------------------------------------
end