-
Notifications
You must be signed in to change notification settings - Fork 8
/
emuted.h
44 lines (36 loc) · 886 Bytes
/
emuted.h
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
#pragma once
#include "emucbm.h"
class EmuTed : public EmuCBM
{
public:
class TedMemory : public Emu6502::Memory
{
public:
TedMemory(int ram_size);
virtual ~TedMemory();
virtual byte read(ushort addr);
virtual void write(ushort addr, byte value);
private:
int ram_size;
byte* ram; // note if less than 64K, then addressing wraps around
byte* basic_rom;
byte* kernal_rom;
byte* io;
bool rom_enabled;
int rom_config;
private:
TedMemory(const TedMemory& other); // disabled
bool operator==(const TedMemory& other); // disabled
};
public:
EmuTed(int ram_size);
virtual ~EmuTed();
private:
int startup_state;
int go_state;
protected:
virtual bool ExecutePatch();
private:
EmuTed(const EmuTed& other); // disabled
bool operator==(const EmuTed& other) const; // disabled
};