|
|
1.1 root 1: //
2: // nono
1.1.1.2 root 3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
1.1 root 5: //
6:
7: #pragma once
8:
1.1.1.3 root 9: #include "crtc2.h"
10: #include "fuserom.h"
11: #include "sysclk.h"
1.1 root 12: #include "vm.h"
13:
1.1.1.4 ! root 14: class VM_LUNA final : public VM
1.1 root 15: {
1.1.1.2 root 16: using inherited = VM;
1.1 root 17: public:
18: VM_LUNA();
1.1.1.2 root 19: ~VM_LUNA() override;
1.1 root 20:
21: // 電源ボタンを押す。
1.1.1.2 root 22: void PowerButton() override;
1.1 root 23:
24: private:
1.1.1.3 root 25: std::unique_ptr<CRTC2Device> crtc2 {};
26: std::unique_ptr<IODevice> prom {};
27: std::unique_ptr<NullDevice> nulldev {};
1.1 root 28:
29: static const uint8 maptable[256];
30: };
31:
1.1.1.4 ! root 32: class VM_LUNA88K final : public VM
1.1 root 33: {
1.1.1.2 root 34: using inherited = VM;
1.1 root 35: public:
36: VM_LUNA88K();
1.1.1.2 root 37: ~VM_LUNA88K() override;
1.1 root 38:
39: // 電源ボタンを押す。
1.1.1.2 root 40: void PowerButton() override;
1.1 root 41:
42: private:
1.1.1.3 root 43: std::unique_ptr<CRTC2Device> crtc2 {};
44: std::unique_ptr<FuseROMDevice> fuserom {};
45: std::unique_ptr<IODevice> prom {};
46: std::unique_ptr<NullDevice> nulldev {};
1.1 root 47:
48: static const uint8 maptable[256];
49: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.