1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00
cc65/include/_tia.h

101 lines
2.6 KiB
C
Raw Normal View History

2017-01-08 18:12:55 +00:00
/*****************************************************************************/
/* */
/* Atari VCS 2600 TIA registers addresses */
/* */
/* Source: DASM - vcs.h */
/* */
/* Florent Flament (contact@florentflament.com), 2017 */
/* */
/*****************************************************************************/
/* TIA write / read registers */
struct __tia {
union {
2019-02-05 22:27:52 +00:00
unsigned char vsync;
unsigned char cxm0p;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char vblank;
unsigned char cxm1p;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char wsync;
unsigned char cxp0fb;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char rsync;
unsigned char cxp1fb;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char nusiz0;
unsigned char cxm0fb;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char nusiz1;
unsigned char cxm1fb;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char colup0;
unsigned char cxblpf;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char colup1;
unsigned char cxppmm;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char colupf;
unsigned char inpt0;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char colubk;
unsigned char inpt1;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char ctrlpf;
unsigned char inpt2;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char refp0;
unsigned char inpt3;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char refp1;
unsigned char inpt4;
2017-01-08 18:12:55 +00:00
};
union {
2019-02-05 22:27:52 +00:00
unsigned char pf0;
unsigned char inpt5;
2017-01-08 18:12:55 +00:00
};
unsigned char pf1;
unsigned char pf2;
unsigned char resp0;
unsigned char resp1;
unsigned char resm0;
unsigned char resm1;
unsigned char resbl;
unsigned char audc0;
unsigned char audc1;
unsigned char audf0;
unsigned char audf1;
unsigned char audv0;
unsigned char audv1;
unsigned char grp0;
unsigned char grp1;
unsigned char enam0;
unsigned char enam1;
unsigned char enabl;
unsigned char hmp0;
unsigned char hmp1;
unsigned char hmm0;
unsigned char hmm1;
unsigned char hmbl;
unsigned char vdelp0;
unsigned char vdelp1;
unsigned char vdelbl;
unsigned char resmp0;
unsigned char resmp1;
unsigned char hmove;
unsigned char hmclr;
unsigned char cxclr;
};