Previous 199869 Revisions Next

r34497 Monday 19th January, 2015 at 19:13:54 UTC by Couriersud
Fixed clang (most likely > 3.4) compile. (nw)
[src/emu]emuopts.c
[src/emu/cpu/tms0980]tms0980.c
[src/emu/machine]6522via.c
[src/emu/ui]ui.c
[src/mame/drivers]bogeyman.c hikaru.c m58.c mappy.c pacman.c
[src/mame/includes]bogeyman.h m58.h pacman.h
[src/mame/video]bogeyman.c m58.c
[src/mess/drivers]ngen.c pasogo.c splitsec.c
[src/mess/layout]splitsec.lay
[src/mess/machine]amstrad.c
[src/tools]nltool.c

trunk/src/emu/cpu/tms0980/tms0980.c
r243008r243009
638638   tms1100_cpu_device::device_reset();
639639
640640   // small differences in 00-3f area
641   m_fixed_decode[0x09] = F_COMX;
641642   m_fixed_decode[0x0b] = F_TPC;
642643}
643644
trunk/src/emu/emuopts.c
r243008r243009
278278         }
279279      }
280280   }
281   while (add_slot_options(false));
282   add_device_options(false);
283281}
284282
285283
r243008r243009
367365   do {
368366      num = options_count();
369367      update_slot_options();
368      while (add_slot_options(false));
369      add_device_options(false);
370370      result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string);
371371   } while (num != options_count());
372372
r243008r243009
502502      do {
503503         num = options_count();
504504         update_slot_options();
505         while (add_slot_options(false));
506         add_device_options(false);
505507      } while(num != options_count());
506508   }
507509}
trunk/src/emu/machine/6522via.c
r243008r243009
223223   save_item(NAME(m_acr));
224224   save_item(NAME(m_ier));
225225   save_item(NAME(m_ifr));
226   save_item(NAME(m_time1));
227226   save_item(NAME(m_t1_active));
228227   save_item(NAME(m_t1_pb7));
229   save_item(NAME(m_time2));
230228   save_item(NAME(m_t2_active));
231229   save_item(NAME(m_shift_counter));
232230}
trunk/src/emu/ui/ui.c
r243008r243009
310310   const int maxstate = 4;
311311   int str = machine().options().seconds_to_run();
312312   bool show_gameinfo = !machine().options().skip_gameinfo();
313   bool show_warnings = true, show_mandatory_fileman = true;
313   bool show_warnings = true;
314314   int state;
315315
316316   // disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,
317317   // or if we are debugging
318318   if (!first_time || (str > 0 && str < 60*5) || &machine().system() == &GAME_NAME(___empty) || (machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
319      show_gameinfo = show_warnings = show_disclaimer = show_mandatory_fileman = FALSE;
319      show_gameinfo = show_warnings = show_disclaimer = FALSE;
320320
321321   #ifdef SDLMAME_EMSCRIPTEN
322322   // also disable for the JavaScript port since the startup screens do not run asynchronously
r243008r243009
355355            break;
356356
357357         case 3:
358            if (show_mandatory_fileman && image_mandatory_scan(machine(), messagebox_text).len() > 0)
358            if (image_mandatory_scan(machine(), messagebox_text).len() > 0)
359359            {
360360               astring warning;
361361               warning.cpy("This driver requires images to be loaded in the following device(s): ").cat(messagebox_text.substr(0, messagebox_text.len() - 2));
trunk/src/mame/drivers/bogeyman.c
r243008r243009
1313
1414#include "emu.h"
1515#include "cpu/m6502/m6502.h"
16#include "sound/ay8910.h"
1617#include "includes/bogeyman.h"
1718
1819
r243008r243009
2021
2122// Sound section is copied from Mysterious Stones driver by Nicola, Mike, Brad
2223
23WRITE8_MEMBER(bogeyman_state::ay8910_latch_w)
24WRITE8_MEMBER(bogeyman_state::bogeyman_8910_latch_w)
2425{
2526   m_psg_latch = data;
2627}
2728
28WRITE8_MEMBER(bogeyman_state::ay8910_control_w)
29WRITE8_MEMBER(bogeyman_state::bogeyman_8910_control_w)
2930{
3031   // bit 0 is flipscreen
3132   flip_screen_set(data & 0x01);
3233
3334   // bit 5 goes to 8910 #0 BDIR pin
3435   if ((m_last_write & 0x20) == 0x20 && (data & 0x20) == 0x00)
35      m_ay1->data_address_w(space, m_last_write >> 4, m_psg_latch);
36      machine().device<ay8910_device>("ay1")->data_address_w(space, m_last_write >> 4, m_psg_latch);
3637
3738   // bit 7 goes to 8910 #1 BDIR pin
3839   if ((m_last_write & 0x80) == 0x80 && (data & 0x80) == 0x00)
39      m_ay2->data_address_w(space, m_last_write >> 6, m_psg_latch);
40      machine().device<ay8910_device>("ay2")->data_address_w(space, m_last_write >> 6, m_psg_latch);
4041
4142   m_last_write = data;
4243}
r243008r243009
4546
4647static ADDRESS_MAP_START( bogeyman_map, AS_PROGRAM, 8, bogeyman_state )
4748   AM_RANGE(0x0000, 0x17ff) AM_RAM
48   AM_RANGE(0x1800, 0x1bff) AM_RAM_WRITE(videoram2_w) AM_SHARE("videoram2")
49   AM_RANGE(0x1c00, 0x1fff) AM_RAM_WRITE(colorram2_w) AM_SHARE("colorram2")
50   AM_RANGE(0x2000, 0x20ff) AM_RAM_WRITE(videoram_w) AM_SHARE("videoram")
51   AM_RANGE(0x2100, 0x21ff) AM_RAM_WRITE(colorram_w) AM_SHARE("colorram")
49   AM_RANGE(0x1800, 0x1bff) AM_RAM_WRITE(bogeyman_videoram2_w) AM_SHARE("videoram2")
50   AM_RANGE(0x1c00, 0x1fff) AM_RAM_WRITE(bogeyman_colorram2_w) AM_SHARE("colorram2")
51   AM_RANGE(0x2000, 0x20ff) AM_RAM_WRITE(bogeyman_videoram_w) AM_SHARE("videoram")
52   AM_RANGE(0x2100, 0x21ff) AM_RAM_WRITE(bogeyman_colorram_w) AM_SHARE("colorram")
5253   AM_RANGE(0x2800, 0x2bff) AM_RAM AM_SHARE("spriteram")
53   AM_RANGE(0x3000, 0x300f) AM_RAM_WRITE(paletteram_w) AM_SHARE("palette")
54   AM_RANGE(0x3800, 0x3800) AM_READ_PORT("P1") AM_WRITE(ay8910_control_w)
55   AM_RANGE(0x3801, 0x3801) AM_READ_PORT("P2") AM_WRITE(ay8910_latch_w)
54   AM_RANGE(0x3000, 0x300f) AM_RAM_WRITE(bogeyman_paletteram_w) AM_SHARE("palette")
55   AM_RANGE(0x3800, 0x3800) AM_READ_PORT("P1") AM_WRITE(bogeyman_8910_control_w)
56   AM_RANGE(0x3801, 0x3801) AM_READ_PORT("P2") AM_WRITE(bogeyman_8910_latch_w)
5657   AM_RANGE(0x3802, 0x3802) AM_READ_PORT("DSW1")
5758   AM_RANGE(0x3803, 0x3803) AM_READ_PORT("DSW2") AM_WRITENOP // ??? sound
5859   AM_RANGE(0x4000, 0xffff) AM_ROM
r243008r243009
204205{
205206   save_item(NAME(m_psg_latch));
206207   save_item(NAME(m_last_write));
207   save_item(NAME(m_colbank));
208208}
209209
210210void bogeyman_state::machine_reset()
211211{
212212   m_psg_latch = 0;
213213   m_last_write = 0;
214   m_colbank = 0;
215214}
216215
217WRITE8_MEMBER(bogeyman_state::colbank_w)
216WRITE8_MEMBER(bogeyman_state::bogeyman_colbank_w)
218217{
219218   if((data & 1) != (m_colbank & 1))
220219   {
r243008r243009
238237   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
239238   MCFG_SCREEN_SIZE(32*8, 32*8)
240239   MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
241   MCFG_SCREEN_UPDATE_DRIVER(bogeyman_state, screen_update)
240   MCFG_SCREEN_UPDATE_DRIVER(bogeyman_state, screen_update_bogeyman)
242241   MCFG_SCREEN_PALETTE("palette")
243242
244243   MCFG_GFXDECODE_ADD("gfxdecode", "palette", bogeyman)
r243008r243009
250249   MCFG_SPEAKER_STANDARD_MONO("mono")
251250
252251   MCFG_SOUND_ADD("ay1", AY8910, 1500000)  /* Verified */
253   MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(bogeyman_state, colbank_w))
252   MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(bogeyman_state, bogeyman_colbank_w))
254253   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
255254
256255   MCFG_SOUND_ADD("ay2", AY8910, 1500000)  /* Verified */
trunk/src/mame/drivers/hikaru.c
r243008r243009
738738   ROM_LOAD32_WORD( "mpr-23483.ic32", 0xc000002, 0x1000000, CRC(c37adebe) SHA1(e84f6d2cc364c743f7f3b73d8c8d0271952bb093) )
739739   ROM_LOAD32_WORD( "mpr-23480.ic33", 0xe000000, 0x1000000, CRC(f517b8b3) SHA1(c04740adb612473c4c9f8186e7e93d2f73d1bb1a) )
740740   ROM_LOAD32_WORD( "mpr-23484.ic34", 0xe000002, 0x1000000, CRC(2ebe1aa1) SHA1(16b39f7422da1a334dde27169c2949e1d95bddb3) )
741
742   // 317-0283-COM Actel A54SX32
743   // ID 0x4252
744   ROM_REGION( 4, "rom_key", 0 )
745   ROM_LOAD( "sgnascar-key.bin", 0x000000, 0x000004, CRC(f1452f9e) SHA1(86fb0f278a2eb0aba66a24032fb683f7a516b32b) )
746741ROM_END
747742
748743GAME( 2000, hikaru,   0,        hikaru,   hikaru, driver_device,   0, ROT0, "Sega",            "Hikaru Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
trunk/src/mame/drivers/m58.c
r243008r243009
2626
2727static ADDRESS_MAP_START( yard_map, AS_PROGRAM, 8, m58_state )
2828   AM_RANGE(0x0000, 0x5fff) AM_ROM
29   AM_RANGE(0x8000, 0x8fff) AM_RAM_WRITE(videoram_w) AM_SHARE("videoram")
30   AM_RANGE(0x9000, 0x9fff) AM_WRITE(scroll_panel_w)
29   AM_RANGE(0x8000, 0x8fff) AM_RAM_WRITE(yard_videoram_w) AM_SHARE("videoram")
30   AM_RANGE(0x9000, 0x9fff) AM_WRITE(yard_scroll_panel_w)
3131   AM_RANGE(0xc820, 0xc87f) AM_RAM AM_SHARE("spriteram")
3232   AM_RANGE(0xa000, 0xa000) AM_RAM AM_SHARE("scroll_x_low")
3333   AM_RANGE(0xa200, 0xa200) AM_RAM AM_SHARE("scroll_x_high")
3434   AM_RANGE(0xa400, 0xa400) AM_RAM AM_SHARE("scroll_y_low")
3535   AM_RANGE(0xa800, 0xa800) AM_RAM AM_SHARE("score_disable")
3636   AM_RANGE(0xd000, 0xd000) AM_DEVWRITE("irem_audio", irem_audio_device, cmd_w)
37   AM_RANGE(0xd001, 0xd001) AM_WRITE(flipscreen_w)    /* + coin counters */
37   AM_RANGE(0xd001, 0xd001) AM_WRITE(yard_flipscreen_w)    /* + coin counters */
3838   AM_RANGE(0xd000, 0xd000) AM_READ_PORT("IN0")
3939   AM_RANGE(0xd001, 0xd001) AM_READ_PORT("IN1")
4040   AM_RANGE(0xd002, 0xd002) AM_READ_PORT("IN2")
r243008r243009
203203
204204   MCFG_SCREEN_ADD("screen", RASTER)
205205   MCFG_SCREEN_RAW_PARAMS(MASTER_CLOCK/3, 384, 0, 256, 282, 42, 266)
206   MCFG_SCREEN_UPDATE_DRIVER(m58_state, screen_update)
206   MCFG_SCREEN_UPDATE_DRIVER(m58_state, screen_update_yard)
207207   MCFG_SCREEN_PALETTE("palette")
208208
209209   /* sound hardware */
trunk/src/mame/drivers/mappy.c
r243008r243009
24622462
24632463/* 3x6809, static tilemap, 2bpp sprites (Gaplus type) */
24642464GAME( 1983, phozon,   0,        phozon,   phozon, mappy_state,   phozon,        ROT90, "Namco", "Phozon (Japan)", GAME_SUPPORTS_SAVE )
2465GAME( 1983, phozons,  phozon,   phozon,   phozon, mappy_state,   phozon,        ROT90, "Namco (Sidam license)", "Phozon (Sidam)", GAME_SUPPORTS_SAVE )
2465GAME( 1983, phozons,  phozon,   phozon,   phozon, mappy_state,   phozon,        ROT90, "bootleg? (Sidam)", "Phozon (Sidam)", GAME_SUPPORTS_SAVE )
24662466
24672467/* 2x6809, scroling tilemap, 4bpp sprites (Super Pacman type) */
24682468GAME( 1983, mappy,    0,        mappy,    mappy, mappy_state,   mappy,        ROT90, "Namco", "Mappy (US)", GAME_SUPPORTS_SAVE )
trunk/src/mame/drivers/pacman.c
r243008r243009
66166616   membank("bank1")->set_entry(1);
66176617}
66186618
6619DRIVER_INIT_MEMBER(pacman_state, mschamp)
6620{
6621   save_item(NAME(m_counter));
6622}
6623
66246619DRIVER_INIT_MEMBER(pacman_state,woodpek)
66256620{
66266621   int i, len;
r243008r243009
68496844GAME( 1981, mspacii2, mspacman, woodpek,  mspacman, pacman_state,  mspacii,  ROT90,  "bootleg (Orca)", "Ms. Pac-Man II (Orca bootleg set 2)", GAME_SUPPORTS_SAVE )
68506845GAME( 1981, pacgal,   mspacman, woodpek,  mspacman, driver_device, 0,        ROT90,  "hack", "Pac-Gal", GAME_SUPPORTS_SAVE )
68516846GAME( 1981, mspacpls, mspacman, woodpek,  mspacpls, driver_device, 0,        ROT90,  "hack", "Ms. Pac-Man Plus", GAME_SUPPORTS_SAVE )
6852GAME( 1992, mschamp,  mspacman, mschamp,  mschamp,  pacman_state,  mschamp,  ROT90,  "hack", "Ms. Pacman Champion Edition / Zola-Puc Gal", GAME_SUPPORTS_SAVE ) /* Rayglo version */
6853GAME( 1995, mschamps, mspacman, mschamp,  mschamp,  pacman_state,  mschamp,  ROT90,  "hack", "Ms. Pacman Champion Edition / Super Zola-Puc Gal", GAME_SUPPORTS_SAVE )
6847GAME( 1992, mschamp,  mspacman, mschamp,  mschamp,  driver_device, 0,        ROT90,  "hack", "Ms. Pacman Champion Edition / Zola-Puc Gal", GAME_SUPPORTS_SAVE ) /* Rayglo version */
6848GAME( 1995, mschamps, mspacman, mschamp,  mschamp,  driver_device, 0,        ROT90,  "hack", "Ms. Pacman Champion Edition / Super Zola-Puc Gal", GAME_SUPPORTS_SAVE )
68546849
68556850// These bootlegs have MADE IN GREECE clearly visible and etched into the PCBs. They were very common in Spain with several operators having their own versions.
68566851// Based on the PCBs and copyright dates shown they  were produced late 80s / early 90s. Usually they run a version of Ms. Pacman, but were sometimes converted back to regular Pac-Man
trunk/src/mame/includes/bogeyman.h
r243008r243009
44
55*************************************************************************/
66
7#include "sound/ay8910.h"
8
97class bogeyman_state : public driver_device
108{
119public:
1210   bogeyman_state(const machine_config &mconfig, device_type type, const char *tag)
1311      : driver_device(mconfig, type, tag),
14      m_maincpu(*this, "maincpu"),
15      m_gfxdecode(*this, "gfxdecode"),
16      m_palette(*this, "palette"),
17      m_ay1(*this, "ay1"),
18      m_ay2(*this, "ay2"),
1912      m_videoram(*this, "videoram"),
2013      m_videoram2(*this, "videoram2"),
2114      m_colorram(*this, "colorram"),
2215      m_colorram2(*this, "colorram2"),
23      m_spriteram(*this, "spriteram")  { }
24   
25   /* devices */
26   required_device<cpu_device> m_maincpu;
27   required_device<gfxdecode_device> m_gfxdecode;
28   required_device<palette_device> m_palette;
29   required_device<ay8910_device> m_ay1;
30   required_device<ay8910_device> m_ay2;
31   
16      m_spriteram(*this, "spriteram"),
17      m_maincpu(*this, "maincpu"),
18      m_gfxdecode(*this, "gfxdecode"),
19      m_palette(*this, "palette") { }
20
3221   /* memory pointers */
3322   required_shared_ptr<UINT8> m_videoram;
3423   required_shared_ptr<UINT8> m_videoram2;
r243008r243009
4534   int        m_psg_latch;
4635   int        m_last_write;
4736   int        m_colbank;
48   
49   DECLARE_WRITE8_MEMBER(ay8910_latch_w);
50   DECLARE_WRITE8_MEMBER(ay8910_control_w);
51   DECLARE_WRITE8_MEMBER(videoram_w);
52   DECLARE_WRITE8_MEMBER(colorram_w);
53   DECLARE_WRITE8_MEMBER(videoram2_w);
54   DECLARE_WRITE8_MEMBER(colorram2_w);
55   DECLARE_WRITE8_MEMBER(paletteram_w);
56   DECLARE_WRITE8_MEMBER(colbank_w);
57   
37   DECLARE_WRITE8_MEMBER(bogeyman_8910_latch_w);
38   DECLARE_WRITE8_MEMBER(bogeyman_8910_control_w);
39   DECLARE_WRITE8_MEMBER(bogeyman_videoram_w);
40   DECLARE_WRITE8_MEMBER(bogeyman_colorram_w);
41   DECLARE_WRITE8_MEMBER(bogeyman_videoram2_w);
42   DECLARE_WRITE8_MEMBER(bogeyman_colorram2_w);
43   DECLARE_WRITE8_MEMBER(bogeyman_paletteram_w);
44   DECLARE_WRITE8_MEMBER(bogeyman_colbank_w);
5845   TILE_GET_INFO_MEMBER(get_bg_tile_info);
5946   TILE_GET_INFO_MEMBER(get_fg_tile_info);
60   
6147   virtual void machine_start();
6248   virtual void machine_reset();
6349   virtual void video_start();
64   
6550   DECLARE_PALETTE_INIT(bogeyman);
66   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
67   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
51   UINT32 screen_update_bogeyman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
52   void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
53   required_device<cpu_device> m_maincpu;
54   required_device<gfxdecode_device> m_gfxdecode;
55   required_device<palette_device> m_palette;
6856};
trunk/src/mame/includes/m58.h
r243008r243009
33public:
44   m58_state(const machine_config &mconfig, device_type type, const char *tag)
55      : driver_device(mconfig, type, tag),
6      m_videoram(*this, "videoram"),
7      m_spriteram(*this, "spriteram"),
8      m_yard_scroll_x_low(*this, "scroll_x_low"),
9      m_yard_scroll_x_high(*this, "scroll_x_high"),
10      m_yard_scroll_y_low(*this, "scroll_y_low"),
11      m_yard_score_panel_disabled(*this, "score_disable"),
612      m_maincpu(*this, "maincpu"),
713      m_gfxdecode(*this, "gfxdecode"),
814      m_screen(*this, "screen"),
9      m_palette(*this, "palette"),
10      m_videoram(*this, "videoram"),
11      m_spriteram(*this, "spriteram"),
12      m_scroll_x_low(*this, "scroll_x_low"),
13      m_scroll_x_high(*this, "scroll_x_high"),
14      m_scroll_y_low(*this, "scroll_y_low"),
15      m_score_panel_disabled(*this, "score_disable") { }
16   
17   /* devices */
18   required_device<cpu_device> m_maincpu;
19   required_device<gfxdecode_device> m_gfxdecode;
20   required_device<screen_device> m_screen;
21   required_device<palette_device> m_palette;
22   
15      m_palette(*this, "palette") { }
16
2317   /* memory pointers */
2418   required_shared_ptr<UINT8> m_videoram;
2519   required_shared_ptr<UINT8> m_spriteram;
26   required_shared_ptr<UINT8> m_scroll_x_low;
27   required_shared_ptr<UINT8> m_scroll_x_high;
28   required_shared_ptr<UINT8> m_scroll_y_low;
29   required_shared_ptr<UINT8> m_score_panel_disabled;
3020
3121   /* video-related */
3222   tilemap_t*             m_bg_tilemap;
33   bitmap_ind16             m_scroll_panel_bitmap;
34   
35   DECLARE_WRITE8_MEMBER(videoram_w);
36   DECLARE_WRITE8_MEMBER(scroll_panel_w);
37   DECLARE_WRITE8_MEMBER(flipscreen_w);
38   
23
24   required_shared_ptr<UINT8> m_yard_scroll_x_low;
25   required_shared_ptr<UINT8> m_yard_scroll_x_high;
26   required_shared_ptr<UINT8> m_yard_scroll_y_low;
27   required_shared_ptr<UINT8> m_yard_score_panel_disabled;
28   bitmap_ind16             *m_scroll_panel_bitmap;
29   DECLARE_WRITE8_MEMBER(yard_videoram_w);
30   DECLARE_WRITE8_MEMBER(yard_scroll_panel_w);
31   DECLARE_WRITE8_MEMBER(yard_flipscreen_w);
3932   DECLARE_DRIVER_INIT(yard85);
33   TILE_GET_INFO_MEMBER(yard_get_bg_tile_info);
34   TILEMAP_MAPPER_MEMBER(yard_tilemap_scan_rows);
4035   virtual void video_start();
4136   DECLARE_PALETTE_INIT(m58);
42   
43   TILE_GET_INFO_MEMBER(get_bg_tile_info);
44   TILEMAP_MAPPER_MEMBER(tilemap_scan_rows);
45   
46   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
37   UINT32 screen_update_yard(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4738   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
4839   void draw_panel( bitmap_ind16 &bitmap, const rectangle &cliprect );
40   required_device<cpu_device> m_maincpu;
41   required_device<gfxdecode_device> m_gfxdecode;
42   required_device<screen_device> m_screen;
43   required_device<palette_device> m_palette;
4944};
trunk/src/mame/includes/pacman.h
r243008r243009
125125   DECLARE_DRIVER_INIT(8bpm);
126126   DECLARE_DRIVER_INIT(porky);
127127   DECLARE_DRIVER_INIT(mspacman);
128   DECLARE_DRIVER_INIT(mschamp);
129128   TILEMAP_MAPPER_MEMBER(pacman_scan_rows);
130129   TILE_GET_INFO_MEMBER(pacman_get_tile_info);
131130   TILE_GET_INFO_MEMBER(s2650_get_tile_info);
trunk/src/mame/video/bogeyman.c
r243008r243009
3636   }
3737}
3838
39WRITE8_MEMBER(bogeyman_state::videoram_w)
39WRITE8_MEMBER(bogeyman_state::bogeyman_videoram_w)
4040{
4141   m_videoram[offset] = data;
4242   m_bg_tilemap->mark_tile_dirty(offset);
4343}
4444
45WRITE8_MEMBER(bogeyman_state::colorram_w)
45WRITE8_MEMBER(bogeyman_state::bogeyman_colorram_w)
4646{
4747   m_colorram[offset] = data;
4848   m_bg_tilemap->mark_tile_dirty(offset);
4949}
5050
51WRITE8_MEMBER(bogeyman_state::videoram2_w)
51WRITE8_MEMBER(bogeyman_state::bogeyman_videoram2_w)
5252{
5353   m_videoram2[offset] = data;
5454   m_fg_tilemap->mark_tile_dirty(offset);
5555}
5656
57WRITE8_MEMBER(bogeyman_state::colorram2_w)
57WRITE8_MEMBER(bogeyman_state::bogeyman_colorram2_w)
5858{
5959   m_colorram2[offset] = data;
6060   m_fg_tilemap->mark_tile_dirty(offset);
6161}
6262
63WRITE8_MEMBER(bogeyman_state::paletteram_w)
63WRITE8_MEMBER(bogeyman_state::bogeyman_paletteram_w)
6464{
6565   /* RGB output is inverted */
6666   m_palette->write(space, offset, UINT8(~data));
r243008r243009
9494   m_fg_tilemap->set_transparent_pen(0);
9595}
9696
97void bogeyman_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect)
97void bogeyman_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
9898{
99   for (int offs = 0; offs < m_spriteram.bytes(); offs += 4)
99   int offs;
100
101   for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
100102   {
101103      int attr = m_spriteram[offs];
102104
r243008r243009
137139   }
138140}
139141
140UINT32 bogeyman_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
142UINT32 bogeyman_state::screen_update_bogeyman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
141143{
142144   m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
143145   draw_sprites(bitmap, cliprect);
trunk/src/mame/video/m58.c
r243008r243009
102102 *
103103 *************************************/
104104
105WRITE8_MEMBER(m58_state::videoram_w)
105WRITE8_MEMBER(m58_state::yard_videoram_w)
106106{
107107   m_videoram[offset] = data;
108108   m_bg_tilemap->mark_tile_dirty(offset / 2);
109109}
110110
111111
112WRITE8_MEMBER(m58_state::scroll_panel_w)
112WRITE8_MEMBER(m58_state::yard_scroll_panel_w)
113113{
114114   int sx,sy,i;
115115
r243008r243009
128128      col = (data >> i) & 0x11;
129129      col = ((col >> 3) | col) & 3;
130130
131      m_scroll_panel_bitmap.pix16(sy, sx + i) = RADAR_PALETTE_BASE + (sy & 0xfc) + col;
131      m_scroll_panel_bitmap->pix16(sy, sx + i) = RADAR_PALETTE_BASE + (sy & 0xfc) + col;
132132   }
133133}
134134
r243008r243009
140140 *
141141 *************************************/
142142
143TILE_GET_INFO_MEMBER(m58_state::get_bg_tile_info)
143TILE_GET_INFO_MEMBER(m58_state::yard_get_bg_tile_info)
144144{
145145   int offs = tile_index * 2;
146146   int attr = m_videoram[offs + 1];
r243008r243009
152152}
153153
154154
155TILEMAP_MAPPER_MEMBER(m58_state::tilemap_scan_rows)
155TILEMAP_MAPPER_MEMBER(m58_state::yard_tilemap_scan_rows)
156156{
157157   /* logical (col,row) -> memory offset */
158158   if (col >= 32)
r243008r243009
175175   int height = m_screen->height();
176176   const rectangle &visarea = m_screen->visible_area();
177177
178   m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(m58_state::get_bg_tile_info),this), tilemap_mapper_delegate(FUNC(m58_state::tilemap_scan_rows),this),  8, 8, 64, 32);
178   m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(m58_state::yard_get_bg_tile_info),this), tilemap_mapper_delegate(FUNC(m58_state::yard_tilemap_scan_rows),this),  8, 8, 64, 32);
179179   m_bg_tilemap->set_scrolldx(visarea.min_x, width - (visarea.max_x + 1));
180180   m_bg_tilemap->set_scrolldy(visarea.min_y - 8, height + 16 - (visarea.max_y + 1));
181181
182   //m_scroll_panel_bitmap = auto_bitmap_ind16_alloc(machine(), SCROLL_PANEL_WIDTH, height);
183   m_screen->register_screen_bitmap(m_scroll_panel_bitmap);
184   save_item(NAME(m_scroll_panel_bitmap));
182   m_scroll_panel_bitmap = auto_bitmap_ind16_alloc(machine(), SCROLL_PANEL_WIDTH, height);
185183}
186184
187185
r243008r243009
192190 *
193191 *************************************/
194192
195WRITE8_MEMBER(m58_state::flipscreen_w)
193WRITE8_MEMBER(m58_state::yard_flipscreen_w)
196194{
197195   /* screen flip is handled both by software and hardware */
198196   flip_screen_set((data & 0x01) ^ (~ioport("DSW2")->read() & 0x01));
r243008r243009
267265
268266void m58_state::draw_panel( bitmap_ind16 &bitmap, const rectangle &cliprect )
269267{
270   if (!*m_score_panel_disabled)
268   if (!*m_yard_score_panel_disabled)
271269   {
272270      const rectangle clippanel(26*8, 32*8-1, 1*8, 31*8-1);
273271      const rectangle clippanelflip(0*8, 6*8-1, 1*8, 31*8-1);
r243008r243009
280278      clip.max_y += visarea.max_y + yoffs;
281279      clip &= cliprect;
282280
283      copybitmap(bitmap, m_scroll_panel_bitmap, flip_screen(), flip_screen(),
281      copybitmap(bitmap, *m_scroll_panel_bitmap, flip_screen(), flip_screen(),
284282               sx, visarea.min_y + yoffs, clip);
285283   }
286284}
r243008r243009
293291 *
294292 *************************************/
295293
296UINT32 m58_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
294UINT32 m58_state::screen_update_yard(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
297295{
298   m_bg_tilemap->set_scrollx(0, (*m_scroll_x_high * 0x100) + *m_scroll_x_low);
299   m_bg_tilemap->set_scrolly(0, *m_scroll_y_low);
296   m_bg_tilemap->set_scrollx(0, (*m_yard_scroll_x_high * 0x100) + *m_yard_scroll_x_low);
297   m_bg_tilemap->set_scrolly(0, *m_yard_scroll_y_low);
300298
301299   m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
302300   draw_sprites(bitmap, cliprect);
trunk/src/mess/drivers/ngen.c
r243008r243009
6767#include "machine/pit8253.h"
6868#include "machine/z80dart.h"
6969#include "machine/wd_fdc.h"
70#include "machine/wd2010.h"
7170#include "bus/rs232/rs232.h"
7271#include "machine/ngen_kb.h"
7372#include "machine/clock.h"
74#include "imagedev/harddriv.h"
7573
7674class ngen_state : public driver_device
7775{
r243008r243009
9189      m_fdc(*this,"fdc"),
9290      m_fd0(*this,"fdc:0"),
9391      m_fdc_timer(*this,"fdc_timer"),
94      m_hdc(*this,"hdc"),
95      m_hdc_timer(*this,"hdc_timer"),
96      m_hd_buffer(*this,"hd_buffer_ram")
92      m_hdc_timer(*this,"hdc_timer")
9793   {}
9894
9995   DECLARE_WRITE_LINE_MEMBER(pit_out0_w);
r243008r243009
133129   DECLARE_READ8_MEMBER(irq_cb);
134130   DECLARE_WRITE8_MEMBER(hdc_control_w);
135131   DECLARE_WRITE8_MEMBER(disk_addr_ext);
136   DECLARE_READ8_MEMBER(hd_buffer_r);
137   DECLARE_WRITE8_MEMBER(hd_buffer_w);
138132
139133protected:
140134   virtual void machine_reset();
141   virtual void machine_start();
142135
143136private:
144137   required_device<i80186_cpu_device> m_maincpu;
r243008r243009
154147   optional_device<wd2797_t> m_fdc;
155148   optional_device<floppy_connector> m_fd0;
156149   optional_device<pit8253_device> m_fdc_timer;
157   optional_device<wd2010_device> m_hdc;
158150   optional_device<pit8253_device> m_hdc_timer;
159   optional_shared_ptr<UINT8> m_hd_buffer;
160151
161152   void set_dma_channel(int channel, int state);
162153
r243008r243009
479470      case 0x0a:
480471      case 0x0b:
481472         if(mem_mask & 0x00ff)
482            m_fdc_timer->write(space,offset-0x08,data & 0xff);
473            m_fdc_timer->write(space,offset,data & 0xff);
483474         break;
484475      case 0x10:
485476      case 0x11:
r243008r243009
489480      case 0x15:
490481      case 0x16:
491482      case 0x17:
492         if(mem_mask & 0x00ff)
493            m_hdc->write(space,offset-0x10,data & 0xff);
494483         logerror("WD1010 register %i write %02x mask %04x\n",offset-0x10,data & 0xff,mem_mask);
495484         break;
496485      case 0x18:
r243008r243009
498487      case 0x1a:
499488      case 0x1b:
500489         if(mem_mask & 0x00ff)
501            m_hdc_timer->write(space,offset-0x18,data & 0xff);
490            m_hdc_timer->write(space,offset,data & 0xff);
502491         break;
503492   }
504493}
r243008r243009
521510      case 0x0a:
522511      case 0x0b:
523512         if(mem_mask & 0x00ff)
524            ret = m_fdc_timer->read(space,offset-0x08);
513            ret = m_fdc_timer->read(space,offset);
525514         break;
526515      case 0x10:
527516      case 0x11:
r243008r243009
531520      case 0x15:
532521      case 0x16:
533522      case 0x17:
534         if(mem_mask & 0x00ff)
535            ret = m_hdc->read(space,offset-0x10);
536523         logerror("WD1010 register %i read, mask %04x\n",offset-0x10,mem_mask);
537524         break;
538525      case 0x18:
r243008r243009
540527      case 0x1a:
541528      case 0x1b:
542529         if(mem_mask & 0x00ff)
543            ret = m_hdc_timer->read(space,offset-0x18);
530            ret = m_hdc_timer->read(space,offset);
544531         break;
545532   }
546533
r243008r243009
598585   m_disk_page = data & 0x7f;
599586}
600587
601READ8_MEMBER(ngen_state::hd_buffer_r)
602{
603   return m_hd_buffer[offset];
604}
605
606WRITE8_MEMBER(ngen_state::hd_buffer_w)
607{
608   m_hd_buffer[offset] = data;
609}
610
611588WRITE_LINE_MEMBER( ngen_state::dma_hrq_changed )
612589{
613590   m_maincpu->set_input_line(INPUT_LINE_HALT, state ? ASSERT_LINE : CLEAR_LINE);
r243008r243009
626603   {
627604      if(state)
628605      {
629         if(m_hdc_control & 0x04) // ROM transfer
606         if(m_hdc_control & 0x04) // ROM transfer?
630607            m_hdc_control &= ~0x04;  // switch it off when done
631608      }
632609   }
r243008r243009
712689   return m_pic->acknowledge();
713690}
714691
715void ngen_state::machine_start()
716{
717   m_hd_buffer.allocate(1024*8);  // 8kB buffer RAM for HD controller
718}
719
720692void ngen_state::machine_reset()
721693{
722694   m_port00 = 0;
r243008r243009
865837   MCFG_WD_FDC_DRQ_CALLBACK(DEVWRITELINE("maincpu",i80186_cpu_device,drq1_w))
866838   MCFG_WD_FDC_FORCE_READY
867839   MCFG_DEVICE_ADD("fdc_timer", PIT8253, 0)
868   MCFG_PIT8253_CLK0(XTAL_20MHz / 20) 
869   MCFG_PIT8253_OUT0_HANDLER(DEVWRITELINE("pic",pic8259_device,ir7_w))  // clocked on FDC data register access
840   MCFG_PIT8253_CLK0(XTAL_20MHz / 20)
841   MCFG_PIT8253_OUT0_HANDLER(DEVWRITELINE("pic",pic8259_device,ir7_w))
870842   MCFG_PIT8253_CLK1(XTAL_20MHz / 20)
871   MCFG_PIT8253_OUT1_HANDLER(DEVWRITELINE("pic",pic8259_device,ir7_w))  // 1MHz
872   MCFG_PIT8253_CLK2(XTAL_20MHz / 10)
873   MCFG_PIT8253_OUT2_HANDLER(DEVWRITELINE("pic",pic8259_device,ir7_w)) 
874   // TODO: WD1010 HDC (not implemented), use WD2010 for now
875   MCFG_DEVICE_ADD("hdc", WD2010, XTAL_20MHz / 4)
876   MCFG_WD2010_IN_BCS_CB(READ8(ngen_state,hd_buffer_r))
877   MCFG_WD2010_OUT_BCS_CB(WRITE8(ngen_state,hd_buffer_w))
878   MCFG_WD2010_IN_DRDY_CB(VCC)
879   MCFG_WD2010_IN_INDEX_CB(VCC)
880   MCFG_WD2010_IN_WF_CB(VCC)
881   MCFG_WD2010_IN_TK000_CB(VCC)
882   MCFG_WD2010_IN_SC_CB(VCC)
843   MCFG_PIT8253_OUT1_HANDLER(DEVWRITELINE("pic",pic8259_device,ir7_w))
844   MCFG_PIT8253_CLK2(XTAL_20MHz / 20)
845   MCFG_PIT8253_OUT2_HANDLER(DEVWRITELINE("pic",pic8259_device,ir7_w))
846   // TODO: WD1010 HDC (not implemented)
883847   MCFG_DEVICE_ADD("hdc_timer", PIT8253, 0)
884   MCFG_PIT8253_CLK2(XTAL_20MHz / 10)  // 2MHz
885848   MCFG_FLOPPY_DRIVE_ADD("fdc:0", ngen_floppies, "525qd", floppy_image_device::default_floppy_formats)
886   MCFG_HARDDISK_ADD("hard0")
887849
888850MACHINE_CONFIG_END
889851
trunk/src/mess/drivers/pasogo.c
r243008r243009
679679void pasogo_state::machine_reset()
680680{
681681   astring region_tag;
682   m_maincpu_rom = memregion("maincpu");
683682   m_cart_rom = memregion(region_tag.cpy(m_cart->tag()).cat(GENERIC_ROM_REGION_TAG));
684   if (!m_cart_rom)   // this should never happen, since we make carts mandatory!
685      m_cart_rom = memregion("maincpu");
683   m_maincpu_rom = memregion("maincpu");
686684
687685   membank("bank27")->set_base(m_cart_rom->base());
688686   membank("bank28")->set_base(m_maincpu_rom->base() + 0xb8000/*?*/);
trunk/src/mess/drivers/splitsec.c
r243008r243009
44
55  Parker Brothers Split Second
66  * TMS1400NLL MP7314-N2 (die labeled MP7314)
7 
8  This is an electronic handheld reflex gaming device, it's straightforward
9  to use. The included mini-games are:
10  1, 2, 3: Mad Maze*
11  4, 5: Space Attack*
12  6: Auto Cross
13  7: Stomp
14  8: Speedball
15 
16  *: higher number indicates harder difficulty
177
188
19  TODO:
20  - MCU clock is unknown
21
229***************************************************************************/
2310
2411#include "emu.h"
r243008r243009
2714
2815#include "splitsec.lh"
2916
30// The master clock is a single stage RC oscillator: R=24K, C=100pf,
31// according to the TMS 1000 series data manual this is around 375kHz.
32// However, this sounds too low-pitched and runs too slow when compared
33// to recordings, maybe the RC osc curve is different for TMS1400?
17// master clock is a single stage RC oscillator: R=24K, C=100pf,
18// according to the TMS 1000 series data manual this is around 375kHz
19#define MASTER_CLOCK (375000)
3420
35// so for now, the value below is an approximation
36#define MASTER_CLOCK (485000)
3721
38
3922class splitsec_state : public driver_device
4023{
4124public:
r243008r243009
177160
178161static INPUT_PORTS_START( splitsec )
179162   PORT_START("IN.0") // R9
180   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_16WAY
181   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_16WAY
182   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_16WAY
163   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
164   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
165   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )
183166   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
184167
185168   PORT_START("IN.1") // R10
186   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_16WAY
169   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN )
187170   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Select")
188171   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Start")
189172   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
r243008r243009
247230
248231ROM_START( splitsec )
249232   ROM_REGION( 0x1000, "maincpu", 0 )
250   ROM_LOAD( "tms1400nll_mp7314", 0x0000, 0x1000, CRC(e94b2098) SHA1(f0fc1f56a829252185592a2508740354c50bedf8) )
233   ROM_LOAD( "tms1400nll_mp7314", 0x0000, 0x1000, CRC(0cccdf59) SHA1(06a533134a433aaf856b80f0ca239d0498b98d5f) )
251234
252235   ROM_REGION( 867, "maincpu:mpla", 0 )
253236   ROM_LOAD( "tms1100_default_mpla.pla", 0, 867, CRC(62445fc9) SHA1(d6297f2a4bc7a870b76cc498d19dbb0ce7d69fec) )
r243008r243009
256239ROM_END
257240
258241
259CONS( 1980, splitsec, 0, 0, splitsec, splitsec, driver_device, 0, "Parker Brothers", "Split Second", GAME_SUPPORTS_SAVE )
242CONS( 1980, splitsec, 0, 0, splitsec, splitsec, driver_device, 0, "Parker Brothers", "Split Second", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING )
trunk/src/mess/layout/splitsec.lay
r243008r243009
2525
2626   <!-- maze of lamps -->
2727
28      <bezel name="lamp0" element="lamp_rect"><bounds x="2" y="1" width="4" height="1" /></bezel>
29      <bezel name="lamp2" element="lamp_rect"><bounds x="7" y="1" width="4" height="1" /></bezel>
30      <bezel name="lamp4" element="lamp_rect"><bounds x="12" y="1" width="4" height="1" /></bezel>
28      <bezel name="lamp6" element="lamp_rect"><bounds x="2" y="1" width="4" height="1" /></bezel>
29      <bezel name="lamp4" element="lamp_rect"><bounds x="7" y="1" width="4" height="1" /></bezel>
30      <bezel name="lamp2" element="lamp_rect"><bounds x="12" y="1" width="4" height="1" /></bezel>
3131
32      <bezel name="lamp10" element="lamp_rect"><bounds x="1" y="2" width="1" height="4" /></bezel>
33      <bezel name="lamp1" element="lamp_disk"><bounds x="3" y="3" width="2" height="2" /></bezel>
34      <bezel name="lamp12" element="lamp_rect"><bounds x="6" y="2" width="1" height="4" /></bezel>
32      <bezel name="lamp16" element="lamp_rect"><bounds x="1" y="2" width="1" height="4" /></bezel>
33      <bezel name="lamp5" element="lamp_disk"><bounds x="3" y="3" width="2" height="2" /></bezel>
34      <bezel name="lamp14" element="lamp_rect"><bounds x="6" y="2" width="1" height="4" /></bezel>
3535      <bezel name="lamp3" element="lamp_disk"><bounds x="8" y="3" width="2" height="2" /></bezel>
36      <bezel name="lamp14" element="lamp_rect"><bounds x="11" y="2" width="1" height="4" /></bezel>
37      <bezel name="lamp5" element="lamp_disk"><bounds x="13" y="3" width="2" height="2" /></bezel>
38      <bezel name="lamp16" element="lamp_rect"><bounds x="16" y="2" width="1" height="4" /></bezel>
36      <bezel name="lamp12" element="lamp_rect"><bounds x="11" y="2" width="1" height="4" /></bezel>
37      <bezel name="lamp1" element="lamp_disk"><bounds x="13" y="3" width="2" height="2" /></bezel>
38      <bezel name="lamp10" element="lamp_rect"><bounds x="16" y="2" width="1" height="4" /></bezel>
3939
40      <bezel name="lamp11" element="lamp_rect"><bounds x="2" y="6" width="4" height="1" /></bezel>
40      <bezel name="lamp15" element="lamp_rect"><bounds x="2" y="6" width="4" height="1" /></bezel>
4141      <bezel name="lamp13" element="lamp_rect"><bounds x="7" y="6" width="4" height="1" /></bezel>
42      <bezel name="lamp15" element="lamp_rect"><bounds x="12" y="6" width="4" height="1" /></bezel>
42      <bezel name="lamp11" element="lamp_rect"><bounds x="12" y="6" width="4" height="1" /></bezel>
4343
44      <bezel name="lamp20" element="lamp_rect"><bounds x="1" y="7" width="1" height="4" /></bezel>
45      <bezel name="lamp21" element="lamp_disk"><bounds x="3" y="8" width="2" height="2" /></bezel>
46      <bezel name="lamp22" element="lamp_rect"><bounds x="6" y="7" width="1" height="4" /></bezel>
44      <bezel name="lamp26" element="lamp_rect"><bounds x="1" y="7" width="1" height="4" /></bezel>
45      <bezel name="lamp25" element="lamp_disk"><bounds x="3" y="8" width="2" height="2" /></bezel>
46      <bezel name="lamp24" element="lamp_rect"><bounds x="6" y="7" width="1" height="4" /></bezel>
4747      <bezel name="lamp23" element="lamp_disk"><bounds x="8" y="8" width="2" height="2" /></bezel>
48      <bezel name="lamp24" element="lamp_rect"><bounds x="11" y="7" width="1" height="4" /></bezel>
49      <bezel name="lamp25" element="lamp_disk"><bounds x="13" y="8" width="2" height="2" /></bezel>
50      <bezel name="lamp26" element="lamp_rect"><bounds x="16" y="7" width="1" height="4" /></bezel>
48      <bezel name="lamp22" element="lamp_rect"><bounds x="11" y="7" width="1" height="4" /></bezel>
49      <bezel name="lamp21" element="lamp_disk"><bounds x="13" y="8" width="2" height="2" /></bezel>
50      <bezel name="lamp20" element="lamp_rect"><bounds x="16" y="7" width="1" height="4" /></bezel>
5151
52      <bezel name="lamp31" element="lamp_rect"><bounds x="2" y="11" width="4" height="1" /></bezel>
52      <bezel name="lamp35" element="lamp_rect"><bounds x="2" y="11" width="4" height="1" /></bezel>
5353      <bezel name="lamp33" element="lamp_rect"><bounds x="7" y="11" width="4" height="1" /></bezel>
54      <bezel name="lamp35" element="lamp_rect"><bounds x="12" y="11" width="4" height="1" /></bezel>
54      <bezel name="lamp31" element="lamp_rect"><bounds x="12" y="11" width="4" height="1" /></bezel>
5555
56      <bezel name="lamp30" element="lamp_rect"><bounds x="1" y="12" width="1" height="4" /></bezel>
57      <bezel name="lamp41" element="lamp_disk"><bounds x="3" y="13" width="2" height="2" /></bezel>
58      <bezel name="lamp32" element="lamp_rect"><bounds x="6" y="12" width="1" height="4" /></bezel>
56      <bezel name="lamp36" element="lamp_rect"><bounds x="1" y="12" width="1" height="4" /></bezel>
57      <bezel name="lamp45" element="lamp_disk"><bounds x="3" y="13" width="2" height="2" /></bezel>
58      <bezel name="lamp34" element="lamp_rect"><bounds x="6" y="12" width="1" height="4" /></bezel>
5959      <bezel name="lamp43" element="lamp_disk"><bounds x="8" y="13" width="2" height="2" /></bezel>
60      <bezel name="lamp34" element="lamp_rect"><bounds x="11" y="12" width="1" height="4" /></bezel>
61      <bezel name="lamp45" element="lamp_disk"><bounds x="13" y="13" width="2" height="2" /></bezel>
62      <bezel name="lamp36" element="lamp_rect"><bounds x="16" y="12" width="1" height="4" /></bezel>
60      <bezel name="lamp32" element="lamp_rect"><bounds x="11" y="12" width="1" height="4" /></bezel>
61      <bezel name="lamp41" element="lamp_disk"><bounds x="13" y="13" width="2" height="2" /></bezel>
62      <bezel name="lamp30" element="lamp_rect"><bounds x="16" y="12" width="1" height="4" /></bezel>
6363
64      <bezel name="lamp51" element="lamp_rect"><bounds x="2" y="16" width="4" height="1" /></bezel>
64      <bezel name="lamp55" element="lamp_rect"><bounds x="2" y="16" width="4" height="1" /></bezel>
6565      <bezel name="lamp53" element="lamp_rect"><bounds x="7" y="16" width="4" height="1" /></bezel>
66      <bezel name="lamp55" element="lamp_rect"><bounds x="12" y="16" width="4" height="1" /></bezel>
66      <bezel name="lamp51" element="lamp_rect"><bounds x="12" y="16" width="4" height="1" /></bezel>
6767
68      <bezel name="lamp40" element="lamp_rect"><bounds x="1" y="17" width="1" height="4" /></bezel>
69      <bezel name="lamp61" element="lamp_disk"><bounds x="3" y="18" width="2" height="2" /></bezel>
70      <bezel name="lamp42" element="lamp_rect"><bounds x="6" y="17" width="1" height="4" /></bezel>
68      <bezel name="lamp46" element="lamp_rect"><bounds x="1" y="17" width="1" height="4" /></bezel>
69      <bezel name="lamp65" element="lamp_disk"><bounds x="3" y="18" width="2" height="2" /></bezel>
70      <bezel name="lamp44" element="lamp_rect"><bounds x="6" y="17" width="1" height="4" /></bezel>
7171      <bezel name="lamp63" element="lamp_disk"><bounds x="8" y="18" width="2" height="2" /></bezel>
72      <bezel name="lamp44" element="lamp_rect"><bounds x="11" y="17" width="1" height="4" /></bezel>
73      <bezel name="lamp65" element="lamp_disk"><bounds x="13" y="18" width="2" height="2" /></bezel>
74      <bezel name="lamp46" element="lamp_rect"><bounds x="16" y="17" width="1" height="4" /></bezel>
72      <bezel name="lamp42" element="lamp_rect"><bounds x="11" y="17" width="1" height="4" /></bezel>
73      <bezel name="lamp61" element="lamp_disk"><bounds x="13" y="18" width="2" height="2" /></bezel>
74      <bezel name="lamp40" element="lamp_rect"><bounds x="16" y="17" width="1" height="4" /></bezel>
7575
76      <bezel name="lamp71" element="lamp_rect"><bounds x="2" y="21" width="4" height="1" /></bezel>
76      <bezel name="lamp75" element="lamp_rect"><bounds x="2" y="21" width="4" height="1" /></bezel>
7777      <bezel name="lamp73" element="lamp_rect"><bounds x="7" y="21" width="4" height="1" /></bezel>
78      <bezel name="lamp75" element="lamp_rect"><bounds x="12" y="21" width="4" height="1" /></bezel>
78      <bezel name="lamp71" element="lamp_rect"><bounds x="12" y="21" width="4" height="1" /></bezel>
7979
80      <bezel name="lamp50" element="lamp_rect"><bounds x="1" y="22" width="1" height="4" /></bezel>
81      <bezel name="lamp60" element="lamp_disk"><bounds x="3" y="23" width="2" height="2" /></bezel>
82      <bezel name="lamp52" element="lamp_rect"><bounds x="6" y="22" width="1" height="4" /></bezel>
83      <bezel name="lamp62" element="lamp_disk"><bounds x="8" y="23" width="2" height="2" /></bezel>
84      <bezel name="lamp54" element="lamp_rect"><bounds x="11" y="22" width="1" height="4" /></bezel>
85      <bezel name="lamp64" element="lamp_disk"><bounds x="13" y="23" width="2" height="2" /></bezel>
86      <bezel name="lamp56" element="lamp_rect"><bounds x="16" y="22" width="1" height="4" /></bezel>
80      <bezel name="lamp56" element="lamp_rect"><bounds x="1" y="22" width="1" height="4" /></bezel>
81      <bezel name="lamp66" element="lamp_disk"><bounds x="3" y="23" width="2" height="2" /></bezel>
82      <bezel name="lamp54" element="lamp_rect"><bounds x="6" y="22" width="1" height="4" /></bezel>
83      <bezel name="lamp64" element="lamp_disk"><bounds x="8" y="23" width="2" height="2" /></bezel>
84      <bezel name="lamp52" element="lamp_rect"><bounds x="11" y="22" width="1" height="4" /></bezel>
85      <bezel name="lamp62" element="lamp_disk"><bounds x="13" y="23" width="2" height="2" /></bezel>
86      <bezel name="lamp50" element="lamp_rect"><bounds x="16" y="22" width="1" height="4" /></bezel>
8787
88      <bezel name="lamp70" element="lamp_rect"><bounds x="2" y="26" width="4" height="1" /></bezel>
89      <bezel name="lamp72" element="lamp_rect"><bounds x="7" y="26" width="4" height="1" /></bezel>
90      <bezel name="lamp74" element="lamp_rect"><bounds x="12" y="26" width="4" height="1" /></bezel>
88      <bezel name="lamp76" element="lamp_rect"><bounds x="2" y="26" width="4" height="1" /></bezel>
89      <bezel name="lamp74" element="lamp_rect"><bounds x="7" y="26" width="4" height="1" /></bezel>
90      <bezel name="lamp72" element="lamp_rect"><bounds x="12" y="26" width="4" height="1" /></bezel>
9191
9292   </view>
9393</mamelayout>
trunk/src/mess/machine/amstrad.c
r243008r243009
28422842   int i;
28432843   bool slot3 = false,slot7 = false;
28442844
2845   if (m_system_type == SYSTEM_PLUS || m_system_type == SYSTEM_GX4000)
2845   if(m_system_type == SYSTEM_PLUS || m_system_type == SYSTEM_GX4000)
28462846   {
28472847      UINT8 *crt = m_region_cart->base();
28482848      int bank_mask = (m_cart->get_rom_size() / 0x4000) - 1;
r243008r243009
30343034
30353035   astring region_tag;
30363036   m_region_cart = memregion(region_tag.cpy(m_cart->tag()).cat(GENERIC_ROM_REGION_TAG));
3037   if (!m_region_cart)   // this should never happen, since we make carts mandatory!
3038      m_region_cart = memregion("maincpu");
30393037}
30403038
30413039
r243008r243009
30783076
30793077   astring region_tag;
30803078   m_region_cart = memregion(region_tag.cpy(m_cart->tag()).cat(GENERIC_ROM_REGION_TAG));
3081   if (!m_region_cart)   // this should never happen, since we make carts mandatory!
3082      m_region_cart = memregion("maincpu");
30833079}
30843080
30853081MACHINE_RESET_MEMBER(amstrad_state,gx4000)
trunk/src/tools/nltool.c
r243008r243009
173173      for (int i=0; i < ll.count(); i++)
174174      {
175175            pstring name = "log_" + ll[i];
176         netlist_device_t *nc = m_setup->register_dev("nld_log", name);
176         /*netlist_device_t *nc = */ m_setup->register_dev("nld_log", name);
177177         m_setup->register_link(name + ".I", ll[i]);
178178      }
179179   }


Previous 199869 Revisions Next


© 1997-2024 The MAME Team