|
|
1.1 root 1: //
2: // nono
1.1.1.2 root 3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
1.1 root 5: //
6:
7: #pragma once
8:
1.1.1.5 root 9: #include "romemu_luna.h"
1.1 root 10:
1.1.1.5 root 11: class Luna88kPROMEmuDevice : public LunaPROMEmuDevice
1.1 root 12: {
1.1.1.5 root 13: using inherited = LunaPROMEmuDevice;
1.1 root 14:
15: public:
16: Luna88kPROMEmuDevice();
1.1.1.4 root 17: virtual ~Luna88kPROMEmuDevice() override;
1.1 root 18:
1.1.1.2 root 19: bool Init() override;
1.1.1.6 ! root 20: void ResetHard() override;
1.1 root 21:
22: private:
1.1.1.5 root 23: uint32 ROM_Init() override;
24: uint32 ROM_Entry() override;
25: void Command() override;
26: void CommandB(const std::vector<std::string>& arg);
27: void CommandBH();
28: void CommandNvram(const std::vector<std::string>& arg);
29:
30: // NVRAM
31: uint8 CalcNVRAMCsum();
32: void WriteNVRAMCsum();
33: bool VerifyNVRAM();
34: bool InitNVRAM();
35: void GetNVRAM(bootinfo_t&);
1.1.1.2 root 36:
1.1.1.5 root 37: uint32 b_entrypoint {};
1.1 root 38: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.