
User’s Manual
WIN Enterprises, Inc.
May, 2009
65
0 1
0
0
4x
0 1
0
1
5x
0 1
1
0
6x
0 1
1
1
7x
1 0
0
0
8x
1 0
0
1
9x
1
0
1
0
Ax
1
0
1
1
Bx
1
1
0
0
Cx
1
1
0
1
Dx
1
1
1
0
Ex
1
1
1
1
Fx
Note: x is the reserved data.
DOS DEBUG
Program 1:
Initializing the GPIO
-O 2E 87
-O 2E 87
-O 2E 29 //configuration register(CR29)
-O 2F 01 //set GPIO ,not GAME PORT
-O 2E 07 //point to logical device number reg.
-O 2F 07 //select logical device 7
-O 2E 30 //configuration register(CR30)
-O 2F 01 //open logical device control
-O 2E F0 //configuration register(CRf0)
-O 2F 0F // 00001111: 0=ouput; 1=input
Program 2:
Programming of the GPI
-O 2E F1
-I 2F // read value (00 ~ FF)
Program 3:
Programming of the GPO
-O 2E F1
-O 2F Xx // X= (0 ~ F) output value; x=(0 ~ F) don’t care