beautypg.com

AAEON AIS-E1 User Manual

Page 50

background image

Ad v a n c e d S y s t e m

C o n t r o l l e r

A I S - E 1

Appendix A Programming the Watchdog Timer

A-7

; game port enable

mov cl, 9

call Set_Logic_Device

Initial_OK:

CALL Exit_Configuration_mode

MOV AH,4Ch

INT 21h

Enter_Configuration_Mode PROC NEAR

MOV SI,WORD PTR CS:[Offset Cfg_Port]

MOV DX,02Eh

MOV CX,04h

Init_1:

MOV AL,BYTE PTR CS:[SI]

OUT DX,AL

INC SI

LOOP Init_1

RET

Enter_Configuration_Mode ENDP

Exit_Configuration_Mode PROC NEAR

MOV AX,0202h

CALL Write_Configuration_Data