ScummVM API documentation
6502_emu.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
/*
23
* Copyright (c) 2002 - 2023 Magnus Lind.
24
*
25
*
26
* This software is provided 'as-is', without any express or implied
27
* warranty. In no event will the authors be held liable for any damages
28
* arising from the use of this software.
29
*
30
* Permission is granted to anyone to use this software for any purpose,
31
* including commercial applications, and to alter it and redistribute it
32
* freely, subject to the following restrictions:
33
*
34
* 1. The origin of this software must not be misrepresented; you must not
35
* claim that you wrote the original software. If you use this software
36
* in a product, an acknowledgment in the product documentation would be
37
* appreciated but is not required.
38
* 2. Altered source versions must be plainly marked as such, and must not be
39
* misrepresented as being the original software.
40
* 3. This notice may not be removed or altered from any source distribution.
41
*
42
*/
43
44
#ifndef COMMON_COMPRESSION_UNP64_6502_EMU_H
45
#define COMMON_COMPRESSION_UNP64_6502_EMU_H
46
47
#include "common/scummsys.h"
48
49
namespace
Common
{
50
namespace
Unp64 {
51
52
struct
CpuCtx
{
53
uint32 _cycles;
54
uint16 _pc;
55
uint8 *_mem;
56
uint8 _sp;
57
uint8 _flags;
58
uint8 _a;
59
uint8 _x;
60
uint8 _y;
61
int
_byted011[2] = {0, 0};
62
int
_retfire = 0xff;
63
int
_retspace = 0xff;
64
};
65
66
int
nextInst(
CpuCtx
*r);
67
68
}
// End of namespace Unp64
69
}
// End of namespace Common
70
71
#endif
Common
Definition:
algorithm.h:29
Common::Unp64::CpuCtx
Definition:
6502_emu.h:52
common
compression
unp64
6502_emu.h
Generated on Thu Oct 22 2026 09:08:36 for ScummVM API documentation by
1.8.13