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_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
46 set_device_name(_T("Display"));
52 void write_io8(uint32_t addr, uint32_t data);
53 uint32_t read_io8(uint32_t addr);
54 void write_signal(int id, uint32_t data, uint32_t mask);
56 bool process_state(FILEIO* state_fio, bool loading);
59 void set_vram_ptr(uint8_t* ptr)
61 vram_b = ptr + 0x0000;
62 vram_r = ptr + 0x4000;
63 vram_g = ptr + 0x8000;
64 vram_t = ptr + 0xc000;
65 vram_a = ptr + 0xc800;
67 void set_regs_ptr(uint8_t* ptr)