1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/***************************************************************************
ccpu.h
Core implementation for the portable Cinematronics CPU emulator.
Written by Aaron Giles
Special thanks to Zonn Moore for his detailed documentation.
***************************************************************************/
#ifndef _CCPU_H_
#define _CCPU_H_
#include "cpuintrf.h"
/***************************************************************************
REGISTER ENUMERATION
***************************************************************************/
enum
{
CCPU_PC=1,
CCPU_FLAGS,
CCPU_A,
CCPU_B,
CCPU_I,
CCPU_J,
CCPU_P,
CCPU_X,
CCPU_Y,
CCPU_T
};
/***************************************************************************
CONFIG STRUCTURE
***************************************************************************/
struct CCPUConfig
{
UINT8 (*external_input)(void); /* if NULL, assume JMI jumper is present */
void (*vector_callback)(INT16 sx, INT16 sy, INT16 ex, INT16 ey, UINT8 shift);
};
/***************************************************************************
PUBLIC FUNCTIONS
***************************************************************************/
void ccpu_get_info(UINT32 state, cpuinfo *info);
void ccpu_wdt_timer_trigger(void);
#ifdef ENABLE_DEBUGGER
offs_t ccpu_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
#endif
#endif
|