Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/lynx/sysbase.h
2 views
1
//
2
// Copyright (c) 2004 K. Wilkins
3
//
4
// This software is provided 'as-is', without any express or implied warranty.
5
// In no event will the authors be held liable for any damages arising from
6
// the use of this software.
7
//
8
// Permission is granted to anyone to use this software for any purpose,
9
// including commercial applications, and to alter it and redistribute it
10
// freely, subject to the following restrictions:
11
//
12
// 1. The origin of this software must not be misrepresented; you must not
13
// claim that you wrote the original software. If you use this software
14
// in a product, an acknowledgment in the product documentation would be
15
// appreciated but is not required.
16
//
17
// 2. Altered source versions must be plainly marked as such, and must not
18
// be misrepresented as being the original software.
19
//
20
// 3. This notice may not be removed or altered from any source distribution.
21
//
22
23
//////////////////////////////////////////////////////////////////////////////
24
// Handy - An Atari Lynx Emulator //
25
// Copyright (c) 1996,1997 //
26
// K. Wilkins //
27
//////////////////////////////////////////////////////////////////////////////
28
// Systembase object class definition //
29
//////////////////////////////////////////////////////////////////////////////
30
// //
31
// This header file provides the interface definition for the systembase //
32
// class that is required to get around cross dependencies between //
33
// cpu/mikie/system classes //
34
// //
35
// K. Wilkins //
36
// August 1997 //
37
// //
38
//////////////////////////////////////////////////////////////////////////////
39
// Revision History: //
40
// ----------------- //
41
// //
42
// 01Aug1997 KW Document header added & class documented. //
43
// //
44
//////////////////////////////////////////////////////////////////////////////
45
46
#ifndef SYSBASE_H
47
#define SYSBASE_H
48
49
50
class CSystemBase
51
{
52
// Function members
53
54
public:
55
virtual ~CSystemBase() {};
56
57
public:
58
virtual void Reset()=0;
59
virtual void Poke_CPU(uint32 addr,uint8 data)=0;
60
virtual uint8 Peek_CPU(uint32 addr)=0;
61
virtual void PokeW_CPU(uint32 addr,uint16 data)=0;
62
virtual uint16 PeekW_CPU(uint32 addr)=0;
63
64
virtual void Poke_RAM(uint32 addr,uint8 data)=0;
65
virtual uint8 Peek_RAM(uint32 addr)=0;
66
virtual void PokeW_RAM(uint32 addr,uint16 data)=0;
67
virtual uint16 PeekW_RAM(uint32 addr)=0;
68
69
virtual uint8* GetRamPointer()=0;
70
71
};
72
73
#endif
74
75