static WRITE32_HANDLER( vega_vram_w ) { vegaeo_state *state = space->machine().driver_data<vegaeo_state>(); switch(mem_mask) { case 0xffffffff: vega_vram_w(space,offset,data,0xff000000); vega_vram_w(space,offset,data,0x00ff0000); vega_vram_w(space,offset,data,0x0000ff00); vega_vram_w(space,offset,data,0x000000ff); return; case 0xffff0000: vega_vram_w(space,offset,data,0xff000000); vega_vram_w(space,offset,data,0x00ff0000); return; case 0x0000ffff: vega_vram_w(space,offset,data,0x0000ff00); vega_vram_w(space,offset,data,0x000000ff); return; default: // don't write transparent pen if((data & mem_mask) == mem_mask) return; } COMBINE_DATA(&state->m_vega_vram[offset + state->m_vega_vbuffer * (0x14000/4)]); }
static WRITE32_HANDLER( vega_vram_w ) { switch(mem_mask) { case 0xffffffff: vega_vram_w(space,offset,data,0xff000000); vega_vram_w(space,offset,data,0x00ff0000); vega_vram_w(space,offset,data,0x0000ff00); vega_vram_w(space,offset,data,0x000000ff); return; case 0xffff0000: vega_vram_w(space,offset,data,0xff000000); vega_vram_w(space,offset,data,0x00ff0000); return; case 0x0000ffff: vega_vram_w(space,offset,data,0x0000ff00); vega_vram_w(space,offset,data,0x000000ff); return; default: // don't write transparent pen if((data & mem_mask) == mem_mask) return; } COMBINE_DATA(&vega_vram[offset + vega_vbuffer * (0x14000/4)]); }