MEM_WRITE1
MEM_WRITE1(sc, ofs, 0);
MEM_WRITE1(sc, VT_VGA_BGCOLOR_OFFSET, 0xff);
MEM_WRITE1(sc, ofs, 0xff);
MEM_WRITE1(sc, dst, v);
MEM_WRITE1(sc, offset, masks[i]);
MEM_WRITE1(sc, offset, planes[i * 4 + plane]);