-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.h
54 lines (46 loc) · 1011 Bytes
/
globals.h
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
/****************************************************************************
globals.h
****************************************************************************/
#ifndef GLOBALS_H_
#define GLOBALS_H_
#include "hard_pce.h"
#include "defs.h"
//
// Bitmask values for PCE status flags:
//
#define FL_N 0x80
#define FL_V 0x40
#define FL_T 0x20
#define FL_B 0x10
#define FL_D 0x08
#define FL_I 0x04
#define FL_Z 0x02
#define FL_C 0x01
//
// Globals for PCE memory-addressing:
//
extern UChar * base[256];
extern UChar * zp_base;
extern UChar * sp_base;
extern UChar * mmr_base[8];
//
// Globals for PCE CPU registers:
//
extern UInt16 reg_pc;
extern UChar reg_a;
extern UChar reg_x;
extern UChar reg_y;
extern UChar reg_p;
extern UChar reg_s;
extern UChar * mmr;
//
// Globals which hold emulation-realted info:
//
extern UInt32 cycles;
extern UChar halt_flag;
//
// Tables for disassembly/execution of PCE opcodes:
//
extern mode_struct addr_info[];
extern operation optable[];
#endif