Subversion Repositories Shiroi

Rev

Rev 12 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
I/O List
2
 
3
If the I/O port (3n-1) returns 0, card is not there.
4
 
5
I/O port (3n-1) returns the card type.
6
	Top 4 bits mean the card genre:
7
		0x0: Video
8
		0x1: Audio
3 nishi 9
		0x2: System
1 nishi 10
	Bottom 4 bits mean the card type:
11
		Video:
12
			0x1: Video Mark I
7 nishi 13
			0x2: Video Mark II
1 nishi 14
		Audio:
15
			0x1: Sound Mark I
3 nishi 16
		System:
1 nishi 17
			0x1: Math Mark I
3 nishi 18
			0x2: Text Mark I
12 nishi 19
			0x3: Debug
1 nishi 20
 
21
Video Mark I card maps itself to:
29 nishi 22
	+0: VDP address
23
	+1: VDP data
24
	+2: See above
1 nishi 25
 
7 nishi 26
Video Mark II card maps itself to:
29 nishi 27
	+0: VDG VRAM address
28
	+1: VDG VRAM data
29
	+2: See above
7 nishi 30
 
1 nishi 31
Sound Mark I card maps itself to:
29 nishi 32
	+0: PSG address
33
	+1: PSG data
34
	+2: See above
1 nishi 35
 
36
Math Mark I card maps itself to:
29 nishi 37
	+0: AM9511 stack
38
	+1: AM9511 command (W) / AM9511 ready (R)
39
	+2: See above
3 nishi 40
 
41
Text Mark I card maps itself to:
29 nishi 42
	+0: Keyboard data
43
	+1: Empty
44
	+2: See above
12 nishi 45
 
46
Debug card maps itself to:
29 nishi 47
	+0: Address
48
	+1: LED
12 nishi 49
		Bit to 7-segment map:
50
 
51
		1 2
52
		 3
53
		4 5
54
		 6 7
29 nishi 55
	+2: See above