-
Notifications
You must be signed in to change notification settings - Fork 8
/
emutest.h
37 lines (29 loc) · 698 Bytes
/
emutest.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
#pragma once
#include "emu6502.h"
class EmuTest : public Emu6502
{
public:
EmuTest(const char* filename);
virtual ~EmuTest();
protected:
bool ExecutePatch();
private:
byte GetMemory(ushort addr);
void SetMemory(ushort addr, byte value);
private:
EmuTest(const EmuTest& other); // disabled
bool operator==(const EmuTest& other) const; // disabled
};
class TestMemory : public Emu6502::Memory
{
public:
TestMemory(const char* filename);
virtual ~TestMemory();
virtual byte read(ushort addr);
virtual void write(ushort addr, byte value);
private:
byte* ram;
private:
TestMemory(const TestMemory& other); // disabled
bool operator==(const TestMemory& other) const; // disabled
};