Previous 199869 Revisions Next

r21728 Saturday 9th March, 2013 at 01:01:50 UTC by Oliver Stöneberg
ficed several occurances of uninitialized memory (nw)
[src/emu/video]ef9340_1.c
[src/mame/machine]3do.c
[src/mess/drivers]fmtowns.c vboy.c
[src/mess/machine]apple2.c docg3.c i82371ab.c i82439tx.c thomflop.c
[src/mess/video]isa_ega.c

trunk/src/mame/machine/3do.c
r21727r21728
11141114   m_dspp.EI = auto_alloc_array(machine(), UINT16, 0x400 );
11151115   m_dspp.EO = auto_alloc_array(machine(), UINT16, 0x400 );
11161116
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
11171121   state_save_register_global_pointer(machine(), m_dspp.N, 0x800);
11181122   state_save_register_global_pointer(machine(), m_dspp.EI, 0x400);
11191123   state_save_register_global_pointer(machine(), m_dspp.EO, 0x400);
trunk/src/emu/video/ef9340_1.c
r21727r21728
6161
6262void ef9340_1_device::device_reset()
6363{
64   memset(m_ef934x_ram_a, 0, sizeof(m_ef934x_ram_a));
65   memset(m_ef934x_ram_b, 0, sizeof(m_ef934x_ram_b));
66
6467   m_ef9340.X = 0;
6568   m_ef9340.Y = 0;
6669   m_ef9340.Y0 = 0;
trunk/src/mess/machine/i82371ab.c
r21727r21728
226226void i82371ab_device::device_reset()
227227{
228228   southbridge_device::device_reset();
229   memset(m_regs, 0, sizeof(m_regs));
229230   UINT32 (*regs32)[64] = (UINT32 (*)[64])(m_regs);
230231
231232   /* isa */
trunk/src/mess/machine/apple2.c
r21727r21728
21382138   /* there appears to be some hidden RAM that is swapped in on the Apple
21392139    * IIc plus; I have not found any official documentation but the BIOS
21402140    * clearly uses this area as writeable memory */
2141   if (!strcmp(machine().system().name, "apple2cp"))
2141   if (!strcmp(machine().system().name, "apple2cp")) {
21422142      apple2cp_ce00_ram = auto_alloc_array(machine(), UINT8, 0x200);
2143      memset(apple2cp_ce00_ram, 0, sizeof(UINT8) * 0x200);
2144   }
21432145
21442146   m_machinetype = APPLE_IIEPLUS;
21452147
r21727r21728
21632165   /* there appears to be some hidden RAM that is swapped in on the Apple
21642166    * IIc plus; I have not found any official documentation but the BIOS
21652167    * clearly uses this area as writeable memory */
2166   if (!strcmp(machine().system().name, "apple2cp"))
2168   if (!strcmp(machine().system().name, "apple2cp")) {
21672169      apple2cp_ce00_ram = auto_alloc_array(machine(), UINT8, 0x200);
2170      memset(apple2cp_ce00_ram, 0, sizeof(UINT8) * 0x200);
2171   }
21682172
21692173   m_machinetype = APPLE_IIE;
21702174
trunk/src/mess/machine/thomflop.c
r21727r21728
15501550   LOG(( "thmfc_floppy_init: THMFC1 controller\n" ));
15511551
15521552   thmfc1 = auto_alloc(machine(), thmfc1_t);
1553   memset(thmfc1, 0, sizeof(thmfc1_t));
15531554
15541555   thmfc_floppy_cmd = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(thomson_state::thmfc_floppy_cmd_complete_cb),this));
15551556
trunk/src/mess/machine/docg3.c
r21727r21728
776776   memset(m_sec_2, 0, sizeof(m_sec_2));
777777
778778   m_data[0] = auto_alloc_array( machine(), UINT8, m_data_size[0]);
779   memset(m_data[0], 0, sizeof(UINT8) * m_data_size[0]);
779780   m_data[1] = auto_alloc_array( machine(), UINT8, m_data_size[1]);
781   memset(m_data[1], 0, sizeof(UINT8) * m_data_size[1]);
780782   m_data[2] = auto_alloc_array( machine(), UINT8, m_data_size[2]);
783   memset(m_data[2], 0, sizeof(UINT8) * m_data_size[2]);
781784
782785//  diskonchip_load( device, "diskonchip");
783786
trunk/src/mess/machine/i82439tx.c
r21727r21728
314314   m_regs[0x06] = 0x00000000;
315315   m_regs[0x07] = 0x00000000;
316316
317   memset(m_bios_ram, 0, sizeof(m_bios_ram));
318
317319   /* configure initial memory state */
318320   i82439tx_configure_memory(0, 0xf0000, 0xfffff);
319321   i82439tx_configure_memory(0, 0xc0000, 0xc3fff);
trunk/src/mess/video/isa_ega.c
r21727r21728
612612
613613   m_videoram = m_vram->base();
614614   m_plane[0] = m_videoram + 0x00000;
615   memset(m_plane[0], 0, sizeof(UINT8) * 0x10000);
615616   m_plane[1] = m_videoram + 0x10000;
617   memset(m_plane[1], 0, sizeof(UINT8) * 0x10000);
616618   m_plane[2] = m_videoram + 0x20000;
619   memset(m_plane[2], 0, sizeof(UINT8) * 0x10000);
617620   m_plane[3] = m_videoram + 0x30000;
621   memset(m_plane[3], 0, sizeof(UINT8) * 0x10000);
618622
619623   m_crtc_ega = subdevice<crtc_ega_device>(EGA_CRTC_NAME);
620624
trunk/src/mess/drivers/fmtowns.c
r21727r21728
25552555   m_towns_vram = auto_alloc_array(machine(),UINT32,0x20000);
25562556   m_towns_gfxvram = auto_alloc_array(machine(),UINT8,0x80000);
25572557   m_towns_txtvram = auto_alloc_array(machine(),UINT8,0x20000);
2558   memset(m_towns_txtvram, 0, sizeof(UINT8)*0x20000);
25582559   //towns_sprram = auto_alloc_array(machine(),UINT8,0x20000);
25592560   m_towns_serial_rom = auto_alloc_array(machine(),UINT8,256/8);
25602561   init_serial_rom(machine());
trunk/src/mess/drivers/vboy.c
r21727r21728
236236
237237   m_font  = auto_alloc_array_clear(machine(), UINT16, (0x8000 >> 1)*4 * 2);
238238   m_bgmap = auto_alloc_array(machine(), UINT16, 0x20000 >> 1);
239   memset(m_bgmap, 0, sizeof(UINT16) * (0x20000 >> 1));
239240}
240241
241242void vboy_state::put_obj(bitmap_ind16 &bitmap, const rectangle &cliprect, int x, int y, UINT16 code, UINT8 pal)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team