|
|
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:
1.1.1.8 ! root 7: //
! 8: // VM (X68030)
! 9: //
! 10:
1.1 root 11: #pragma once
12:
13: #include "vm.h"
14:
1.1.1.4 root 15: class VM_X68030 final : public VM
1.1 root 16: {
1.1.1.2 root 17: using inherited = VM;
1.1 root 18: public:
19: VM_X68030();
1.1.1.2 root 20: ~VM_X68030() override;
1.1 root 21:
22: // 電源ボタンを押す
1.1.1.2 root 23: void PowerButton() override;
1.1 root 24:
25: // 電源ボタンの状態を取得。オンなら true。
1.1.1.2 root 26: bool IsPowerButton() const override { return power_button; }
1.1 root 27:
1.1.1.5 root 28: // MPU の RESET 命令によるリセット
29: void ResetByMPU() override;
30:
1.1.1.7 root 31: protected:
1.1.1.6 root 32: // ブートページを切り替える。
33: void SwitchBootPage(Device *parent, bool isrom) override;
34:
1.1 root 35: private:
36: // 電源ボタンの状態。オンなら true。
1.1.1.3 root 37: bool power_button {};
1.1 root 38:
1.1.1.8 ! root 39: std::unique_ptr<Device> pHuman68k {};
! 40: std::unique_ptr<Device> pIPLROM0 {};
! 41: std::unique_ptr<Device> pXIOSpace {};
1.1 root 42: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.