Debian Codegraph @

terps/unp64/globals.h

raw symbols SCIP
1 /*
2 C++ version based on code adapted to ScummVM by Avijeet Maurya
3 */
4
5 /* ScummVM - Graphic Adventure Engine
6 *
7 * ScummVM is the legal property of its developers, whose names
8 * are too numerous to list here. Please refer to the COPYRIGHT
9 * file distributed with this source distribution.
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 *
24 */
25
26 #ifndef UNP64_GLOBALS_H
27 #define UNP64_GLOBALS_H
28
29 #include "unp64.h"
30
31 namespace Unp64 {
32
33 class Globals {
34 public:
35 // unp64
36 UnpStr _unp;
37 int _parsePar = 1;
38 int _iter = 0;
39
40 // 6502 emu
41 int _byted011[2] = {0, 0};
42 int _retfire = 0xff;
43 int _retspace = 0xff;
44
45 public:
46 Globals();
47 ~Globals();
48 };
49
50 extern Globals *g_globals;
51
52 #define _G(FIELD) (g_globals->FIELD)
53
54 } // End of namespace Unp64
55
56 #endif