trunk/src/emu/machine/tc009xlvc.c
| r17675 | r17676 | |
| 181 | 181 | { |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | | static TILE_GET_INFO_DEVICE( get_bg0_tile_info ) |
| 184 | TILE_GET_INFO_MEMBER(tc0091lvc_device::get_bg0_tile_info) |
| 185 | 185 | { |
| 186 | | tc0091lvc_device *vdp = (tc0091lvc_device*)device; |
| 187 | | int attr = vdp->m_vram0[2 * tile_index + 1]; |
| 188 | | int code = vdp->m_vram0[2 * tile_index] |
| 186 | int attr = m_vram0[2 * tile_index + 1]; |
| 187 | int code = m_vram0[2 * tile_index] |
| 189 | 188 | | ((attr & 0x03) << 8) |
| 190 | | | ((vdp->m_vregs[(attr & 0xc) >> 2]) << 10); |
| 189 | | ((m_vregs[(attr & 0xc) >> 2]) << 10); |
| 191 | 190 | // | (state->m_horshoes_gfxbank << 12); |
| 192 | 191 | |
| 193 | | SET_TILE_INFO_DEVICE( |
| 192 | SET_TILE_INFO_MEMBER( |
| 194 | 193 | 0, |
| 195 | 194 | code, |
| 196 | 195 | (attr & 0xf0) >> 4, |
| 197 | 196 | 0); |
| 198 | 197 | } |
| 199 | 198 | |
| 200 | | static TILE_GET_INFO_DEVICE( get_bg1_tile_info ) |
| 199 | TILE_GET_INFO_MEMBER(tc0091lvc_device::get_bg1_tile_info) |
| 201 | 200 | { |
| 202 | | tc0091lvc_device *vdp = (tc0091lvc_device*)device; |
| 203 | | int attr = vdp->m_vram1[2 * tile_index + 1]; |
| 204 | | int code = vdp->m_vram1[2 * tile_index] |
| 201 | int attr = m_vram1[2 * tile_index + 1]; |
| 202 | int code = m_vram1[2 * tile_index] |
| 205 | 203 | | ((attr & 0x03) << 8) |
| 206 | | | ((vdp->m_vregs[(attr & 0xc) >> 2]) << 10); |
| 204 | | ((m_vregs[(attr & 0xc) >> 2]) << 10); |
| 207 | 205 | // | (state->m_horshoes_gfxbank << 12); |
| 208 | 206 | |
| 209 | | SET_TILE_INFO_DEVICE( |
| 207 | SET_TILE_INFO_MEMBER( |
| 210 | 208 | 0, |
| 211 | 209 | code, |
| 212 | 210 | (attr & 0xf0) >> 4, |
| 213 | 211 | 0); |
| 214 | 212 | } |
| 215 | 213 | |
| 216 | | static TILE_GET_INFO_DEVICE( get_tx_tile_info ) |
| 214 | TILE_GET_INFO_MEMBER(tc0091lvc_device::get_tx_tile_info) |
| 217 | 215 | { |
| 218 | | tc0091lvc_device *vdp = (tc0091lvc_device*)device; |
| 219 | | int attr = vdp->m_tvram[2 * tile_index + 1]; |
| 220 | | UINT16 code = vdp->m_tvram[2 * tile_index] |
| 216 | int attr = m_tvram[2 * tile_index + 1]; |
| 217 | UINT16 code = m_tvram[2 * tile_index] |
| 221 | 218 | | ((attr & 0x07) << 8); |
| 222 | 219 | |
| 223 | | SET_TILE_INFO_DEVICE( |
| 224 | | vdp->m_gfx_index, |
| 220 | SET_TILE_INFO_MEMBER( |
| 221 | m_gfx_index, |
| 225 | 222 | code, |
| 226 | 223 | (attr & 0xf0) >> 4, |
| 227 | 224 | 0); |
| r17675 | r17676 | |
| 258 | 255 | m_sprram = m_pcg_ram + 0xb000; |
| 259 | 256 | m_sprram_buffer = auto_alloc_array_clear(machine(), UINT8, 0x400); |
| 260 | 257 | |
| 261 | | tx_tilemap = tilemap_create_device(this, get_tx_tile_info,TILEMAP_SCAN_ROWS,8,8,64,32); |
| 262 | | bg0_tilemap = tilemap_create_device(this, get_bg0_tile_info,TILEMAP_SCAN_ROWS,8,8,64,32); |
| 263 | | bg1_tilemap = tilemap_create_device(this, get_bg1_tile_info,TILEMAP_SCAN_ROWS,8,8,64,32); |
| 258 | tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_tx_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32); |
| 259 | bg0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_bg0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32); |
| 260 | bg1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_bg1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32); |
| 264 | 261 | |
| 265 | 262 | tx_tilemap->set_transparent_pen(0); |
| 266 | 263 | bg0_tilemap->set_transparent_pen(0); |