2 Skelton for retropc emulator
5 Author : Takeda.Toshiya
20 class HD63484 : public DEVICE
29 uint16_t fifo[256], readfifo;
33 uint16_t regs[128], pattern[16];
34 int org, org_dpd, rwp;
35 uint16_t cl0, cl1, ccmp, edg, mask;
36 uint16_t ppy, pzcy, ppx, pzcx, psy, psx, pey, pzy, pex, pzx;
37 uint16_t xmin, ymin, xmax, ymax, rwp_dn;
41 void doclr16(int opcode, uint16_t fill, int *dst, int _ax, int _ay);
42 void docpy16(int opcode, int src, int *dst, int _ax, int _ay);
43 int org_first_pixel(int _org_dpd);
44 void dot(int x, int y, int opm, uint16_t color);
45 int get_pixel(int x, int y);
46 int get_pixel_ptn(int x, int y);
47 void agcpy(int opcode, int src_x, int src_y, int dst_x, int dst_y, int16_t _ax, int16_t _ay);
48 void ptn(int opcode, int src_x, int src_y, int16_t _ax, int16_t _ay);
49 void line(int16_t sx, int16_t sy, int16_t ex, int16_t ey, int16_t col);
50 void paint(int sx, int sy, int col);
53 HD63484(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {
54 set_device_name(_T("HD63484 ACRTC"));
61 void write_io8(uint32_t addr, uint32_t data);
62 uint32_t read_io8(uint32_t addr);
63 void write_io16(uint32_t addr, uint32_t data);
64 uint32_t read_io16(uint32_t addr);
65 void event_vline(int v, int clock);
68 void set_vram_ptr(uint16_t* ptr, uint32_t size)
70 vram = ptr; vram_size = size;