summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/tc009xlvc.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2014-02-20 18:11:00 +0000
committer Aaron Giles <aaron@aarongiles.com>2014-02-20 18:11:00 +0000
commitdd15b719a3c01392a36eb3e5710e6cf0d15b6770 (patch)
tree75954efc8ae4a2073faaacca7298661366b5bf2f /src/emu/machine/tc009xlvc.c
parent9fa82ef4c3d247a7279cea7f423697524abdbd6b (diff)
Another round of auto_alloc_array conversions.
Some minor enhancements to dynamic_array, including clearing to specific values and expanding and clearing newly allocated values.
Diffstat (limited to 'src/emu/machine/tc009xlvc.c')
-rw-r--r--src/emu/machine/tc009xlvc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/emu/machine/tc009xlvc.c b/src/emu/machine/tc009xlvc.c
index beda58b97af..c80c38b2f11 100644
--- a/src/emu/machine/tc009xlvc.c
+++ b/src/emu/machine/tc009xlvc.c
@@ -256,21 +256,20 @@ static const gfx_layout char_layout =
void tc0091lvc_device::device_start()
{
- m_palette_ram = auto_alloc_array_clear(machine(), UINT8, 0x200);
- m_vregs = auto_alloc_array_clear(machine(), UINT8, 0x100);
- m_bitmap_ram = auto_alloc_array_clear(machine(), UINT8, 0x20000);
+ memset(m_palette_ram, 0, sizeof(m_palette_ram));
+ memset(m_vregs, 0, sizeof(m_palette_ram));
+ memset(m_bitmap_ram, 0, sizeof(m_palette_ram));
+ memset(m_pcg_ram, 0, sizeof(m_pcg_ram));
+ memset(m_sprram_buffer, 0, sizeof(m_sprram_buffer));
// note, the way tiles are addressed suggests that 0x0000-0x3fff of this might be usable,
// but we don't map it anywhere, so the first tiles are always blank at the moment.
- m_pcg_ram = auto_alloc_array_clear(machine(), UINT8, 0x10000);
-
m_pcg1_ram = m_pcg_ram + 0x4000;
m_pcg2_ram = m_pcg_ram + 0xc000;
m_vram0 = m_pcg_ram + 0x8000;
m_vram1 = m_pcg_ram + 0x9000;
m_tvram = m_pcg_ram + 0xa000;
m_sprram = m_pcg_ram + 0xb000;
- m_sprram_buffer = auto_alloc_array_clear(machine(), UINT8, 0x400);
tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_tx_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
bg0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_bg0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);