video/upd7220.cpp: allow optional parameter for screen tag

This commit is contained in:
angelosa 2024-10-30 19:49:37 +01:00
parent f357a3a19f
commit d244502260
2 changed files with 9 additions and 1 deletions

View file

@ -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)

View file

@ -62,6 +62,14 @@ public:
// construction/destruction
upd7220_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
template <typename T>
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<T>(screen_tag));
}
template <typename... T> void set_display_pixels(T &&... args) { m_display_cb.set(std::forward<T>(args)...); }
template <typename... T> void set_draw_text(T &&... args) { m_draw_text_cb.set(std::forward<T>(args)...); }