mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 07:02:27 +01:00
byuu says: Four and a half hours of work and ... zero new opcodes implemented. This was the best job I could do refining the effective address computations. Should have all twelve 68000 modes implemented now. Still have a billion questions about when and how I'm supposed to perform certain edge case operations, though.
34 lines
768 B
C++
34 lines
768 B
C++
struct Cartridge {
|
|
auto pathID() const -> uint { return information.pathID; }
|
|
auto sha256() const -> string { return information.sha256; }
|
|
auto manifest() const -> string { return information.manifest; }
|
|
auto title() const -> string { return information.title; }
|
|
|
|
auto load() -> bool;
|
|
auto save() -> void;
|
|
auto unload() -> void;
|
|
auto power() -> void;
|
|
auto reset() -> void;
|
|
|
|
auto read(bool word, uint24 addr) -> uint16;
|
|
auto write(bool word, uint24 addr, uint16 data) -> void;
|
|
|
|
struct Information {
|
|
uint pathID = 0;
|
|
string sha256;
|
|
string manifest;
|
|
string title;
|
|
} information;
|
|
|
|
struct Memory {
|
|
uint8* data = nullptr;
|
|
uint size = 0;
|
|
uint mask = 0;
|
|
};
|
|
|
|
Memory rom;
|
|
Memory ram;
|
|
};
|
|
|
|
extern Cartridge cartridge;
|