+static NOINLINE void vdp_reg_write(struct PicoVideo *pv, u8 a, u8 d)
+{
+ int l;
+
+ pv->reg[a] = d;
+ switch (a) {
+ case 0:
+ l = pv->pending_ints & (d >> 3) & 2;
+ elprintf(EL_INTS, "hint %d", l);
+ z80_int_assert(l);
+ break;
+ case 1:
+ l = pv->pending_ints & (d >> 5) & 1;
+ elprintf(EL_INTS, "vint %d", l);
+ z80_int_assert(l);
+ break;
+ }
+}
+
+static void vdp_ctl_write(u8 d)