Previous 199869 Revisions Next

r36961 Sunday 5th April, 2015 at 18:57:38 UTC by Angelo Salese
video/hng64.c popmessages under pre-processor switch.
[src/emu/sound]l7a1045_l6028_dsp_a.c
[src/mame/video]hng64.c

trunk/src/emu/sound/l7a1045_l6028_dsp_a.c
r245472r245473
165165   }
166166}
167167
168
168// TODO: needs proper memory map
169169WRITE16_MEMBER( l7a1045_sound_device::l7a1045_sound_w )
170170{
171171   m_stream->update(); // TODO
r245472r245473
222222
223223WRITE16_MEMBER(l7a1045_sound_device::sound_data_w)
224224{
225//   if(m_audioregister == 0)
226//      printf("%04x %04x (%04x|%04x %04x)\n",offset,data,offset ^ 2,m_audioregister,m_audiochannel);
225   if(m_audioregister != 0)
226      printf("%04x %04x (%04x|%04x %04x)\n",offset,data,offset ^ 2,m_audioregister,m_audiochannel);
227227
228228   m_audiodat[m_audioregister][m_audiochannel].dat[offset] = data;
229229
trunk/src/mame/video/hng64.c
r245472r245473
44
55#define BLEND_TEST 0
66
7#define HNG64_VIDEO_DEBUG 0
78
89
910
1011
11
1212/* Transition Control Video Registers
1313 * ----------------------------------
1414 *
r245472r245473
623623   if ( (m_additive_tilemap_debug&(1 << tm)))
624624      debug_blend_enabled = 1;
625625
626#if HNG64_VIDEO_DEBUG
626627   if ((global_dimensions != 0) && (global_dimensions != 3))
627628      popmessage("unsupported global_dimensions on tilemaps");
629#endif
628630
629631   if (tm==0)
630632   {
r245472r245473
708710
709711         */
710712
713#if HNG64_VIDEO_DEBUG
711714         popmessage("Unhandled rowscroll %02x", tileregs>>12);
715#endif
712716      }
713717      else // 'simple' mode with linescroll, used in some ss64_2 levels (assumed to be correct, but doesn't do much with it.. so could be wrong)
714718      {
r245472r245473
751755   }
752756   else
753757   {
758#if HNG64_VIDEO_DEBUG
754759      if ((tileregs&0xf000))
755760         popmessage("Tilemap Mosaic? %02x", tileregs>>12);
761#endif
756762      // 0x1000 is set up the buriki 2nd title screen with rotating logo and in fatal fury at various times?
757763
758764      if (global_tileregs&0x04000000) // globally selects alt scroll register layout???
r245472r245473
775781         INT32 ytopleft,ymiddle, yalt;
776782         int xinc, xinc2, yinc, yinc2;
777783
784#if HNG64_VIDEO_DEBUG
778785         if (0)
779786            if (tm==2)
780787               popmessage("X %08x X %08x X %08x Y %08x Y %08x Y %08x",
r245472r245473
787794                  hng64_videoram[(0x40018+(scrollbase<<4))/4],
788795                  hng64_videoram[(0x4000c+(scrollbase<<4))/4]);
789796                  /*hng64_videoram[(0x4001c+(scrollbase<<4))/4]);*/ // unused? (dupe value on fatfurwa, 00 on rest)
797#endif
790798
791799
792
793800         xtopleft  = (hng64_videoram[(0x40000+(scrollbase<<4))/4]);
794801         xalt      = (hng64_videoram[(0x40004+(scrollbase<<4))/4]); // middle screen point
795802         xmiddle   = (hng64_videoram[(0x40010+(scrollbase<<4))/4]);
r245472r245473
868875         INT32 ytopleft,ymiddle;
869876         int xinc,yinc;
870877
878#if HNG64_VIDEO_DEBUG
871879         if (0)
872880            if (tm==2)
873881               popmessage("%08x %08x %08x %08x",
r245472r245473
875883                  hng64_videoram[(0x40014+(scrollbase<<4))/4],
876884                  hng64_videoram[(0x40018+(scrollbase<<4))/4],
877885                  hng64_videoram[(0x4001c+(scrollbase<<4))/4]);
886#endif
878887
879888         if (hng64_videoregs[0x00]&0x00010000) // disable all scrolling / zoom (test screen) (maybe)
880889         {
r245472r245473
10311040      if (!strcmp(machine().system().name, "sams64_2"))
10321041      {
10331042         space.write_byte(0x2f27c8, 0x2);
1034      }
1043      }
10351044      else if (!strcmp(machine().system().name, "roadedge")) // hack to get test mode (useful for sound test)
10361045      {
10371046         space.write_byte(0xcfb53, 0x1);
r245472r245473
10451054#endif
10461055
10471056
1048   
10491057
10501058
1059
10511060   bitmap.fill(hng64_tcram[0x50/4] & 0x10000 ? m_palette->black_pen() : m_palette->pen(0), cliprect); //FIXME: Is the register correct? check with HW tests
10521061   screen.priority().fill(0x00, cliprect);
10531062
r245472r245473
11321141   if(0)
11331142      transition_control(bitmap, cliprect);
11341143
1144#if HNG64_VIDEO_DEBUG
11351145   if (0)
11361146      popmessage("%08x %08x %08x %08x %08x", m_spriteregs[0], m_spriteregs[1], m_spriteregs[2], m_spriteregs[3], m_spriteregs[4]);
11371147
r245472r245473
12091219      m_additive_tilemap_debug ^= 8;
12101220      popmessage("blend changed %02x", m_additive_tilemap_debug);
12111221   }
1222#endif
12121223
12131224   return 0;
12141225}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team