Previous 199869 Revisions Next

r17598 Sunday 2nd September, 2012 at 22:22:28 UTC by Angelo Salese
Kill user5 in SNES related drivers, nw
[src/mame/audio]snes_snd.c
[src/mame/drivers]littlerb.c sfcbox.c snesb.c
[src/mess/drivers]snes.c

trunk/src/mame/audio/snes_snd.c
r17597r17598
11841184         if ((data & 0x80) != (spc700->ram[0xf1] & 0x80))
11851185         {
11861186            if (data & 0x80)
1187               memcpy(spc700->ipl_region, device->machine().root_device().memregion("user5")->base(), 64);
1187               memcpy(spc700->ipl_region, device->machine().root_device().memregion("sound_ipl")->base(), 64);
11881188            else
11891189               memcpy(spc700->ipl_region, &spc700->ram[0xffc0], 64);
11901190         }
r17597r17598
13321332   spc700->ram[0xf1] = 0x80;
13331333
13341334   /* put IPL image at the top of RAM */
1335   memcpy(spc700->ipl_region, machine.root_device().memregion("user5")->base(), 64);
1335   memcpy(spc700->ipl_region, machine.root_device().memregion("sound_ipl")->base(), 64);
13361336
13371337   /* Initialize the timers */
13381338   spc700->timer[0] = machine.scheduler().timer_alloc(FUNC(snes_spc_timer), spc700);
trunk/src/mame/drivers/sfcbox.c
r17597r17598
517517
518518#define SFCBOX_BIOS \
519519   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 ) \
520   ROM_REGION( 0x100, "user5", 0 )   \
520   ROM_REGION( 0x100, "sound_ipl", 0 )   \
521521   ROM_LOAD( "spc700.rom", 0x00, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) ) \
522522   ROM_REGION( 0x10000, "krom", 0 ) \
523523   ROM_LOAD( "krom1.ic1", 0x00000, 0x10000, CRC(c9010002) SHA1(f4c74086a83b728b1c1af3a021a60efa80eff5a4) ) \
trunk/src/mame/drivers/snesb.c
r17597r17598
865865   ROM_LOAD( "3.u16", 0x200000, 0x100000, CRC(7a40f7dd) SHA1(cebe632e8d2d68d0619077cc1e931af73c9a723b) )
866866   ROM_LOAD( "4.u17", 0x300000, 0x100000, CRC(3d7564c1) SHA1(392b513991897668d5dd469ac84a34f785895774) )
867867
868   ROM_REGION(0x100,           "user5", 0)
868   ROM_REGION(0x100,           "sound_ipl", 0)
869869   ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )
870870
871871   ROM_REGION(0x800,           "user6", ROMREGION_ERASEFF)
r17597r17598
907907   ROM_CONTINUE(          0x078000, 0x008000 )
908908   ROM_LOAD( "ff2_1.u8", 0x100000, 0x040000, CRC(ea315ac1) SHA1(a85de091882d35bc77dc99677511828ff7c20350) )
909909
910   ROM_REGION(0x100,           "user5", 0)
910   ROM_REGION(0x100,           "sound_ipl", 0)
911911   ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )
912912
913913   ROM_REGION(0x800,           "user6", ROMREGION_ERASEFF)
r17597r17598
919919   ROM_LOAD( "5.c10.bin", 0x080000, 0x080000, CRC(0c3a0b5b) SHA1(1e8ab860689137e0e94731f1af2cfc561492b5bd) )
920920   ROM_LOAD( "4.c11.bin", 0x100000, 0x040000, CRC(2aa417c7) SHA1(24b375e5bbd4be5dcd31b63ea98fbbadd53d543e) )
921921
922   ROM_REGION(0x100,           "user5", 0)
922   ROM_REGION(0x100,           "sound_ipl", 0)
923923   ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )
924924
925925   ROM_REGION(0x800,           "user6", ROMREGION_ERASEFF)
r17597r17598
932932   ROM_LOAD( "dj.u16", 0x100000, 0x0080000, CRC(7cb71fd7) SHA1(7673e9dcaabe804e2d637e67eabca1683dad4245) )
933933   ROM_LOAD( "dj.u17", 0x180000, 0x0080000, CRC(de29dd89) SHA1(441aefbc7ee64515ee66431ef504e76dc8dc5ca3) )
934934
935   ROM_REGION(0x100,           "user5", 0)
935   ROM_REGION(0x100,           "sound_ipl", 0)
936936   ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )
937937
938938   ROM_REGION(0x800,           "user6", ROMREGION_ERASEFF)
r17597r17598
941941ROM_START( sblast2b )
942942   ROM_REGION( 0x180000, "user3", ROMREGION_ERASEFF )
943943
944   ROM_REGION(0x100,           "user5", 0)
944   ROM_REGION(0x100,           "sound_ipl", 0)
945945   ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )
946946
947947   ROM_REGION(0x800,           "user6", ROMREGION_ERASEFF)
r17597r17598
960960   ROM_LOAD( "endlessduel.unknownposition3", 0x100000, 0x80000, CRC(30d06d7a) SHA1(17c617d94abb10c3bdf9d51013b116f4ef4debe8) )
961961   ROM_LOAD( "endlessduel.unknownposition4", 0x180000, 0x80000, CRC(9a9493ad) SHA1(82ee4fce9cc2014cb8404fd43eebb7941cdb9ac1) )
962962
963   ROM_REGION(0x100,           "user5", 0)
963   ROM_REGION(0x100,           "sound_ipl", 0)
964964   ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )
965965
966966   ROM_REGION(0x800,           "user6", ROMREGION_ERASEFF)
trunk/src/mame/drivers/littlerb.c
r17597r17598
8888        m_dacl(*this, "dacl"),
8989         m_dacr(*this, "dacr"),
9090      m_region4(*this, "region4")
91   {
91   {
9292      m_1ff80804 = -1;
9393   }
9494
r17597r17598
111111   UINT32 m_lasttype2pc;
112112   UINT8 m_sound_index_l,m_sound_index_r;
113113   UINT16 m_sound_pointer_l,m_sound_pointer_r;
114   
114
115115   bitmap_ind16 m_temp_bitmap_sprites;
116116   bitmap_ind16 m_temp_bitmap_sprites_back; // not currently used
117117
r17597r17598
155155   {
156156      littlerb_printf("littlerb_1ff80804_w %04x\n", data);
157157
158      if ((!(m_spritelist[2] & 0x1000)) && (!(m_spritelist[1] & 0x1000)))
158      if ((!(m_spritelist[2] & 0x1000)) && (!(m_spritelist[1] & 0x1000)))
159159      {
160160
161161      }
162      else
162      else
163163      {
164164         if (!(m_spritelist[2] & 0x1000))
165165            m_temp_bitmap_sprites_back.fill(0, m_temp_bitmap_sprites_back.cliprect());
166166
167167      }
168     
168
169169      littlerb_draw_sprites(space.machine());
170170
171171
r17597r17598
664664      else if (spriteregion[offs+0] == 0x0040)
665665      {
666666         littlerb_alt_printf("Control Word %04x %04x %04x %04x %04x %04x ---- ---- ---- ----\n", spriteregion[offs+0], spriteregion[offs+1], spriteregion[offs+2], spriteregion[offs+3], spriteregion[offs+4], spriteregion[offs+5]);
667         
667
668668         // some scroll stuff is here (title -> high score transition)
669669         // maybe also copy area operations?
670670
r17597r17598
680680      else if (read_dword == 0x00e40020)
681681      {
682682         littlerb_alt_printf("Control Word %04x %04x %04x %04x %04x %04x %04x %04x %04x %04x\n", spriteregion[offs+0], spriteregion[offs+1], spriteregion[offs+2], spriteregion[offs+3], spriteregion[offs+4], spriteregion[offs+5], spriteregion[offs+6], spriteregion[offs+7], spriteregion[offs+8], spriteregion[offs+9]);
683     
683
684684         if (spriteregion[offs+4]==0x6000)
685685            layer = 1;
686686         else
r17597r17598
692692      else if (read_dword == 0x00e40000)
693693      {
694694         littlerb_alt_printf("Control Word %04x %04x %04x %04x %04x %04x %04x %04x %04x %04x\n", spriteregion[offs+0], spriteregion[offs+1], spriteregion[offs+2], spriteregion[offs+3], spriteregion[offs+4], spriteregion[offs+5], spriteregion[offs+6], spriteregion[offs+7], spriteregion[offs+8], spriteregion[offs+9]);
695   
695
696696         if (spriteregion[offs+4]==0x6000)
697697            layer = 1;
698698         else
699699            layer = 0;
700         
700
701701         offs += 10;
702702      }
703703      else if (read_dword == 0x00000000)
r17597r17598
723723         if (layer==0) draw_sprite(machine, state->m_temp_bitmap_sprites, state->m_temp_bitmap_sprites.cliprect(),xsize,ysize,fullcode,x,y);
724724         else draw_sprite(machine, state->m_temp_bitmap_sprites_back, state->m_temp_bitmap_sprites_back.cliprect(),xsize,ysize,fullcode,x,y);
725725
726           
726
727727         offs += 6;
728728      }
729729   }
trunk/src/mess/drivers/snes.c
r17597r17598
812812ROM_START( snes )
813813   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
814814
815   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
815   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
816816   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
817817
818818   ROM_REGION( 0x10000, "addons", ROMREGION_ERASE00 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
825825ROM_START( snesdsp )
826826   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
827827
828   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
828   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
829829   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
830830
831831   ROM_REGION( 0x10000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
843843ROM_START( snesst10 )
844844   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
845845
846   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
846   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
847847   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
848848
849849   ROM_REGION( 0x11000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
857857ROM_START( snesst11 )
858858   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
859859
860   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
860   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
861861   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
862862
863863   ROM_REGION( 0x11000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
871871ROM_START( snessfx )
872872   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
873873
874   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
874   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
875875   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
876876
877877   ROM_REGION( 0x10000, "addons", ROMREGION_ERASE00 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
884884ROM_START( snespal )
885885   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
886886
887   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
887   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
888888   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
889889
890890   ROM_REGION( 0x10000, "addons", ROMREGION_ERASE00 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
897897ROM_START( snespdsp )
898898   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
899899
900   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
900   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
901901   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
902902
903903   ROM_REGION( 0x10000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
915915ROM_START( snespsfx )
916916   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
917917
918   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
918   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
919919   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
920920
921921   ROM_REGION( 0x10000, "addons", ROMREGION_ERASE00 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
928928ROM_START( snesst )
929929   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
930930
931   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
931   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
932932   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
933933
934934   ROM_REGION( 0x10000, "addons", ROMREGION_ERASE00 )      /* add-on chip ROMs (DSP, SFX, etc) */
r17597r17598
945945ROM_START( snesbsx )
946946   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
947947
948   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
948   ROM_REGION( 0x100, "sound_ipl", 0 )      /* IPL ROM */
949949   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
950950
951951   ROM_REGION( 0x10000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team