|
|
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 root 20:
21: private:
1.1.1.5 ! root 22: uint32 ROM_Init() override;
! 23: uint32 ROM_Entry() override;
! 24: void Command() override;
! 25: void CommandB(const std::vector<std::string>& arg);
! 26: void CommandBH();
! 27: void CommandNvram(const std::vector<std::string>& arg);
! 28:
! 29: // NVRAM
! 30: uint8 CalcNVRAMCsum();
! 31: void WriteNVRAMCsum();
! 32: bool VerifyNVRAM();
! 33: bool InitNVRAM();
! 34: void GetNVRAM(bootinfo_t&);
1.1.1.2 root 35:
1.1.1.5 ! root 36: uint32 b_entrypoint {};
1.1 root 37: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.