mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +00:00
21 lines
676 B
Plaintext
21 lines
676 B
Plaintext
/* MOS 6522 VIA Registers */
|
|
|
|
struct via {
|
|
char iorb; //Input/Output Register B
|
|
char iora; //Input/Output Register A
|
|
char ddrb; //Data Direction Register B
|
|
char ddra; // Data Direction Register A
|
|
char t1cl; //T1 Low-Order Counter
|
|
char t1ch; //T1 High-Order Counter
|
|
char t1ll; //T1L-L | T1 Low-Order Latches
|
|
char t1lh; //T1 High-Order Latches
|
|
char t2cl; //T2 Low-Order Latches
|
|
char t2ch; //T2 High-Order Counter
|
|
char sr; //Shift Register
|
|
char acr; //Auxiliary Control Register
|
|
char pcr; //Peripheral Control Register
|
|
char ifr; //Interrupt Flag Register
|
|
char ier; //Interrupt Enable Register
|
|
char nhra; //Input/Output Register A (No Handshake)
|
|
}
|