blob: 044dd0d0d085f6f8ce941a5bb39bead59472f17b (
plain)
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
|
/***************************************************************************
c64env.h - The C64 environment interface.
-------------------
begin : Fri Apr 4 2001
copyright : (C) 2001 by Simon White
email : s_a_white@email.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _c64env_h_
#define _c64env_h_
#include "sidtypes.h"
#include "event.h"
/* An implementation of of this class can be created to perform the C64
specifics. A pointer to this child class can then be passed to
each of the conponents so they can interact with it.
*/
class c64env
{
private:
EventContext &m_context;
public:
c64env (EventContext *context)
:m_context (*context) {}
EventContext &context (void) const { return m_context; }
virtual void interruptIRQ (bool state) = 0;
virtual void interruptNMI (void) = 0;
virtual void interruptRST (void) = 0;
virtual void signalBA (bool state) = 0;
virtual void signalAEC (bool state) = 0;
virtual uint8_t readMemRamByte (uint_least16_t addr) = 0;
};
#endif // _c64env_h_
|