|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2023 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: //
8: // MSX-DOS コマンドラインエミュレータ
9: //
10:
11: #pragma once
12:
13: #include "prom.h"
1.1.1.2 ! root 14: #include <vector>
1.1 root 15:
16: class MPU64180Device;
17:
18: class MSXDOSDevice : public PROMDevice
19: {
20: using inherited = PROMDevice;
21:
22: // データの受け渡し用。
23: struct data_t {
24: uint8 *data;
25: int size;
26: };
27:
28: public:
29: MSXDOSDevice();
1.1.1.2 ! root 30: ~MSXDOSDevice() override;
1.1 root 31:
32: bool Init() override;
33:
34: // MSXDOS コールエミュレーション
35: void Syscall();
36:
37: private:
1.1.1.2 ! root 38: bool LoadBinary(const char *filename, std::vector<uint8>& dst);
1.1 root 39:
40: MPU64180Device *xp {};
41: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.