00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef C64CPU_H
00022 #define C64CPU_H
00023
00024 #include "sidplayfp/c64/c64env.h"
00025 #include "CPU/mos6510.h"
00026
00027 #ifdef HAVE_CONFIG_H
00028 # include "config.h"
00029 #endif
00030
00031 class c64cpu: public MOS6510
00032 {
00033 private:
00034 c64env &m_env;
00035
00036 public:
00037 c64cpu (c64env *env) :
00038 MOS6510(&(env->context ())),
00039 m_env(*env) {}
00040
00041 uint8_t cpuRead(uint_least16_t addr) { return m_env.cpuRead (addr); }
00042 void cpuWrite(uint_least16_t addr, uint8_t data) { m_env.cpuWrite (addr, data); }
00043
00044 #ifdef PC64_TESTSUITE
00045 void loadFile(const char *file) { m_env.loadFile (file); }
00046 #endif
00047 };
00048
00049 #endif // C64CPU_H
00050