File:  [Isaki's NoNo m68k/m88k emulator] / nono / vm / msxdos.h
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:05:42 2026 UTC (2 months, 3 weeks ago) by root
Branches: MAIN, Isaki
CVS tags: v027, v026, v025, v024, v023, HEAD
nono 1.3.0

//
// nono
// Copyright (C) 2023 nono project
// Licensed under nono-license.txt
//

//
// MSX-DOS コマンドラインエミュレータ
//

#pragma once

#include "prom.h"
#include <vector>

class MPU64180Device;
class XPbusDevice;

class MSXDOSDevice : public PROMDevice
{
	using inherited = PROMDevice;

	// データの受け渡し用。
	struct data_t {
		uint8 *data;
		int size;
	};

 public:
	MSXDOSDevice();
	~MSXDOSDevice() override;

	bool Init() override;
	void ResetHard(bool poweron) override;

	// MSXDOS コールエミュレーション
	void Syscall();

 private:
	bool LoadBinary(const char *filename);
	void Putc(int ch);

	int cursor_x {};

	std::vector<uint8> filebuf {};

	MPU64180Device *xp {};
	XPbusDevice *xpbus {};
};

unix.superglobalmegacorp.com

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