libsidplayfp
0.3.5
Main Page
Related Pages
Namespaces
Classes
Files
File List
sidplayfp
c64
c64vic.h
1
/***************************************************************************
2
c64vic.h - C64 VIC
3
-------------------
4
begin : Fri Apr 4 2001
5
copyright : (C) 2001 by Simon White
6
email : s_a_white@email.com
7
***************************************************************************/
8
9
/***************************************************************************
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 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef _c64vic_h_
19
#define _c64vic_h_
20
21
// The VIC emulation is very generic and here we need to effectively
22
// wire it into the computer (like adding a chip to a PCB).
23
#include "sidplayfp/c64env.h"
24
#include "../mos656x/mos656x.h"
25
26
class
c64vic
:
public
MOS656X
27
{
28
private
:
29
c64env
&m_env;
30
31
protected
:
32
void
interrupt (
bool
state)
33
{
34
m_env.interruptIRQ (state);
35
}
36
37
void
addrctrl (
bool
state)
38
{
39
m_env.signalAEC (state);
40
}
41
42
public
:
43
c64vic
(
c64env
*env)
44
:
MOS656X
(&(env->context ())),
45
m_env(*env) {}
46
const
char
*error (
void
) {
return
""
;}
47
};
48
49
#endif // _c64vic_h_
Generated on Fri Jun 29 2012 23:20:15 for libsidplayfp by
1.8.1.1