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
25 class DISPLAY : public DEVICE
30 uint8_t vram[0x20000];
31 uint8_t extvram[0x10000];
33 uint8_t vgarray[0x10];
34 uint8_t palette[0x10];
41 // int prev_width, prev_height;
46 uint8_t screen[512][720];
49 scrntype_t palette_pc[32];
53 void draw_graph_160x200_16col();
54 void draw_graph_320x200_4col();
55 void draw_graph_320x200_16col();
56 void draw_graph_640x200_2col();
57 void draw_graph_640x200_4col();
58 void draw_graph_720x512_2col();
59 void draw_graph_360x512_4col();
62 DISPLAY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
64 set_device_name(_T("Display"));
71 void write_io8(uint32_t addr, uint32_t data);
72 uint32_t read_io8(uint32_t addr);
73 void write_signal(int id, uint32_t data, uint32_t mask);
75 bool process_state(FILEIO* state_fio, bool loading);
78 void set_context_mem(MEMORY* device)
82 void set_regs_ptr(uint8_t* ptr)
86 void set_font_ptr(uint8_t* ptr)
90 void set_kanji_ptr(uint8_t* ptr)