Annotation of nono/vm/msxdos.h, revision 1.1.1.3

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;
                     34: 
                     35:        // MSXDOS コールエミュレーション
                     36:        void Syscall();
                     37: 
                     38:  private:
1.1.1.2   root       39:        bool LoadBinary(const char *filename, std::vector<uint8>& dst);
1.1.1.3 ! root       40:        void Putc(int ch);
        !            41: 
        !            42:        int cursor_x {};
1.1       root       43: 
                     44:        MPU64180Device *xp {};
1.1.1.3 ! root       45:        XPbusDevice *xpbus {};
1.1       root       46: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.