2 Skelton for retropc emulator
5 Author : Takeda.Toshiya
22 class HUC6280 : public DEVICE
34 HUC6280(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {
35 set_device_name(_T("HuC6280 CPU"));
44 void write_signal(int id, uint32_t data, uint32_t mask);
46 uint32_t get_next_pc();
52 uint32_t get_debug_prog_addr_mask()
56 uint32_t get_debug_data_addr_mask()
60 void write_debug_data8(uint32_t addr, uint32_t data);
61 uint32_t read_debug_data8(uint32_t addr);
62 void write_debug_io8(uint32_t addr, uint32_t data);
63 uint32_t read_debug_io8(uint32_t addr);
64 bool write_debug_reg(const _TCHAR *reg, uint32_t data);
65 void get_debug_regs_info(_TCHAR *buffer, size_t buffer_len);
66 int debug_dasm(uint32_t pc, _TCHAR *buffer, size_t buffer_len);
68 void save_state(FILEIO* state_fio);
69 bool load_state(FILEIO* state_fio);
72 void set_context_mem(DEVICE* device)
76 void set_context_io(DEVICE* device)
81 void set_context_debugger(DEBUGGER* device)
86 uint8_t irq_status_r(uint16_t offset);
87 void irq_status_w(uint16_t offset, uint8_t data);
88 uint8_t timer_r(uint16_t offset);
89 void timer_w(uint16_t offset, uint8_t data);