File:  [Isaki's NoNo m68k/m88k emulator] / nono / vm / romemu_luna1.h
Revision 1.1.1.5 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:05:25 2026 UTC (3 months ago) by root
Branches: MAIN, Isaki
CVS tags: v027, v026, v025, v024, v023, v022, v021, v020, v019, HEAD
nono 0.7.0

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

//
// LUNA-I の ROM エミュレーション
//

#pragma once

#include "romemu_luna.h"

class Luna1PROMEmuDevice : public LunaPROMEmuDevice
{
	using inherited = LunaPROMEmuDevice;

 public:
	Luna1PROMEmuDevice();
	~Luna1PROMEmuDevice() override;

	bool Init() override;

 private:
	void ROM_InitMD() override;
	void ROM_Close() override;
	uint32 LoadFile(const std::string& fname) override;
	void Command() override;

	void CommandG(const std::vector<std::string>& arg);
	void CommandK(const std::vector<std::string>& arg);
	bool CommandKInput(const std::string& val);
	void CommandX();

	// NVRAM
	bool InitNVRAM() override;
	void GetNVRAM(bootinfo_t&) override;

	// プロンプトの状態。
	// 0 が通常プロンプト。
	// 1 以降は k コマンドのプロンプトを示す
	int prompt_idx {};
};

unix.superglobalmegacorp.com

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