@@ -335,46 +335,46 @@ class namcos21_state : public driver_device
335335 required_device<namco_c148_device> m_master_intc;
336336 required_device<namco_c148_device> m_slave_intc;
337337 required_device<namco_c148_device> m_gpu_intc;
338- memory_share_creator<uint8_t > m_nvram;
338+ memory_share_creator<u8 > m_nvram;
339339 required_device<c140_device> m_c140;
340340 required_device<palette_device> m_palette;
341341 required_device<screen_device> m_screen;
342342 required_memory_bank m_audiobank;
343343 required_region_ptr<u16 > m_c140_region;
344- required_shared_ptr<uint8_t > m_dpram;
344+ required_shared_ptr<u8 > m_dpram;
345345 required_device<namcos21_3d_device> m_namcos21_3d;
346346 required_device<namcos21_dsp_device> m_namcos21_dsp;
347347
348- std::unique_ptr<uint8_t []> m_gpu_videoram;
348+ std::unique_ptr<u8 []> m_gpu_videoram;
349349
350- uint8_t m_gpu_videoram_mask = 0 ;
351- uint16_t m_gpu_color = 0 ;
352- uint16_t m_gpu_register[0x10 /2 ] = { };
350+ u8 m_gpu_videoram_mask = 0 ;
351+ u16 m_gpu_color = 0 ;
352+ u16 m_gpu_register[0x10 /2 ] = { };
353353
354- uint16_t dpram_word_r (offs_t offset);
355- void dpram_word_w (offs_t offset, uint16_t data, uint16_t mem_mask = ~0 );
356- uint8_t dpram_byte_r (offs_t offset);
357- void dpram_byte_w (offs_t offset, uint8_t data);
354+ u16 dpram_word_r (offs_t offset);
355+ void dpram_word_w (offs_t offset, u16 data, u16 mem_mask = ~0 );
356+ u8 dpram_byte_r (offs_t offset);
357+ void dpram_byte_w (offs_t offset, u8 data);
358358
359- uint16_t gpu_color_r ();
360- void gpu_color_w (offs_t offset, uint16_t data, uint16_t mem_mask = ~0 );
361- uint16_t gpu_register_r (offs_t offset);
362- void gpu_register_w (offs_t offset, uint16_t data, uint16_t mem_mask = ~0 );
363- void gpu_videoram_w (offs_t offset, uint16_t data, uint16_t mem_mask = ~0 );
364- uint16_t gpu_videoram_r (offs_t offset);
359+ u16 gpu_color_r ();
360+ void gpu_color_w (offs_t offset, u16 data, u16 mem_mask = ~0 );
361+ u16 gpu_register_r (offs_t offset);
362+ void gpu_register_w (offs_t offset, u16 data, u16 mem_mask = ~0 );
363+ void gpu_videoram_w (offs_t offset, u16 data, u16 mem_mask = ~0 );
364+ u16 gpu_videoram_r (offs_t offset);
365365
366- void nvram_w (offs_t offset, uint8_t data) { m_nvram[offset] = data; }
367- uint8_t nvram_r (offs_t offset) { return m_nvram[offset]; }
366+ void nvram_w (offs_t offset, u8 data) { m_nvram[offset] = data; }
367+ u8 nvram_r (offs_t offset) { return m_nvram[offset]; }
368368
369- void sound_bankselect_w (uint8_t data);
369+ void sound_bankselect_w (u8 data);
370370
371- void sound_reset_w (uint8_t data);
372- void system_reset_w (uint8_t data);
371+ void sound_reset_w (u8 data);
372+ void system_reset_w (u8 data);
373373 void reset_all_subcpus (int state);
374374
375375 TIMER_DEVICE_CALLBACK_MEMBER (screen_scanline);
376376
377- uint32_t screen_update (screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
377+ u32 screen_update (screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
378378
379379 void bitmap_draw (bitmap_ind16 &bitmap, const rectangle &cliprect);
380380
@@ -388,36 +388,36 @@ class namcos21_state : public driver_device
388388
389389void namcos21_state::video_start ()
390390{
391- m_gpu_videoram = make_unique_clear<uint8_t []>(0x80000 );
391+ m_gpu_videoram = make_unique_clear<u8 []>(0x80000 );
392392 save_pointer (NAME (m_gpu_videoram), 0x80000 );
393393}
394394
395- uint16_t namcos21_state::gpu_color_r ()
395+ u16 namcos21_state::gpu_color_r ()
396396{
397397 return m_gpu_color;
398398}
399399
400- void namcos21_state::gpu_color_w (offs_t offset, uint16_t data, uint16_t mem_mask)
400+ void namcos21_state::gpu_color_w (offs_t offset, u16 data, u16 mem_mask)
401401{
402402 COMBINE_DATA (&m_gpu_color);
403403}
404404
405- uint16_t namcos21_state::gpu_register_r (offs_t offset)
405+ u16 namcos21_state::gpu_register_r (offs_t offset)
406406{
407407 return m_gpu_register[offset];
408408}
409409
410- void namcos21_state::gpu_register_w (offs_t offset, uint16_t data, uint16_t mem_mask)
410+ void namcos21_state::gpu_register_w (offs_t offset, u16 data, u16 mem_mask)
411411{
412412 m_screen->update_partial (m_screen->vpos ());
413413 COMBINE_DATA (&m_gpu_register[offset]);
414414}
415415
416- void namcos21_state::gpu_videoram_w (offs_t offset, uint16_t data, uint16_t mem_mask)
416+ void namcos21_state::gpu_videoram_w (offs_t offset, u16 data, u16 mem_mask)
417417{
418418 // it always does word access
419419 m_gpu_videoram_mask = data & 0xff ;
420- uint8_t color = data >> 8 ;
420+ u8 color = data >> 8 ;
421421
422422 for (int i = 0 ; i < 8 ; i++)
423423 {
@@ -426,7 +426,7 @@ void namcos21_state::gpu_videoram_w(offs_t offset, uint16_t data, uint16_t mem_m
426426 }
427427}
428428
429- uint16_t namcos21_state::gpu_videoram_r (offs_t offset)
429+ u16 namcos21_state::gpu_videoram_r (offs_t offset)
430430{
431431 return (m_gpu_videoram[offset] << 8 ) | m_gpu_videoram_mask;
432432}
@@ -441,14 +441,14 @@ void namcos21_state::bitmap_draw(bitmap_ind16 &bitmap, const rectangle &cliprect
441441 printf("| %04x\n", m_gpu_color);
442442#endif
443443
444- int const yscroll = -cliprect.top () + (int16_t )m_gpu_register[1 ];
444+ int const yscroll = -cliprect.top () + (s16 )m_gpu_register[1 ];
445445 int const xscroll = m_gpu_register[0 ] & 0xff ;
446446 int const base = 0x1000 | (m_gpu_color << 8 & 0xf00 );
447447
448448 for (int sy = cliprect.top (); sy <= cliprect.bottom (); sy++)
449449 {
450- uint8_t const *const pSource = &m_gpu_videoram[((yscroll + sy) & 0x3ff ) * 0x200 ];
451- uint16_t *const pDest = &bitmap.pix (sy);
450+ u8 const *const pSource = &m_gpu_videoram[((yscroll + sy) & 0x3ff ) * 0x200 ];
451+ u16 *const pDest = &bitmap.pix (sy);
452452 for (int sx = cliprect.left (); sx <= cliprect.right (); sx++)
453453 {
454454 int const pen = pSource[(sx + xscroll) & 0x1ff ];
@@ -481,7 +481,7 @@ void namcos21_state::bitmap_draw(bitmap_ind16 &bitmap, const rectangle &cliprect
481481}
482482
483483
484- uint32_t namcos21_state::screen_update (screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
484+ u32 namcos21_state::screen_update (screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
485485{
486486 bitmap.fill ((m_gpu_color << 8 & 0xf00 ) | 0xff , cliprect);
487487
@@ -512,23 +512,23 @@ uint32_t namcos21_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
512512
513513// dual port ram memory handlers
514514
515- uint16_t namcos21_state::dpram_word_r (offs_t offset)
515+ u16 namcos21_state::dpram_word_r (offs_t offset)
516516{
517517 return m_dpram[offset];
518518}
519519
520- void namcos21_state::dpram_word_w (offs_t offset, uint16_t data, uint16_t mem_mask)
520+ void namcos21_state::dpram_word_w (offs_t offset, u16 data, u16 mem_mask)
521521{
522522 if (ACCESSING_BITS_0_7 )
523523 m_dpram[offset] = data & 0xff ;
524524}
525525
526- uint8_t namcos21_state::dpram_byte_r (offs_t offset)
526+ u8 namcos21_state::dpram_byte_r (offs_t offset)
527527{
528528 return m_dpram[offset];
529529}
530530
531- void namcos21_state::dpram_byte_w (offs_t offset, uint8_t data)
531+ void namcos21_state::dpram_byte_w (offs_t offset, u8 data)
532532{
533533 m_dpram[offset] = data;
534534}
@@ -707,12 +707,12 @@ static INPUT_PORTS_START( winrungp )
707707 PORT_DIPSETTING( 0x00 , " 4M" )
708708INPUT_PORTS_END
709709
710- void namcos21_state::sound_bankselect_w(uint8_t data)
710+ void namcos21_state::sound_bankselect_w(u8 data)
711711{
712712 m_audiobank->set_entry (data >> 4 );
713713}
714714
715- void namcos21_state::sound_reset_w (uint8_t data)
715+ void namcos21_state::sound_reset_w (u8 data)
716716{
717717 if (data & 0x01 )
718718 {
@@ -726,7 +726,7 @@ void namcos21_state::sound_reset_w(uint8_t data)
726726 }
727727}
728728
729- void namcos21_state::system_reset_w (uint8_t data)
729+ void namcos21_state::system_reset_w (u8 data)
730730{
731731 reset_all_subcpus (data & 1 ? CLEAR_LINE : ASSERT_LINE );
732732}
@@ -752,7 +752,7 @@ void namcos21_state::machine_reset()
752752
753753void namcos21_state::machine_start ()
754754{
755- uint32_t max = memregion (" audiocpu" )->bytes () / 0x4000 ;
755+ u32 max = memregion (" audiocpu" )->bytes () / 0x4000 ;
756756 for (int i = 0 ; i < 0x10 ; i++)
757757 m_audiobank->configure_entry (i, memregion (" audiocpu" )->base () + (i % max) * 0x4000 );
758758
0 commit comments