trunk/src/mame/machine/3do.c
| r21727 | r21728 | |
| 1114 | 1114 | m_dspp.EI = auto_alloc_array(machine(), UINT16, 0x400 ); |
| 1115 | 1115 | m_dspp.EO = auto_alloc_array(machine(), UINT16, 0x400 ); |
| 1116 | 1116 | |
| 1117 | memset(m_dspp.N, 0, sizeof(UINT16) * 0x400); |
| 1118 | memset(m_dspp.EI, 0, sizeof(UINT16) * 0x400); |
| 1119 | memset(m_dspp.EO, 0, sizeof(UINT16) * 0x400); |
| 1120 | |
| 1117 | 1121 | state_save_register_global_pointer(machine(), m_dspp.N, 0x800); |
| 1118 | 1122 | state_save_register_global_pointer(machine(), m_dspp.EI, 0x400); |
| 1119 | 1123 | state_save_register_global_pointer(machine(), m_dspp.EO, 0x400); |
trunk/src/mess/machine/apple2.c
| r21727 | r21728 | |
| 2138 | 2138 | /* there appears to be some hidden RAM that is swapped in on the Apple |
| 2139 | 2139 | * IIc plus; I have not found any official documentation but the BIOS |
| 2140 | 2140 | * clearly uses this area as writeable memory */ |
| 2141 | | if (!strcmp(machine().system().name, "apple2cp")) |
| 2141 | if (!strcmp(machine().system().name, "apple2cp")) { |
| 2142 | 2142 | apple2cp_ce00_ram = auto_alloc_array(machine(), UINT8, 0x200); |
| 2143 | memset(apple2cp_ce00_ram, 0, sizeof(UINT8) * 0x200); |
| 2144 | } |
| 2143 | 2145 | |
| 2144 | 2146 | m_machinetype = APPLE_IIEPLUS; |
| 2145 | 2147 | |
| r21727 | r21728 | |
| 2163 | 2165 | /* there appears to be some hidden RAM that is swapped in on the Apple |
| 2164 | 2166 | * IIc plus; I have not found any official documentation but the BIOS |
| 2165 | 2167 | * clearly uses this area as writeable memory */ |
| 2166 | | if (!strcmp(machine().system().name, "apple2cp")) |
| 2168 | if (!strcmp(machine().system().name, "apple2cp")) { |
| 2167 | 2169 | apple2cp_ce00_ram = auto_alloc_array(machine(), UINT8, 0x200); |
| 2170 | memset(apple2cp_ce00_ram, 0, sizeof(UINT8) * 0x200); |
| 2171 | } |
| 2168 | 2172 | |
| 2169 | 2173 | m_machinetype = APPLE_IIE; |
| 2170 | 2174 | |
trunk/src/mess/machine/docg3.c
| r21727 | r21728 | |
| 776 | 776 | memset(m_sec_2, 0, sizeof(m_sec_2)); |
| 777 | 777 | |
| 778 | 778 | m_data[0] = auto_alloc_array( machine(), UINT8, m_data_size[0]); |
| 779 | memset(m_data[0], 0, sizeof(UINT8) * m_data_size[0]); |
| 779 | 780 | m_data[1] = auto_alloc_array( machine(), UINT8, m_data_size[1]); |
| 781 | memset(m_data[1], 0, sizeof(UINT8) * m_data_size[1]); |
| 780 | 782 | m_data[2] = auto_alloc_array( machine(), UINT8, m_data_size[2]); |
| 783 | memset(m_data[2], 0, sizeof(UINT8) * m_data_size[2]); |
| 781 | 784 | |
| 782 | 785 | // diskonchip_load( device, "diskonchip"); |
| 783 | 786 | |
trunk/src/mess/machine/i82439tx.c
| r21727 | r21728 | |
| 314 | 314 | m_regs[0x06] = 0x00000000; |
| 315 | 315 | m_regs[0x07] = 0x00000000; |
| 316 | 316 | |
| 317 | memset(m_bios_ram, 0, sizeof(m_bios_ram)); |
| 318 | |
| 317 | 319 | /* configure initial memory state */ |
| 318 | 320 | i82439tx_configure_memory(0, 0xf0000, 0xfffff); |
| 319 | 321 | i82439tx_configure_memory(0, 0xc0000, 0xc3fff); |
trunk/src/mess/video/isa_ega.c
| r21727 | r21728 | |
| 612 | 612 | |
| 613 | 613 | m_videoram = m_vram->base(); |
| 614 | 614 | m_plane[0] = m_videoram + 0x00000; |
| 615 | memset(m_plane[0], 0, sizeof(UINT8) * 0x10000); |
| 615 | 616 | m_plane[1] = m_videoram + 0x10000; |
| 617 | memset(m_plane[1], 0, sizeof(UINT8) * 0x10000); |
| 616 | 618 | m_plane[2] = m_videoram + 0x20000; |
| 619 | memset(m_plane[2], 0, sizeof(UINT8) * 0x10000); |
| 617 | 620 | m_plane[3] = m_videoram + 0x30000; |
| 621 | memset(m_plane[3], 0, sizeof(UINT8) * 0x10000); |
| 618 | 622 | |
| 619 | 623 | m_crtc_ega = subdevice<crtc_ega_device>(EGA_CRTC_NAME); |
| 620 | 624 | |
trunk/src/mess/drivers/fmtowns.c
| r21727 | r21728 | |
| 2555 | 2555 | m_towns_vram = auto_alloc_array(machine(),UINT32,0x20000); |
| 2556 | 2556 | m_towns_gfxvram = auto_alloc_array(machine(),UINT8,0x80000); |
| 2557 | 2557 | m_towns_txtvram = auto_alloc_array(machine(),UINT8,0x20000); |
| 2558 | memset(m_towns_txtvram, 0, sizeof(UINT8)*0x20000); |
| 2558 | 2559 | //towns_sprram = auto_alloc_array(machine(),UINT8,0x20000); |
| 2559 | 2560 | m_towns_serial_rom = auto_alloc_array(machine(),UINT8,256/8); |
| 2560 | 2561 | init_serial_rom(machine()); |
trunk/src/mess/drivers/vboy.c
| r21727 | r21728 | |
| 236 | 236 | |
| 237 | 237 | m_font = auto_alloc_array_clear(machine(), UINT16, (0x8000 >> 1)*4 * 2); |
| 238 | 238 | m_bgmap = auto_alloc_array(machine(), UINT16, 0x20000 >> 1); |
| 239 | memset(m_bgmap, 0, sizeof(UINT16) * (0x20000 >> 1)); |
| 239 | 240 | } |
| 240 | 241 | |
| 241 | 242 | void vboy_state::put_obj(bitmap_ind16 &bitmap, const rectangle &cliprect, int x, int y, UINT16 code, UINT8 pal) |