2 IBM Japan Ltd PC/JX Emulator 'eJX'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 #define SIG_DISPLAY_ENABLE 0
18 #define SIG_DISPLAY_VBLANK 1
19 #define SIG_DISPLAY_PIO 2
23 class DISPLAY : public DEVICE
28 uint8_t vram[0x20000];
29 uint8_t extvram[0x10000];
31 uint8_t vgarray[0x10];
32 uint8_t palette[0x10];
39 // int prev_width, prev_height;
44 uint8_t screen[512][720];
47 scrntype_t palette_pc[32];
51 void draw_graph_160x200_16col();
52 void draw_graph_320x200_4col();
53 void draw_graph_320x200_16col();
54 void draw_graph_640x200_2col();
55 void draw_graph_640x200_4col();
56 void draw_graph_720x512_2col();
57 void draw_graph_360x512_4col();
60 DISPLAY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
62 set_device_name(_T("Display"));
69 void write_io8(uint32_t addr, uint32_t data);
70 uint32_t read_io8(uint32_t addr);
71 void write_signal(int id, uint32_t data, uint32_t mask);
73 bool process_state(FILEIO* state_fio, bool loading);
76 void set_context_mem(MEMORY* device)
80 void set_regs_ptr(uint8_t* ptr)
84 void set_font_ptr(uint8_t* ptr)
88 void set_kanji_ptr(uint8_t* ptr)