2 MITSUBISHI Electric MULTI8 Emulator 'EmuLTI8'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 #define SIG_DISPLAY_I8255_B 0
19 class DISPLAY : public DEVICE
24 bool text_wide, text_color;
25 uint8_t graph_color, graph_page;
26 uint16_t cursor, cblink;
27 bool hsync, vsync, display, blink;
29 uint8_t screen[200][640];
36 scrntype_t palette_pc[8];
38 void draw_graph_color();
39 void draw_graph_mono();
40 void draw_text_wide();
41 void draw_text_normal();
44 DISPLAY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
49 void write_io8(uint32_t addr, uint32_t data);
50 uint32_t read_io8(uint32_t addr);
51 void write_signal(int id, uint32_t data, uint32_t mask);
53 void save_state(FILEIO* state_fio);
54 bool load_state(FILEIO* state_fio);
57 void set_vram_ptr(uint8_t* ptr)
59 vram_b = ptr + 0x0000;
60 vram_r = ptr + 0x4000;
61 vram_g = ptr + 0x8000;
62 vram_t = ptr + 0xc000;
63 vram_a = ptr + 0xc800;
65 void set_regs_ptr(uint8_t* ptr)