2 MITSUBISHI Electric MULTI8 Emulator 'EmuLTI8'
\r
4 Author : Takeda.Toshiya
\r
14 #include "../../emu.h"
\r
15 #include "../device.h"
\r
17 #define SIG_DISPLAY_I8255_B 0
\r
19 class DISPLAY : public DEVICE
\r
24 bool text_wide, text_color;
\r
25 uint8 graph_color, graph_page;
\r
26 uint16 cursor, cblink;
\r
27 bool hsync, vsync, display, blink;
\r
29 uint8 screen[200][640];
\r
36 scrntype palette_pc[8];
\r
39 void draw_graph_color();
\r
40 void draw_graph_mono();
\r
41 void draw_text_wide();
\r
42 void draw_text_normal();
\r
45 DISPLAY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
\r
50 void update_config();
\r
52 void write_io8(uint32 addr, uint32 data);
\r
53 uint32 read_io8(uint32 addr);
\r
54 void write_signal(int id, uint32 data, uint32 mask);
\r
58 void set_vram_ptr(uint8* ptr)
\r
60 vram_b = ptr + 0x0000;
\r
61 vram_r = ptr + 0x4000;
\r
62 vram_g = ptr + 0x8000;
\r
63 vram_t = ptr + 0xc000;
\r
64 vram_a = ptr + 0xc800;
\r
66 void set_regs_ptr(uint8* ptr)
\r