2 Skelton for retropc emulator
5 Author : Takeda.Toshiya
18 #define SIG_M6502_OVERFLOW 0
20 class M6502 : public DEVICE
23 DEVICE *d_mem, *d_pic;
28 bool pending_irq, after_cli;
29 bool nmi_state, irq_state, so_state;
33 void run_one_opecode();
38 M6502(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
48 void write_signal(int id, uint32 data, uint32 mask);
49 void set_intr_line(bool line, bool pending, uint32 bit)
51 write_signal(SIG_CPU_IRQ, line ? 1 : 0, 1);
58 void save_state(FILEIO* state_fio);
59 bool load_state(FILEIO* state_fio);
61 void set_context_mem(DEVICE* device)
65 void set_context_intr(DEVICE* device)