User`s manual

139 Appendix C
;Output : BH - GPIO bit mask
; BL - GPIO register index
;[]==========================================================[]
Get_GPIO_InfoProcNear
push ax ;push ax to store ah
push cx
push dx
push ax
mov ax, @DATA
mov ds, ax
pop ax
lea bx, GPIO_Table
xlat
mov cl, al
and cl, 0F0h
mov bl, cl
; patch for F75111
cmp bl, 30h
jne Not_GPIO_3X
mov bl, 40h ; GPIO3X at 40h
Not_GPIO_3X:
mov cl, al
and cl, 0Fh
mov ax, 1
shl al, cl
mov bh, al
pop dx
pop cx
pop ax
ret