// tile-based void joystand_state::draw_bg15_tile(address_space &space, int x, int y, UINT16 code) { x *= 16; y *= 16; int srcaddr = 0x800000 + (code % (0x800 * 6)) * 16 * 16 * 2; for (int ty = 0; ty < 16; ++ty) { for (int tx = 0; tx < 16; ++tx) { UINT16 val = space.read_word(srcaddr + ty * 16 * 2 + tx * 2); m_bg15_bitmap[1].pix32(y + ty , x + tx) = (val & 0x8000) ? BG15_TRANSPARENT : m_bg15_palette->pen_color(val & 0x7fff); } } }