]> Shamusworld >> Repos - apple2/blob - src/mos6522via.h
4d494a96fc84216e9b599efad816a3e47e824aa1
[apple2] / src / mos6522via.h
1 // Mockingboard support
2 //
3 // by James Hammons
4 // (C) 2018 Underground Software
5 //
6
7 #ifndef __MOS6522VIA_H__
8 #define __MOS6522VIA_H__
9
10 #include <stdint.h>
11
12 struct MOS6522VIA
13 {
14         uint8_t orb, ora;               // Output Register B, A
15         uint8_t ddrb, ddra;             // Data Direction Register B, A
16         uint16_t timer1counter; // Timer 1 Counter
17         uint16_t timer1latch;   // Timer 1 Latch
18         uint16_t timer2counter; // Timer 2 Counter
19         uint8_t acr;                    // Auxillary Control Register
20         uint8_t ifr;                    // Interrupt Flags Register
21         uint8_t ier;                    // Interrupt Enable Register
22 };
23
24
25 extern MOS6522VIA mbvia[];
26
27
28 void ResetMBVIAs(void);
29
30 #endif  // __MOS6522VIA_H__
31