User`s manual

141 Appendix C
mov dx, SMBus_Port + 05h
in al, dx
NEWIODELAY
NEWIODELAY
pop dx
pop cx
pop bx
ret
I2CReadByte Endp
;[]==========================================================[]
;Input : CL - register index
; AL - value to write
;[]==========================================================[]
I2CWriteByte ProcNear
pusha
push ax
mov dx, SMBus_Port + 04h
mov al, GPIO_Address
out dx, al
NEWIODELAY
NEWIODELAY
call Chk_SMBus_Ready
mov al, cl
mov dx, SMBus_Port + 03h
out dx, al
NEWIODELAY
NEWIODELAY
pop ax
mov dx, SMBus_Port + 05h
out dx, al
NEWIODELAY