Previous 15994 Revisions Next

r4117 Monday 12th January, 2009 at 11:18:17 UTC by Dirk Best
Remove dead file
[src/mess/machine]tia.h

src/mess/machine/tia.h
r4116r4117
1/* TIA *Write* Addresses (6 bit) */
2
3#define VSYNC   0x00   /* Vertical Sync Set/Clear              */
4#define   VBLANK   0x01    /* Vertical Blank Set/Clear               */
5#define   WSYNC   0x02    /* Wait for Horizontal Blank            */
6#define   RSYNC   0x03    /* Reset Horizontal Sync Counter        */
7#define   NUSIZ0   0x04    /* Number-Size player/missle 0           */
8#define   NUSIZ1   0x05    /* Number-Size player/missle 1          */
9
10
11#define   COLUP0   0x06    /* Color-Luminance Player 0             */
12#define   COLUP1   0x07    /* Color-Luminance Player 1            */
13#define   COLUPF   0x08    /* Color-Luminance Playfield         */
14#define   COLUBK   0x09    /* Color-Luminance BackGround         */
15/*
16COLUP0, COLUP1, COLUPF, COLUBK:
17These addresses write data into the player, playfield
18and background color-luminance registers:
19
20COLOR           D7  D6  D5  D4 | D3  D2  D1  LUM
21grey/gold       0   0   0   0  | 0   0   0   black
22                0   0   0   1  | 0   0   1   dark grey
23orange/brt org  0   0   1   0  | 0   1   0
24                0   0   1   1  | 0   1   1   grey
25pink/purple     0   1   0   0  | 1   0   0
26                0   1   0   1  | 1   0   1
27purp/blue/blue  0   1   1   0  | 1   1   0   light grey
28                0   1   1   1  | 1   1   1   white
29blue/lt blue    1   0   0   0
30                1   0   0   1
31torq/grn blue   1   0   1   0
32                1   0   1   1
33grn/yel grn     1   1   0   0
34                1   1   0   1
35org.grn/lt org  1   1   1   0
36                1   1   1   1
37*/
38
39#define   CTRLPF   0x0A    /* Control Playfield, Ball, Collisions   */
40#define   REFP0   0x0B    /* Reflection Player 0               */
41#define   REFP1   0x0C    /* Reflection Player 1               */
42#define PF0       0x0D    /* Playfield Register Byte 0         */
43#define   PF1       0x0E    /* Playfield Register Byte 1         */
44#define   PF2       0x0F    /* Playfield Register Byte 2         */
45#define   RESP0   0x10    /* Reset Player 0                  */
46#define   RESP1   0x11    /* Reset Player 1                  */
47#define   RESM0   0x12    /* Reset Missle 0                  */
48#define   RESM1   0x13    /* Reset Missle 1                  */
49#define   RESBL   0x14    /* Reset Ball                     */
50
51#define   AUDC0   0x15    /* Audio Control 0                  */
52#define   AUDC1   0x16    /* Audio Control 1                  */
53#define   AUDF0   0x17    /* Audio Frequency 0               */
54#define   AUDF1   0x18    /* Audio Frequency 1               */
55#define   AUDV0   0x19    /* Audio Volume 0                  */
56#define   AUDV1   0x1A    /* Audio Volume 1                  */
57
58/* The next 5 registers are flash registers */
59#define   GRP0   0x1B    /* Graphics Register Player 0         */
60#define   GRP1   0x1C    /* Graphics Register Player 0         */
61#define   ENAM0   0x1D    /* Graphics Enable Missle 0            */
62#define   ENAM1   0x1E    /* Graphics Enable Missle 1            */
63#define   ENABL   0x1F    /* Graphics Enable Ball               */
64
65
66#define HMP0   0x20    /* Horizontal Motion Player 0         */
67#define   HMP1   0x21    /* Horizontal Motion Player 0         */
68#define   HMM0   0x22    /* Horizontal Motion Missle 0         */
69#define   HMM1   0x23    /* Horizontal Motion Missle 1         */
70#define   HMBL   0x24    /* Horizontal Motion Ball            */
71#define   VDELP0   0x25    /* Vertical Delay Player 0            */
72#define   VDELP1   0x26    /* Vertical Delay Player 1            */
73#define   VDELBL   0x27    /* Vertical Delay Ball               */
74#define   RESMP0   0x28    /* Reset Missle 0 to Player 0         */
75#define   RESMP1   0x29    /* Reset Missle 1 to Player 1         */
76#define   HMOVE   0x2A    /* Apply Horizontal Motion            */
77#define   HMCLR   0x2B    /* Clear Horizontal Move Registers      */
78#define   CXCLR   0x2C    /* Clear Collision Latches            */
79
80/* TIA *Read* Addresses */
81                        /*          bit 6  bit 7            */
82#define   CXM0P   0x00   /* Read Collision M0-P1  M0-P0         */
83#define   CXM1P   0x01    /*                M1-P0  M1-P1         */
84#define   CXP0FB   0x02   /*                P0-PF  P0-BL         */
85#define   CXP1FB   0x03    /*                P1-PF  P1-BL         */
86#define   CXM0FB   0x04    /*                M0-PF  M0-BL         */
87#define   CXM1FB   0x05    /*                M1-PF  M1-BL         */
88#define   CXBLPF   0x06    /*                BL-PF  -----         */
89#define   CXPPMM   0x07    /*                P0-P1  M0-M1         */
90#define   INPT0   0x08    /* Read Pot Port 0                  */
91#define   INPT1   0x09    /* Read Pot Port 1                  */
92#define   INPT2   0x0A    /* Read Pot Port 2                  */
93#define   INPT3   0x0B    /* Read Pot Port 3                  */
94#define   INPT4   0x0C    /* Read Input (Trigger) 0            */
95#define   INPT5   0x0D    /* Read Input (Trigger) 1            */
96
97
98
99
100/* keep a record of the colors here */
101typedef struct color_registers {
102   int P0; /* player 0   */
103   int M0;   /* missile 0  */
104   int P1;   /* player 1   */
105   int M1;   /* missile 1  */
106   int PF;   /* playfield  */
107   int BL;   /* ball       */
108   int BK;   /* background */
109} COLREG;
110
111
112/* keep a record of the playfield registers here */
113typedef struct playfield_registers {
114   int B0; /* 8 bits, only left 4 bits used */
115   int B1; /* 8 bits  */
116   int B2;   /* 8 bits  */
117} PFREG;
118
119typedef struct
120{
121    COLREG colreg;         /* keep a record of the color registers written to */
122   PFREG  pfreg;         /* keep a record of the playfield registers written to */
123}TIA;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team