]> Shamusworld >> Repos - apple2/blob - src/mockingboard.h
Squashed bug that crept in to config.cpp. :-(
[apple2] / src / mockingboard.h
1 //
2 // Mockingboard support
3 //
4 // by James Hammons
5 // (C) 2018 Underground Software
6 //
7
8 #ifndef __MOCKINGBOARD_H__
9 #define __MOCKINGBOARD_H__
10
11 #include <stdint.h>
12 #include <stdio.h>
13 #include "v6522via.h"
14 #include "vay8910.h"
15
16 struct MOCKINGBOARD
17 {
18         V6522VIA via[2];
19         VAY_3_8910 ay[2];
20 };
21
22 // Exported variables
23 extern MOCKINGBOARD mb[];
24
25 // Exported functions
26 void MBReset(void);
27 void MBWrite(int chipNum, uint8_t reg, uint8_t byte);
28 uint8_t MBRead(int chipNum, uint8_t reg);
29 void MBRun(uint16_t cycles);
30 void MBSaveState(FILE *);
31 void MBLoadState(FILE *);
32 void InstallMockingboard(uint8_t slot);
33
34 #endif  // __MOCKINGBOARD_H__
35