|
|
1.1 root 1: //
2: // nono
1.1.1.3 root 3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
1.1 root 5: //
6:
1.1.1.9 root 7: //
8: // VM (基本クラス)
9: //
10:
1.1 root 11: #pragma once
12:
13: #include "device.h"
1.1.1.2 root 14:
1.1 root 15: class VM
16: {
1.1.1.12 root 17: protected:
1.1.1.13! root 18: explicit VM(const char *vmname_);
1.1 root 19: public:
20: virtual ~VM();
21:
1.1.1.3 root 22: // 明示的な後始末
23: void Dispose();
24:
1.1 root 25: // 動的なコンストラクション
26: bool Create();
27:
28: // 初期化
1.1.1.12 root 29: bool Init();
1.1 root 30:
1.1.1.9 root 31: // スレッド開始
32: bool StartThread();
33:
1.1 root 34: // 設定の適用
35: bool Apply();
36:
1.1.1.12 root 37: // VM 名取得 (ウィンドウタイトル用)
38: const char *GetVMName() const { return vmname; }
1.1.1.8 root 39:
40: protected:
1.1.1.12 root 41: std::unique_ptr<Device> pDebugger {};
42: std::unique_ptr<Device> pKeyboard {};
43: std::unique_ptr<Device> pMainbus {};
44: std::unique_ptr<Device> pMPU {};
45: std::unique_ptr<Device> pNMI {};
46: std::unique_ptr<Device> pPower {};
47: std::unique_ptr<Device> pRenderer {};
48: std::unique_ptr<Device> pScheduler {};
49: std::unique_ptr<Device> pSignalThread {};
50: std::unique_ptr<Device> pSyncer {};
1.1.1.9 root 51:
1.1.1.12 root 52: private:
53: const char *vmname {}; // VM 機種名(表示名)
1.1 root 54: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.