Previous 15994 Revisions Next

r15144 Friday 11th May, 2012 at 14:59:11 UTC by Miodrag Milanović
Sync with MAME r16252 (no whatsnew)
[src/emu/drivers]xtal.h
[src/emu/sound]upd7759.h
[src/lib/libflac/libflac]stream_decoder.c stream_encoder.c
[src/mame/drivers]gunbustr.c ksys573.c
[src/mame/includes]gunbustr.h

src/mame/includes/gunbustr.h
r15143r15144
1313public:
1414   gunbustr_state(const machine_config &mconfig, device_type type, const char *tag)
1515      : driver_device(mconfig, type, tag),
16      m_maincpu(*this,"maincpu"),
1617      m_ram(*this,"ram"),
17      m_spriteram(*this,"spriteram") { }
18      m_spriteram(*this,"spriteram")
19   {
20      m_coin_lockout = true;
21   }
1822
23   required_device<cpu_device> m_maincpu;
1924   required_shared_ptr<UINT32> m_ram;
2025   required_shared_ptr<UINT32> m_spriteram;
2126
27   bool m_coin_lockout;
2228   UINT16 m_coin_word;
2329   struct tempsprite *m_spritelist;
2430   UINT32 m_mem[2];
src/mame/drivers/ksys573.c
r15143r15144
51625162   ROM_REGION( 0x200000, "onboard.0", 0 ) /* onboard flash */
51635163   ROM_LOAD( "876ea.31m",    0x000000, 0x200000, CRC(a76043cb) SHA1(1c37034298abf3219d0bba29f4fcea8d83782926) )
51645164   ROM_REGION( 0x200000, "onboard.1", 0 ) /* onboard flash */
5165   ROM_LOAD( "876ea.27m",    0x000000, 0x200000, CRC(95a2a257) SHA1(3a8ecaabdf3d993c844bbc424c9fa15be7668462) )
5165   ROM_LOAD( "876ea.27m",    0x000000, 0x200000, BAD_DUMP CRC(95a2a257) SHA1(3a8ecaabdf3d993c844bbc424c9fa15be7668462) )
51665166   ROM_REGION( 0x200000, "onboard.2", 0 ) /* onboard flash */
51675167   ROM_LOAD( "876ea.31l",    0x000000, 0x200000, CRC(d011c7a5) SHA1(8861b62c8b654b8e719600a37337ae44e6438899) )
51685168   ROM_REGION( 0x200000, "onboard.3", 0 ) /* onboard flash */
r15143r15144
51705170   ROM_REGION( 0x200000, "onboard.4", 0 ) /* onboard flash */
51715171   ROM_LOAD( "876ea.31j",    0x000000, 0x200000, CRC(ae497ebc) SHA1(ef131e60726db94f0d9ceab70bce02c0de080ede) )
51725172   ROM_REGION( 0x200000, "onboard.5", 0 ) /* onboard flash */
5173   ROM_LOAD( "876ea.27j",    0x000000, 0x200000, CRC(0c4d8435) SHA1(cda642ccd5463edacfec582c120d65cf15452fc9) )
5173   ROM_LOAD( "876ea.27j",    0x000000, 0x200000, BAD_DUMP CRC(0c4d8435) SHA1(cda642ccd5463edacfec582c120d65cf15452fc9) )
51745174   ROM_REGION( 0x200000, "onboard.6", 0 ) /* onboard flash */
5175   ROM_LOAD( "876ea.31h",    0x000000, 0x200000, CRC(90545167) SHA1(fb58b52a9d94f92afefead7be291301019e263ee) )
5175   ROM_LOAD( "876ea.31h",    0x000000, 0x200000, BAD_DUMP CRC(90545167) SHA1(fb58b52a9d94f92afefead7be291301019e263ee) )
51765176   ROM_REGION( 0x200000, "onboard.7", 0 ) /* onboard flash */
51775177   ROM_LOAD( "876ea.27h",    0x000000, 0x200000, CRC(49175f99) SHA1(0154f6332ed210b6f0af20ba622133cde0994b7f) )
51785178
51795179   ROM_REGION( 0x002000, "m48t58", 0 ) /* timekeeper */
5180   ROM_LOAD( "876ea.22h",    0x000000, 0x002000, NO_DUMP )
5180   ROM_LOAD( "876ea.22h",    0x000000, 0x002000, CRC(8e11d196) SHA1(e7442fdd611f4290d531b1ebdc9f487e323fd531) )
51815181ROM_END
51825182
51835183ROM_START( hyperbbc )
src/mame/drivers/gunbustr.c
r15143r15144
11/****************************************************************************
22
3    Gunbuster                           (c) 1992 Taito
3    Gunbuster (c) 1992 Taito
44
55    Driver by Bryan McPhail & David Graves.
66
r15143r15144
8282
8383WRITE32_MEMBER(gunbustr_state::gunbustr_input_w)
8484{
85
86#if 0
87{
88char t[64];
89COMBINE_DATA(&m_mem[offset]);
90
91sprintf(t,"%08x %08x",m_mem[0],m_mem[1]);
92popmessage(t);
93}
94#endif
95
9685   switch (offset)
9786   {
9887      case 0x00:
9988      {
100         if (ACCESSING_BITS_24_31)   /* $400000 is watchdog */
89         if (ACCESSING_BITS_24_31)
10190         {
91            /* $400000 is watchdog */
10292            machine().watchdog_reset();
10393         }
10494
r15143r15144
10898            eeprom->set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE);
10999            eeprom->write_bit(data & 0x40);
110100            eeprom->set_cs_line((data & 0x10) ? CLEAR_LINE : ASSERT_LINE);
111            return;
112101         }
113         return;
102         break;
114103      }
115104
116105      case 0x01:
117106      {
118107         if (ACCESSING_BITS_24_31)
119108         {
120            // coin lockout does not work in gunbustrj, perhaps this was a prototype version without proper coin handling?
121            coin_lockout_w(machine(), 0, ~data & 0x01000000);
122            coin_lockout_w(machine(), 1, ~data & 0x02000000);
109            if (m_coin_lockout)
110            {
111               coin_lockout_w(machine(), 0, ~data & 0x01000000);
112               coin_lockout_w(machine(), 1, ~data & 0x02000000);
113            }
123114
124115            // game does not write a separate counter for coin 2! maybe in linked mode?
125116            coin_counter_w(machine(), 0, data & 0x04000000);
126117            coin_counter_w(machine(), 1, data & 0x04000000);
127118            m_coin_word = (data >> 16) &0xffff;
128119         }
129//logerror("CPU #0 PC %06x: write input %06x\n",cpu_get_pc(&device()),offset);
120         //logerror("CPU #0 PC %06x: write input %06x\n",cpu_get_pc(&device()),offset);
121         break;
130122      }
131123   }
132124}
133125
134126WRITE32_MEMBER(gunbustr_state::motor_control_w)
135127{
136/*
137    Standard value poked into MSW is 0x3c00
138    (0x2000 and zero are written at startup)
139
140*/
141   if (data & 0x1000000)
142   {
143   output_set_value("Player1_Gun_Recoil",1);
144   }
145   else
146   {
147   output_set_value("Player1_Gun_Recoil",0);
148   }
149
150   if (data & 0x10000)
151   {
152   output_set_value("Player2_Gun_Recoil",1);
153   }
154   else
155   {
156   output_set_value("Player2_Gun_Recoil",0);
157   }
158
159   if (data & 0x40000)
160   {
161   output_set_value("Hit_lamp",1);
162   }
163   else
164   {
165   output_set_value("Hit_lamp",0);
166   }
167
128    // Standard value poked into MSW is 0x3c00
129    // (0x2000 and zero are written at startup)
130   output_set_value("Player1_Gun_Recoil", (data & 0x1000000) ? 1 : 0);
131   output_set_value("Player2_Gun_Recoil", (data & 0x10000) ? 1 : 0);
132   output_set_value("Hit_lamp", (data & 0x40000) ? 1 : 0);
168133}
169134
170135
r15143r15144
327292
328293static const tc0480scp_interface gunbustr_tc0480scp_intf =
329294{
330   1, 2,      /* gfxnum, txnum */
331   0,      /* pixels */
295   1, 2,         /* gfxnum, txnum */
296   0,            /* pixels */
332297   0x20, 0x07,      /* x_offset, y_offset */
333   -1, -1,      /* text_xoff, text_yoff */
334   -1, 0,      /* flip_xoff, flip_yoff */
335   0      /* col_base */
298   -1, -1,         /* text_xoff, text_yoff */
299   -1, 0,         /* flip_xoff, flip_yoff */
300   0            /* col_base */
336301};
337302
338303static MACHINE_CONFIG_START( gunbustr, gunbustr_state )
339304
340305   /* basic machine hardware */
341   MCFG_CPU_ADD("maincpu", M68EC020, 16000000)   /* 16 MHz */
306   MCFG_CPU_ADD("maincpu", M68EC020, XTAL_16MHz)
342307   MCFG_CPU_PROGRAM_MAP(gunbustr_map)
343308   MCFG_CPU_VBLANK_INT("screen", gunbustr_interrupt) /* VBL */
344309
r15143r15144
479444{
480445   /* Speedup handler */
481446   gunbustr_state *state = machine.driver_data<gunbustr_state>();
482   machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x203acc, 0x203acf, read32_delegate(FUNC(gunbustr_state::main_cycle_r),state));
447   state->m_maincpu->memory().space(AS_PROGRAM)->install_read_handler(0x203acc, 0x203acf, read32_delegate(FUNC(gunbustr_state::main_cycle_r),state));
483448}
484449
450static DRIVER_INIT( gunbustrj )
451{
452   DRIVER_INIT_CALL(gunbustr);
453
454   // no coin lockout, perhaps this was a prototype version without proper coin handling?
455   gunbustr_state *state = machine.driver_data<gunbustr_state>();
456   state->m_coin_lockout = false;
457}
458
485459GAME( 1992, gunbustr,  0,        gunbustr, gunbustr, gunbustr, ORIENTATION_FLIP_X, "Taito Corporation Japan", "Gunbuster (World)", 0 )
486460GAME( 1992, gunbustru, gunbustr, gunbustr, gunbustr, gunbustr, ORIENTATION_FLIP_X, "Taito America Corporation", "Gunbuster (US)", 0 )
487GAME( 1992, gunbustrj, gunbustr, gunbustr, gunbustr, gunbustr, ORIENTATION_FLIP_X, "Taito Corporation", "Gunbuster (Japan)", 0 )
461GAME( 1992, gunbustrj, gunbustr, gunbustr, gunbustr, gunbustrj,ORIENTATION_FLIP_X, "Taito Corporation", "Gunbuster (Japan)", 0 )
src/emu/sound/upd7759.h
r15143r15144
1010   We're making the assumption that nobody switches modes through
1111   software. */
1212
13#define UPD7759_STANDARD_CLOCK      640000
13#define UPD7759_STANDARD_CLOCK      XTAL_640kHz
1414
1515typedef struct _upd7759_interface upd7759_interface;
1616struct _upd7759_interface
src/emu/drivers/xtal.h
r15143r15144
204204   XTAL_101_4912MHz   = 101491200,   /* PSX-based Namco System 10 */
205205   XTAL_200MHz         = 200000000,   /* Base SH4 CPU (Naomi, Hikaru etc.) */
206206
207/* Resonators (There are probably more. Almost always used for driving OKI sound chips) */
207/* Resonators (There are probably more) */
208208
209   XTAL_384kHz         = 384000,
210   XTAL_400kHz         = 400000,      /* Used on Great Swordman h/w */
211   XTAL_455kHz         = 455000,      /* Used on Gladiator h/w */
209   XTAL_384kHz         = 384000,      /* Commonly used for driving OKI MSM5205 */
210   XTAL_400kHz         = 400000,      /* OKI MSM5205 on Great Swordman h/w */
211   XTAL_455kHz         = 455000,      /* OKI MSM5205 on Gladiator h/w */
212212   XTAL_512kHz         = 512000,      /* Toshiba TC8830F */
213   XTAL_640kHz         = 640000,
214   XTAL_655kHz         = 655000,      /* Toshiba T6668 */
215   XTAL_1_056MHz      = 1056000      /* used on Trio The Punch */
213   XTAL_640kHz         = 640000,      /* NEC UPD7759, Texas Instruments Speech Chips */
214   XTAL_1_056MHz      = 1056000      /* OKI M6295 on Trio The Punch h/w */
216215};
217216
218217
src/lib/libflac/libflac/stream_decoder.c
r15143r15144
3838#include <string.h> /* for memset/memcpy() */
3939#include <sys/stat.h> /* for stat() */
4040#include <sys/types.h> /* for off_t */
41#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
42#if (!defined(_MSC_VER) || _MSC_VER <= 1600) || defined __BORLANDC__ /* @@@ [2G limit] */
41#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ /* @@@ [2G limit] */
4342#ifndef fseeko
4443#define fseeko fseek
4544#endif
r15143r15144
4746#define ftello ftell
4847#endif
4948#endif
50#endif
5149#include "flac/assert.h"
5250#include "share/alloc.h"
5351#include "protected/stream_decoder.h"
src/lib/libflac/libflac/stream_encoder.c
r15143r15144
3838#include <stdlib.h> /* for malloc() */
3939#include <string.h> /* for memcpy() */
4040#include <sys/types.h> /* for off_t */
41#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
42#if (!defined(_MSC_VER) || _MSC_VER <= 1600) || defined __BORLANDC__ /* @@@ [2G limit] */
41#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ /* @@@ [2G limit] */
4342#ifndef fseeko
4443#define fseeko fseek
4544#endif
r15143r15144
4746#define ftello ftell
4847#endif
4948#endif
50#endif
5149#include "flac/assert.h"
5250#include "flac/stream_decoder.h"
5351#include "share/alloc.h"

Previous 15994 Revisions Next


© 1998-2018 The MESS Team