User`s manual
AIMB-740-B/741-B User’s Manual 136
;[]==========================================================[]
;Input : BX - GPI sequence Table offset
;Output : COUNT - number of GPI Low
;[]==========================================================[]
Dsp_GPI_SEQProcNear
pusha
mov COUNT, 0
mov cx, SEQ_LEN
gpi_sts:
mov ax, cx
sub ax, SEQ_LEN
neg ax
xlat
call Get_GPI_Status
P_HEX al
P_CHAR20h
.IF al == 0
inc COUNT
.ENDIF
loop gpi_sts
popa
ret
Dsp_GPI_SEQEndP
;[]==========================================================[]
;Input : AL - GPIO number
; For example, AL is 20 if use GPIO 20
;Output : AL - 1 = High
; 0 = Low
;[]==========================================================[]
Get_GPI_StatusProcNear
push dx
push bx