diff --git a/src/devices/video/upd7220.cpp b/src/devices/video/upd7220.cpp index 138a4340fc1..1a1b9602b88 100644 --- a/src/devices/video/upd7220.cpp +++ b/src/devices/video/upd7220.cpp @@ -23,7 +23,7 @@ - A5105 has a FIFO bug with the RDAT, should be a lot larger when it scrolls up. Can be fixed with a DRDY mechanism for RDAT/WDAT; - Some later SWs on PC-98 throws "Invalid command byte 05" (zettmj on Epson logo), - actual undocumented command to reset something or perhaps just check if upd7220 isn't really a upd72120 instead? + actual undocumented command to reset something? - honor visible area - wide mode (32-bit access) diff --git a/src/devices/video/upd7220.h b/src/devices/video/upd7220.h index cc060f69800..1df278e5729 100644 --- a/src/devices/video/upd7220.h +++ b/src/devices/video/upd7220.h @@ -62,6 +62,14 @@ public: // construction/destruction upd7220_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + template + upd7220_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock, T &&screen_tag) + : upd7220_device(mconfig, tag, owner, clock) + { + set_screen(std::forward(screen_tag)); + } + + template void set_display_pixels(T &&... args) { m_display_cb.set(std::forward(args)...); } template void set_draw_text(T &&... args) { m_draw_text_cb.set(std::forward(args)...); }