-
Notifications
You must be signed in to change notification settings - Fork 8
/
emucbm.h
36 lines (29 loc) · 737 Bytes
/
emucbm.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
#pragma once
#include "emu6502.h"
class EmuCBM : public Emu6502
{
public:
EmuCBM(Memory* mem);
virtual ~EmuCBM();
bool LoadPRG(const char* filename);
public:
static const char* StartupPRG;
static unsigned File_ReadAllBytes(byte* bytes, unsigned long size, const char* filename);
protected:
bool ExecutePatch();
bool ExecuteRTS();
bool ExecuteJSR(ushort addr);
bool FileLoad(byte* p_err);
bool FileSave(const char* filename, ushort addr1, ushort addr2);
bool LoadStartupPrg();
int LOAD_TRAP;
const char* FileName;
byte FileNum;
byte FileDev;
byte FileSec;
bool FileVerify;
ushort FileAddr;
private: // disabled
EmuCBM(const EmuCBM& other); // disabled
bool operator==(const EmuCBM& other) const; // disabled
};