-
Notifications
You must be signed in to change notification settings - Fork 8
/
emumin.h
45 lines (37 loc) · 962 Bytes
/
emumin.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
45
#pragma once
#include "emu6502.h"
#include "mc6850.h"
class EmuMinimum : public Emu6502
{
public:
EmuMinimum(const char* filename, ushort serialaddr, bool line_editor);
virtual ~EmuMinimum();
protected:
bool ExecutePatch();
private:
byte GetMemory(ushort addr);
void SetMemory(ushort addr, byte value);
private:
EmuMinimum(const EmuMinimum& other); // disabled
bool operator==(const EmuMinimum& other) const; // disabled
};
class MinimumMemory : public Emu6502::Memory
{
public:
MinimumMemory(const char* filename, ushort serialaddr, bool line_editor);
virtual ~MinimumMemory();
virtual byte read(ushort addr);
virtual void write(ushort addr, byte value);
unsigned getramsize();
unsigned getromsize();
private:
byte* ram;
ushort ramsize;
ushort romsize;
ushort romaddr;
ushort serialaddr;
MC6850* uart;
private:
MinimumMemory(const MinimumMemory& other); // disabled
bool operator==(const MinimumMemory& other) const; // disabled
};