NAR-5620 Series
User
’
s
Manual
28
; ---- t1 start
; GPI6 , read its status , initialization will be 0 .
;
;
How to read GPI6
;
-------------------------------------------------------
;
PMBASE has been stored in EBX[31..16].
;
Get GPI6 status from GPE0_STS (=28h)-bit22
;
0 = low , 1= high level
;
-------------------------------------------------------
call READ_GPI6_TO_AL
and al,40h ; mask bit6
cmp al,00h
je next_test1 ; okay , go on test
;
jz next_test1 ; okay , go on test
; no , error message display
lea dx,promp_err1
mov ah,09h
int 21h
lea dx,promp_err1_1
mov ah,09h
int 21h
ror edx,10h
; error falg EDX_Bit16 , 1 --> Error happened
or dl,01h