|
|
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;
1.1.1.3 root 17: class XPbusDevice;
1.1 root 18:
19: class MSXDOSDevice : public PROMDevice
20: {
21: using inherited = PROMDevice;
22:
23: // データの受け渡し用。
24: struct data_t {
25: uint8 *data;
26: int size;
27: };
28:
29: public:
30: MSXDOSDevice();
1.1.1.2 root 31: ~MSXDOSDevice() override;
1.1 root 32:
33: bool Init() override;
1.1.1.4 ! root 34: void ResetHard(bool poweron) override;
1.1 root 35:
36: // MSXDOS コールエミュレーション
37: void Syscall();
38:
39: private:
1.1.1.4 ! root 40: bool LoadBinary(const char *filename);
1.1.1.3 root 41: void Putc(int ch);
42:
43: int cursor_x {};
1.1 root 44:
1.1.1.4 ! root 45: std::vector<uint8> filebuf {};
! 46:
1.1 root 47: MPU64180Device *xp {};
1.1.1.3 root 48: XPbusDevice *xpbus {};
1.1 root 49: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.