bsnes/higan/ws/cpu/cpu.hpp

24 lines
639 B
C++
Raw Normal View History

struct CPU : Processor::V30MZ, Thread, IO {
static auto Enter() -> void;
auto main() -> void;
auto step(uint clocks) -> void;
auto wait(uint clocks = 1) -> void override;
auto read(uint20 addr) -> uint8 override;
auto write(uint20 addr, uint8 data) -> void override;
auto in(uint16 port) -> uint16 override;
auto out(uint16 port, uint16 data) -> void override;
auto power() -> void;
//memory.cpp
auto ramRead(uint16 addr) -> uint8;
auto ramWrite(uint16 addr, uint8 data) -> void;
auto portRead(uint16 addr) -> uint16 override;
auto portWrite(uint16 addr, uint16 data) -> void override;
};
extern CPU cpu;