| Previous | 15994 Revisions | Next |
| r11490 Monday 9th May, 2011 at 07:10:30 UTC by Miodrag Milanović |
|---|
| Sync with MAME (to u3)(r12478) and source cleanup (no whatsnew) |
| [src] | version.c |
| [src/emu] | clifront.c devcb.c devcb.h devcpu.c devcpu.h devintrf.c devintrf.h dislot.c dislot.h driver.c driver.h machine.c mconfig.c screen.h uimenu.c |
| [src/emu/cpu] | drcbeut.c drcbeut.h drcbex86.h |
| [src/emu/machine] | 6821pia.c 6850acia.c 6850acia.h i8255.h idectrl.c jvsdev.c mccs1850.c secflash.c |
| [src/emu/sound] | lmc1992.c lmc1992.h |
| [src/emu/video] | crt9007.h |
| [src/lib/formats] | flopimg.c |
| [src/mame] | mame.lst mame.mak |
| [src/mame/drivers] | 3do.c aristmk4.c armedf.c badlands.c bsktball.c cavesh3.c csplayh5.c ginganin.c goldnpkr.c konamigv.c m92.c midtunit.c mpu4.c multfish.c overdriv.c seta.c sfbonus.c srmp2.c superwng.c* taito_l.c taito_x.c wiz.c |
| [src/mame/includes] | bsktball.h btoads.h galivan.h ginganin.h wiz.h |
| [src/mame/machine] | maple-dc.c mie.h msx.c psxcd.h |
| [src/mame/video] | armedf.c seta.c seta001.c seta001.h srmp2.c taitoic.c |
| [src/mess] | mess.mak |
| [src/mess/drivers] | amico2k.c atom.c bbc.c cm1800.c coco.c craft.c genpc.c ibmpc.c next.c v1050.c |
| [src/mess/includes] | atom.h genpc.h |
| [src/mess/machine] | abc77.c abc77.h at_keybc.h c1541.h c1571.c c1571.h c1581.c c2031.h c2040.c c64.c c8280.h cbmiec.c cbmiec.h coco.c cs4031.h fm_scsi.h genpc.c ieee488.h isa.c isa.h lux10828.h lux21046.h mb89352.h vic1112.h zx8302.h |
| [src/mess/tools/imgtool/windows] | wimgtool.c |
| [src/mess/tools/messdocs] | messdocs.mak |
| [src/mess/video] | hd44780.h isa_mda.h upd7220.c |
| [src/osd/sdl] | sdlprefix.h |
| [src/osd/winui] | mui_util.c |
| r11489 | r11490 | |
|---|---|---|
| 607 | 607 | |
| 608 | 608 | jyunai // (c) 1998 |
| 609 | 609 | csplayh5 // (c) 1998 |
| 610 | mjmania // (c) 1999 | |
| 610 | 611 | bikiniko // (c) 1999 |
| 612 | thenanpa // (c) 1999 | |
| 613 | cspureh7 // (c) 1999 | |
| 614 | fudol // (c) 2000 | |
| 611 | 615 | |
| 612 | 616 | // "Phoenix hardware" (and variations) games |
| 613 | 617 | safarir // Shin Nihon Kikaku (SNK) |
| r11489 | r11490 | |
| 10062 | 10066 | pinkiri8 |
| 10063 | 10067 | |
| 10064 | 10068 | // Wing |
| 10069 | superwng // (c) 1985 Wing Co. Ltd | |
| 10065 | 10070 | slotcarn // (c) 1985 Wing Co. Ltd |
| 10066 | 10071 | lucky74 // (c) 1988 Wing Co. Ltd |
| 10067 | 10072 | lucky74a // (c) 1988 Wing Co. Ltd |
| r11489 | r11490 | |
| 10417 | 10422 | // Multifish |
| 10418 | 10423 | //mfish // (c) 2002 |
| 10419 | 10424 | //mfish_2 // (c) 2002 |
| 10425 | mfish_3 // (c) 2002 | |
| 10420 | 10426 | //mfish_4 // (c) 2002 |
| 10421 | 10427 | //mfish_5 // (c) 2002 |
| 10428 | mfish_6 // (c) 2002 | |
| 10422 | 10429 | //mfish_7 // (c) 2002 |
| 10423 | ||
| 10430 | ||
| 10424 | 10431 | //mfish_9 // (c) 2002 |
| 10425 | 10432 | //mfish_10 // (c) 2002 |
| 10426 | //mfish_13 // (c) 2002 | |
| 10427 | mfish_3 // (c) 2002 | |
| 10428 | mfish_6 // (c) 2002 | |
| 10429 | 10433 | mfish_11 // (c) 2002 |
| 10430 | 10434 | mfish_12 // (c) 2002 |
| 10431 | 10435 | mfish_13 // (c) 2002 |
| 10436 | mfish_14 // (c) 2002 | |
| 10432 | 10437 | |
| 10433 | 10438 | // Crazy Monkey |
| 10434 | 10439 | //crzmon // (c) 2003 |
| r11489 | r11490 | |
| 10625 | 10630 | gnomee // bootleg |
| 10626 | 10631 | gnome_2a // bootleg |
| 10627 | 10632 | gnome_3a // bootleg |
| 10628 | //gnome_3b // bootleg | |
| 10629 | //gnome_3c // bootleg | |
| 10630 | //sweetl2_2a // bootleg - Sweet Life 2 | |
| 10631 | //sweetl2_2b // bootleg | |
| 10633 | gnome_3b // bootleg | |
| 10634 | gnome_3c // bootleg | |
| 10635 | sweetl2_2a // bootleg - Sweet Life 2 | |
| 10636 | sweetl2_2b // bootleg | |
| 10632 | 10637 | sweetl2_2c // bootleg |
| 10633 | 10638 | sweetl2_2d // bootleg |
| 10634 | 10639 |
| r11489 | r11490 | |
|---|---|---|
| 162 | 162 | emu_timer *m_timers[MAX_PSXCD_TIMERS]; |
| 163 | 163 | event *m_eventfortimer[MAX_PSXCD_TIMERS]; |
| 164 | 164 | bool m_timerinuse[MAX_PSXCD_TIMERS]; |
| 165 | ||
| 165 | ||
| 166 | 166 | void add_system_event(event *ev); |
| 167 | 167 | }; |
| 168 | 168 |
| r11489 | r11490 | |
|---|---|---|
| 67 | 67 | DECLARE_READ8_MEMBER(read_78xx); |
| 68 | 68 | |
| 69 | 69 | static IRQ_CALLBACK(irq_callback_1); |
| 70 | ||
| 70 | ||
| 71 | 71 | void maple_w(const UINT32 *data, UINT32 in_size); |
| 72 | 72 | |
| 73 | 73 | protected: |
| r11489 | r11490 | |
| 78 | 78 | virtual void device_start(); |
| 79 | 79 | virtual void device_reset(); |
| 80 | 80 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 81 | ||
| 81 | ||
| 82 | 82 | private: |
| 83 | 83 | enum { TBUF_SIZE = 8 }; |
| 84 | 84 |
| r11489 | r11490 | |
|---|---|---|
| 772 | 772 | static WRITE8_DEVICE_HANDLER ( msx_ppi_port_c_w ) |
| 773 | 773 | { |
| 774 | 774 | msx_state *state = device->machine().driver_data<msx_state>(); |
| 775 | ||
| 775 | ||
| 776 | 776 | state->keylatch = data & 0x0f; |
| 777 | 777 | |
| 778 | 778 | /* caps lock */ |
| r11489 | r11490 | |
|---|---|---|
| 130 | 130 | |
| 131 | 131 | // the MIE seems too slow for the correct timeout |
| 132 | 132 | // it's rather strange though |
| 133 | // | |
| 133 | // timer->adjust(attotime::from_nsec(40000 + 20*(msys>>16))); // The 40us represent the sending and reception time | |
| 134 | 134 | timer->adjust(attotime::from_msec(5)); |
| 135 | 135 | break; |
| 136 | 136 | case 2: // sdckb occupy permission (light gun protocol) |
| r11489 | r11490 | |
|---|---|---|
| 28 | 28 | |
| 29 | 29 | /* misc */ |
| 30 | 30 | UINT32 m_nmi_on; |
| 31 | // | |
| 31 | // int m_i256v; | |
| 32 | 32 | |
| 33 | 33 | /* input-related */ |
| 34 | 34 | int m_ld1; |
| r11489 | r11490 | |
|---|---|---|
| 21 | 21 | UINT8 *m_spriteram; |
| 22 | 22 | UINT8 *m_spriteram2; |
| 23 | 23 | size_t m_spriteram_size; |
| 24 | UINT8 m_nmi_mask; | |
| 24 | 25 | }; |
| 25 | 26 | |
| 26 | 27 |
| r11489 | r11490 | |
|---|---|---|
| 71 | 71 | // driver_device overrides |
| 72 | 72 | virtual void machine_start(); |
| 73 | 73 | virtual void video_start(); |
| 74 | ||
| 74 | ||
| 75 | 75 | // timer IDs |
| 76 | 76 | enum |
| 77 | 77 | { |
| r11489 | r11490 | |
|---|---|---|
| 28 | 28 | int m_posx; |
| 29 | 29 | int m_posy; |
| 30 | 30 | #endif |
| 31 | /* sound-related */ | |
| 32 | UINT8 m_MC6840_index0; | |
| 33 | UINT8 m_MC6840_register0; | |
| 34 | UINT8 m_MC6840_index1; | |
| 35 | UINT8 m_MC6840_register1; | |
| 36 | int m_S_TEMPO; | |
| 37 | int m_S_TEMPO_OLD; | |
| 38 | int m_MC6809_CTR; | |
| 39 | int m_MC6809_FLAG; | |
| 40 | 31 | |
| 41 | 32 | /* devices */ |
| 42 | 33 | device_t *m_audiocpu; |
| r11489 | r11490 | |
|---|---|---|
| 12 | 12 | |
| 13 | 13 | /* memory pointers */ |
| 14 | 14 | UINT8 * m_videoram; |
| 15 | // | |
| 15 | // UINT8 * m_colorram; | |
| 16 | 16 | UINT8 * m_spriteram; |
| 17 | 17 | size_t m_videoram_size; |
| 18 | 18 | size_t m_spriteram_size; |
| r11489 | r11490 | |
| 22 | 22 | tilemap_t *m_tx_tilemap; |
| 23 | 23 | UINT16 m_scrollx; |
| 24 | 24 | UINT16 m_scrolly; |
| 25 | UINT8 | |
| 25 | UINT8 | |
| 26 | 26 | UINT8 m_flipscreen; |
| 27 | 27 | UINT8 m_write_layers; |
| 28 | 28 | UINT8 m_layers; |
| r11489 | r11490 | |
|---|---|---|
| 1817 | 1817 | $(DRIVERS)/sstrangr.o \ |
| 1818 | 1818 | $(DRIVERS)/statriv2.o \ |
| 1819 | 1819 | $(DRIVERS)/supertnk.o \ |
| 1820 | $(DRIVERS)/superwng.o \ | |
| 1820 | 1821 | $(DRIVERS)/tattack.o \ |
| 1821 | 1822 | $(DRIVERS)/taxidrvr.o $(VIDEO)/taxidrvr.o \ |
| 1822 | 1823 | $(DRIVERS)/tcl.o \ |
| r11489 | r11490 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | /* TODO: Armed F doesn't seem to use the NB1414M4! */ |
| 41 | 41 | //if (state->m_scroll_type == 1) |
| 42 | // | |
| 42 | // attributes = state->m_text_videoram[tile_index + 0x800] & 0xff; | |
| 43 | 43 | //else |
| 44 | 44 | { |
| 45 | 45 | attributes = state->m_text_videoram[tile_index + 0x400] & 0xff; |
| r11489 | r11490 | |
| 69 | 69 | attributes = state->m_text_videoram[tile_index + 0x800] & 0xff; |
| 70 | 70 | //else |
| 71 | 71 | //{ |
| 72 | // | |
| 72 | // attributes = state->m_text_videoram[tile_index + 0x400] & 0xff; | |
| 73 | 73 | // |
| 74 | // if(tile_index < 0x12) /* don't draw the NB1414M4 params! TODO: could be a better fix */ | |
| 75 | // tile_number = attributes = 0x00; | |
| 74 | // if(tile_index < 0x12) /* don't draw the NB1414M4 params! TODO: could be a better fix */ | |
| 75 | // tile_number = attributes = 0x00; | |
| 76 | 76 | //} |
| 77 | 77 | |
| 78 | 78 | /* bit 3 controls priority, (0) nb1414m4 has priority over all the other video layers */ |
| r11489 | r11490 | |
|---|---|---|
| 4749 | 4749 | { |
| 4750 | 4750 | tc0110pcr_state *tc0110pcr = tc0110pcr_get_safe_token(device); |
| 4751 | 4751 | const tc0110pcr_interface *intf = tc0110pcr_get_interface(device); |
| 4752 | ||
| 4752 | ||
| 4753 | 4753 | tc0110pcr->m_machine = &device->machine(); |
| 4754 | 4754 | |
| 4755 | 4755 | tc0110pcr->pal_offs = intf->pal_offs; |
| r11489 | r11490 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | note: the data bus is almost certainly 8-bit, dating back to the earliest |
| 18 | 18 | hardware the games were used on. the RAM arrangements changes |
| 19 | slightly between games depending on how the RAM is hooked up to the | |
| 20 | main cpu. | |
| 19 | slightly between games depending on how the RAM is hooked up to the | |
| 20 | main cpu. | |
| 21 | 21 | |
| 22 | 22 | 'y' low bits are NEVER buffered? |
| 23 | 23 | |
| r11489 | r11490 | |
| 38 | 38 | { |
| 39 | 39 | m_fg_flipxoffs = 0; |
| 40 | 40 | m_fg_noflipxoffs = 0; |
| 41 | ||
| 41 | ||
| 42 | 42 | m_fg_flipyoffs = 0; |
| 43 | 43 | m_fg_noflipyoffs = 0; |
| 44 | 44 | |
| r11489 | r11490 | |
| 78 | 78 | WRITE16_DEVICE_HANDLER( spritectrl_w16 ) |
| 79 | 79 | { |
| 80 | 80 | seta001_device *dev = (seta001_device *)device; |
| 81 | ||
| 81 | ||
| 82 | 82 | if (ACCESSING_BITS_0_7) |
| 83 | 83 | { |
| 84 | 84 | dev->m_spritectrl[offset] = data; |
| r11489 | r11490 | |
| 106 | 106 | WRITE16_DEVICE_HANDLER( spriteylow_w16 ) |
| 107 | 107 | { |
| 108 | 108 | seta001_device *dev = (seta001_device *)device; |
| 109 | ||
| 109 | ||
| 110 | 110 | if (ACCESSING_BITS_0_7) |
| 111 | 111 | { |
| 112 | 112 | dev->m_spriteylow[offset] = data; |
| r11489 | r11490 | |
| 161 | 161 | WRITE16_DEVICE_HANDLER( spritecode_w16 ) |
| 162 | 162 | { |
| 163 | 163 | seta001_device *dev = (seta001_device *)device; |
| 164 | dev->m_spritecodelow[offset] = data & 0x00ff; | |
| 165 | dev->m_spritecodehigh[offset] = (data & 0xff00)>>8; | |
| 164 | if (ACCESSING_BITS_0_7) dev->m_spritecodelow[offset] = data & 0x00ff; | |
| 165 | if (ACCESSING_BITS_8_15) dev->m_spritecodehigh[offset] = (data & 0xff00)>>8; | |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | WRITE8_DEVICE_HANDLER( spritebgflag_w8 ) |
| r11489 | r11490 | |
| 265 | 265 | else i = 32 * (col ^ 8) + 2 * (offs>>1) + (offs&1); |
| 266 | 266 | |
| 267 | 267 | int code = ((m_spritecodehigh[i+0x400+bank]) << 8) | m_spritecodelow[i+0x400+bank]; |
| 268 | int color =((m_spritecodehigh[i+0x600+bank]) << 8) | m_spritecodelow[i+0x600+bank]; | |
| 269 | ||
| 268 | int color =((m_spritecodehigh[i+0x600+bank]) << 8) | m_spritecodelow[i+0x600+bank]; | |
| 269 | ||
| 270 | 270 | int flipx = code & 0x8000; |
| 271 | 271 | int flipy = code & 0x4000; |
| 272 | 272 | |
| r11489 | r11490 | |
| 353 | 353 | |
| 354 | 354 | code = char_pointer[i] + ((ctrl_pointer[i] & 0x3f) << 8); |
| 355 | 355 | color = (color_pointer[i] & 0xf8) >> 3; |
| 356 | ||
| 357 | ||
| 356 | ||
| 357 | ||
| 358 | 358 | sx = x_pointer[i] - ((color_pointer[i] & 1) << 8); |
| 359 | 359 | sy = (m_spriteylow[i] & 0xff); |
| 360 | 360 | flipx = ctrl_pointer[i] & 0x80; |
| 361 | 361 | flipy = ctrl_pointer[i] & 0x40; |
| 362 | ||
| 362 | ||
| 363 | 363 | if (m_bankcallback) code = m_bankcallback(machine, code, color_pointer[i]); |
| 364 | ||
| 364 | ||
| 365 | 365 | color %= total_color_codes; |
| 366 | 366 | |
| 367 | 367 | color += m_colorbase; |
| 368 | ||
| 368 | ||
| 369 | 369 | if (screenflip) |
| 370 | 370 | { |
| 371 | 371 | sy = max_y - sy |
| r11489 | r11490 | |
| 408 | 408 | } |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | ||
| 412 | 411 | |
| 412 | ||
| 413 | 413 | void seta001_device::setac_eof() |
| 414 | 414 | { |
| 415 | 415 | // is this handling right? |
| 416 | // it differs to tnzs, and thundercade has sprite flickering issues (not related to the devicification) | |
| 416 | // it differs to tnzs, and thundercade has sprite flickering issues (not related to the devicification) | |
| 417 | 417 | |
| 418 | 418 | int ctrl2 = m_spritectrl[1]; |
| 419 | 419 |
| r11489 | r11490 | |
|---|---|---|
| 5 | 5 | { |
| 6 | 6 | public: |
| 7 | 7 | seta001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 8 | ||
| 9 | 8 | |
| 9 | ||
| 10 | 10 | void seta001_draw_sprites(running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int bank_size, int setac); |
| 11 | ||
| 11 | ||
| 12 | 12 | void setac_eof( void ); |
| 13 | 13 | void tnzs_eof( void ); |
| 14 | ||
| 14 | ||
| 15 | 15 | UINT8 m_bgflag; |
| 16 | ||
| 16 | ||
| 17 | 17 | UINT8 m_spritectrl[4]; |
| 18 | 18 | UINT8 m_spriteylow[0x300]; // 0x200 low y + 0x100 bg stuff |
| 19 | 19 | |
| r11489 | r11490 | |
| 21 | 21 | UINT8 m_spritecodehigh[0x2000]; // ^ |
| 22 | 22 | |
| 23 | 23 | // position kludges for seta.c & srmp2.c |
| 24 | void set_fg_xoffsets( int flip, int noflip ) { m_fg_flipxoffs = flip; m_fg_noflipxoffs = noflip; }; | |
| 24 | void set_fg_xoffsets( int flip, int noflip ) { m_fg_flipxoffs = flip; m_fg_noflipxoffs = noflip; }; | |
| 25 | 25 | int m_fg_flipxoffs, m_fg_noflipxoffs; |
| 26 | void set_fg_yoffsets( int flip, int noflip ) { m_fg_flipyoffs = flip; m_fg_noflipyoffs = noflip; }; | |
| 26 | void set_fg_yoffsets( int flip, int noflip ) { m_fg_flipyoffs = flip; m_fg_noflipyoffs = noflip; }; | |
| 27 | 27 | int m_fg_flipyoffs, m_fg_noflipyoffs; |
| 28 | void set_bg_yoffsets( int flip, int noflip ) { m_bg_flipyoffs = flip; m_bg_noflipyoffs = noflip; }; | |
| 28 | void set_bg_yoffsets( int flip, int noflip ) { m_bg_flipyoffs = flip; m_bg_noflipyoffs = noflip; }; | |
| 29 | 29 | int m_bg_flipyoffs, m_bg_noflipyoffs; |
| 30 | void set_bg_xoffsets( int flip, int noflip ) { m_bg_flipxoffs = flip; m_bg_noflipxoffs = noflip; }; | |
| 30 | void set_bg_xoffsets( int flip, int noflip ) { m_bg_flipxoffs = flip; m_bg_noflipxoffs = noflip; }; | |
| 31 | 31 | int m_bg_flipxoffs, m_bg_noflipxoffs; |
| 32 | 32 | |
| 33 | 33 | void set_transpen ( int pen ) { m_transpen = pen; }; |
| r11489 | r11490 | |
| 51 | 51 | private: |
| 52 | 52 | |
| 53 | 53 | private: |
| 54 | ||
| 54 | ||
| 55 | 55 | void seta001_draw_background( running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int bank_size, int setac_type); |
| 56 | 56 | void seta001_draw_foreground( running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int bank_size); |
| 57 | 57 |
| r11489 | r11490 | |
|---|---|---|
| 825 | 825 | |
| 826 | 826 | |
| 827 | 827 | ***************************************************************************/ |
| 828 | ||
| 829 | 828 | |
| 829 | ||
| 830 | 830 | /* For games without tilemaps */ |
| 831 | 831 | SCREEN_UPDATE( seta_no_layers ) |
| 832 | 832 | { |
| r11489 | r11490 | |
|---|---|---|
| 92 | 92 | screen->machine().device<seta001_device>("spritegen")->set_fg_xoffsets( 0x10, 0x10 ); |
| 93 | 93 | screen->machine().device<seta001_device>("spritegen")->set_fg_yoffsets( 0x06, 0x06 ); |
| 94 | 94 | screen->machine().device<seta001_device>("spritegen")->set_bg_yoffsets( 0x09, 0x07 ); |
| 95 | ||
| 95 | ||
| 96 | 96 | screen->machine().device<seta001_device>("spritegen")->set_spritelimit( 0x1ff-6 ); |
| 97 | 97 | |
| 98 | 98 | screen->machine().device<seta001_device>("spritegen")->set_gfxbank_callback( srmp3_gfxbank_callback ); |
| r11489 | r11490 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | AM_RANGE(0x800000, 0xbfffff) AM_ROM AM_REGION("blit_gfx",0) // GFX ROM routes here |
| 117 | 117 | |
| 118 | AM_RANGE(0xc | |
| 118 | AM_RANGE(0xc | |
| 119 | 119 | |
| 120 | 120 | AM_RANGE(0xfffc00, 0xffffff) AM_READWRITE(tmp68301_regs_r, tmp68301_regs_w) // TMP68301 Registers |
| 121 | 121 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 693 | 693 | |
| 694 | 694 | } |
| 695 | 695 | |
| 696 | static DRIVER_INIT( jyunai ) | |
| 697 | { | |
| 698 | general_init(machine,0x679C/2); | |
| 699 | } | |
| 696 | static DRIVER_INIT( jyunai ) { general_init(machine, 0x679c/2); } | |
| 697 | static DRIVER_INIT( mjmania ) { general_init(machine, 0x6b96/2); } | |
| 698 | static DRIVER_INIT( csplayh5 ) { general_init(machine, 0x4cb4/2); } | |
| 699 | static DRIVER_INIT( bikiniko ) { general_init(machine, 0x585c/2); } | |
| 700 | static DRIVER_INIT( thenanpa ) { general_init(machine, 0x69ec/2); } | |
| 701 | static DRIVER_INIT( cspureh7 ) { general_init(machine, 0x7a20/2); } | |
| 702 | static DRIVER_INIT( fudol ) { general_init(machine, 0x9166/2); } | |
| 700 | 703 | |
| 701 | static DRIVER_INIT( csplayh5 ) | |
| 702 | { | |
| 703 | general_init(machine, 0x4cb4/2); | |
| 704 | } | |
| 705 | ||
| 706 | static DRIVER_INIT( bikiniko ) | |
| 707 | { | |
| 708 | general_init(machine,0x585C/2); | |
| 709 | } | |
| 710 | ||
| 711 | ||
| 712 | 704 | ROM_START( jyunai ) |
| 713 | 705 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg |
| 714 | 706 | ROM_LOAD16_BYTE( "2.ic3", 0x00000, 0x20000, CRC(5923bf2e) SHA1(8fc7b95a44eb792ce03c1bffb9ad56f82d34b470) ) |
| r11489 | r11490 | |
| 749 | 741 | DISK_IMAGE( "csplayh5", 0, SHA1(ce4883ce1351ce5299e41bfbd9a5ae8078b82b8c) ) |
| 750 | 742 | ROM_END |
| 751 | 743 | |
| 744 | ROM_START( mjmania ) | |
| 745 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg | |
| 746 | ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(7b0f79c5) SHA1(73f23f68db4426b32583a7922abf773d67c76862) ) | |
| 747 | ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(19192ae7) SHA1(4e9fca04b567c8ef9136a3ab87b21207a44a24c4) ) | |
| 748 | ||
| 749 | ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player | |
| 750 | ROM_LOAD16_WORD_SWAP( "u2", 0x00000, 0x20000, NO_DUMP ) | |
| 751 | ||
| 752 | ROM_REGION( 0x20000, "audiocpu", 0 ) // z80 | |
| 753 | ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(f0c3bb11) SHA1(691a0ff53a9417e69051e9e2bdee7500bc6a746b) ) | |
| 754 | ||
| 755 | ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs | |
| 756 | ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(37dde764) SHA1(0530b63d8e682cdf01128057fdc3a8c23262afc9) ) | |
| 757 | ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(dea4a2d2) SHA1(0118eb1330c9da8fead99f64fc015fd343fed79b) ) | |
| 758 | ||
| 759 | DISK_REGION( "dvd" ) | |
| 760 | DISK_IMAGE( "mjmania", 0, SHA1(7117f2045fd04a3d8f8e06a6a98e8f585c4da301) ) | |
| 761 | ||
| 762 | ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 ) | |
| 763 | ROM_LOAD( "gal16v8b.ic8", 0x000000, 0x0008c1, BAD_DUMP CRC(6a92b563) SHA1(a6c4305cf021f37845f99713427daa9394b6ec7d) ) | |
| 764 | ROM_END | |
| 765 | ||
| 752 | 766 | ROM_START( bikiniko ) |
| 753 | 767 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg |
| 754 | 768 | ROM_LOAD16_BYTE( "2.ic3", 0x00000, 0x20000, CRC(b80b5484) SHA1(35769d9502cbe587dad6380c35e535cea1578227) ) |
| r11489 | r11490 | |
| 769 | 783 | DISK_IMAGE( "bikiniko", 0, SHA1(2189b676746dd848b9b5eb69f9663d6dccd63787) ) |
| 770 | 784 | ROM_END |
| 771 | 785 | |
| 786 | ROM_START( thenanpa ) | |
| 787 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg | |
| 788 | ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(ab0b686f) SHA1(a5681dbacbc60f3eb40e079779967cf69d9cb292) ) | |
| 789 | ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(48b65f9a) SHA1(ce35475d3b0e9e8dc69892428f3957d8d3d5f22c) ) | |
| 772 | 790 | |
| 791 | ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player | |
| 792 | ROM_LOAD16_WORD_SWAP( "u2", 0x00000, 0x20000, NO_DUMP ) | |
| 793 | ||
| 794 | ROM_REGION( 0x20000, "audiocpu", 0 ) // z80 | |
| 795 | ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(f44c4095) SHA1(d43e464bd6d614c34791445f8fd4af2f62a4dfc2) ) | |
| 796 | ||
| 797 | ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs | |
| 798 | ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(ee6b88c4) SHA1(64ae66a24f1639801c7bdda7faa0d604bb97ceb1) ) | |
| 799 | ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(ce987845) SHA1(2f7dca32a79ad6afbc55ca1d492b582f952688ff) ) | |
| 800 | ||
| 801 | DISK_REGION( "dvd" ) | |
| 802 | DISK_IMAGE( "thenanpa", 0, SHA1(72bf8c75189e877508c5a64d5591738d23ed7e96) ) | |
| 803 | ||
| 804 | ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 ) | |
| 805 | ROM_LOAD( "gal16v8b.ic8", 0x000000, 0x0008c1, BAD_DUMP CRC(daffd0ac)SHA1(cbeff914163d425a9cb30fe8d62f91fca281b11f) ) | |
| 806 | ROM_END | |
| 807 | ||
| 808 | ROM_START( cspureh7 ) | |
| 809 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg | |
| 810 | ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(c5ce76a6) SHA1(f8878285d2318c1ec50ba98607eb3f15a7f69913) ) | |
| 811 | ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(162f8cff) SHA1(8aa185fd1daa943d0b21fdf6e692f7782bc6dac4) ) | |
| 812 | ||
| 813 | ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player | |
| 814 | ROM_LOAD16_WORD_SWAP( "va1b102.u2", 0x000000, 0x020000, CRC(67374715) SHA1(8767cbd81614c2686a1adb70159f909e8ffd634d) ) | |
| 815 | ||
| 816 | ROM_REGION( 0x20000, "audiocpu", 0 ) // z80 | |
| 817 | ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(5905b199) SHA1(9155455bc21d23d439c4732549ff1143ee17b9d3) ) | |
| 818 | ||
| 819 | ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs | |
| 820 | ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(1d67ca95) SHA1(9b45045b6fa67308bade324f91c21010aa8d121e) ) | |
| 821 | ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(b4f5f990) SHA1(88cccae04f89fef43d88f4e82b65de3de946e9af) ) | |
| 822 | ||
| 823 | DISK_REGION( "dvd" ) | |
| 824 | DISK_IMAGE( "cspureh7", 0, SHA1(f81e772745b0c62b17d91bd294993e49fe8da4d9) ) | |
| 825 | ||
| 826 | ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 ) | |
| 827 | ROM_LOAD( "mjdvd12.gal16v8b.ic8.bin", 0x000000, 0x0008c1, BAD_DUMP CRC(6a92b563)SHA1(a6c4305cf021f37845f99713427daa9394b6ec7d) ) | |
| 828 | ROM_END | |
| 829 | ||
| 830 | ROM_START( fudol ) | |
| 831 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg | |
| 832 | ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(0cab2a72) SHA1(32d098bdd693a11f3cea6bbed3515c4217f40e23) ) | |
| 833 | ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(b1fa335e) SHA1(8a881c9c511fb63b00a3a7e433bae12aa9c2c262) ) | |
| 834 | ||
| 835 | ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player | |
| 836 | ROM_LOAD16_WORD_SWAP( "va1b102.u2", 0x000000, 0x020000, CRC(67374715) SHA1(8767cbd81614c2686a1adb70159f909e8ffd634d) ) | |
| 837 | ||
| 838 | ROM_REGION( 0x20000, "audiocpu", 0 ) // z80 | |
| 839 | ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(f6442026) SHA1(f49ddeeeaf6fffdccea9ba73bce3ca60c07a7647) ) | |
| 840 | ||
| 841 | ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs | |
| 842 | ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(5c9e8665) SHA1(2a1b040e5c72d4400d4b5c467c75ae99e9bb01e2) ) | |
| 843 | ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(fdd79d8f) SHA1(f8bb82afaa28affb04b83270eb407129f1c7e611) ) | |
| 844 | ||
| 845 | DISK_REGION( "dvd" ) | |
| 846 | DISK_IMAGE( "fudol", 0, SHA1(fabab43543ed14da4fe7c63a2a2cc4e68936938a) ) | |
| 847 | ||
| 848 | ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 ) | |
| 849 | ROM_LOAD( "gal16v8b.ic8", 0x000000, 0x0008c1, CRC(30719630) SHA1(a8c7b6d0304c38691775c5af6c32fbeeefd9f9fa) ) | |
| 850 | ROM_END | |
| 851 | ||
| 773 | 852 | // 1998 |
| 774 | 853 | // 01 : Mahjong Gal-pri (World Gal-con Grandprix) : Nichibutsu/Just&Just |
| 775 | 854 | // 02 : Sengoku Mahjong Kurenai Otome-tai : Nichibutsu/Just&Just |
| 776 | /* 03 */ GAME( 1998, jyunai, 0, csplayh5, csplayh5, jyunai, ROT0, "Nichibutsu/eic", "Jyunai - Manatsu no First Kiss (Japan)", GAME_NOT_WORKING ) | |
| 777 | /* 04 */ GAME( 1998, csplayh5, 0, csplayh5, csplayh5, csplayh5, ROT0, "Nichibutsu", "Mahjong Hanafuda Cosplay Tengoku 5 (Japan)", GAME_NOT_WORKING ) | |
| 855 | /* 03 */ GAME( 1998, jyunai, 0, csplayh5, csplayh5, jyunai, ROT0, "Nichibutsu/eic", "Jyunai - Manatsu no First Kiss (Japan)", GAME_NOT_WORKING ) | |
| 856 | /* 04 */ GAME( 1998, csplayh5, 0, csplayh5, csplayh5, csplayh5, ROT0, "Nichibutsu", "Mahjong Hanafuda Cosplay Tengoku 5 (Japan)", GAME_NOT_WORKING ) | |
| 778 | 857 | // 05 : Jyunai2 - White Love Story : Nichibutsu/eic |
| 779 | 858 | // 06 : Mahjong Mogitate : Nichibutsu/Just&Just/NVS/Astro System/AV Japan |
| 780 | 859 | |
| 781 | 860 | |
| 782 | 861 | // 1999 |
| 783 | / | |
| 862 | /* 07 */ GAME( 1999, mjmania, 0, csplayh5, csplayh5, mjmania, ROT0, "Sphinx/Just&Just", "Mahjong Ma | |
| 784 | 863 | // 08 : Renai Mahjong Idol Gakuen : Nichibutsu/eic |
| 785 | /* 09 */ GAME( 1999, bikiniko, 0, csplayh5, csplayh5, bikiniko, ROT0, "Nichibutsu/eic", "BiKiNikko - Okinawa de Ippai Shityaimashita (Japan)", GAME_NOT_WORKING ) | |
| 864 | /* 09 */ GAME( 1999, bikiniko, 0, csplayh5, csplayh5, bikiniko, ROT0, "Nichibutsu/eic", "BiKiNikko - Okinawa de Ippai Shityaimashita (Japan)", GAME_NOT_WORKING ) | |
| 786 | 865 | // 10 : Mahjong Hanafuda Cospure Tengoko 6 - Jyunai hen : Nichibutsu/eic |
| 787 | // 11 : The Nanpa : Nichibutsu/Love Factory/eic | |
| 788 | // 12 : PokoaPoka Onsen de CHU - Bijin 3 Simai ni kiwotukete : Nichibutsu/eic | |
| 789 | // 13 : Cospure Tengoku 7 - Super Co-gal Grandprix : Nichibutsu/eic | |
| 866 | /* 11 */ GAME( 1999, thenanpa, 0, csplayh5, csplayh5, thenanpa, ROT0, "Nichibutsu/Love Factory/eic", "The Nanpa", GAME_NOT_WORKING ) | |
| 867 | // 12 GAME( 1999, pokoachu, 0, csplayh5, csplayh5, 0, ROT0, "Nichibutsu/eic", "PokoaPoka Onsen de CHU - Bijin 3 Simai ni Kiwotukete (Japan)", GAME_NOT_WORKING ) | |
| 868 | /* 13 */ GAME( 1999, cspureh7, 0, csplayh5, csplayh5, cspureh7, ROT0, "Nichibutsu/eic", "Cospure Tengoku 7 - Super Co-gal Grandprix", GAME_NOT_WORKING ) | |
| 790 | 869 | // 14 : Ai-mode - Pet Shiiku : Nichibutsu/eic |
| 791 | 870 | |
| 792 | 871 | // 2000 |
| 793 | / | |
| 872 | /* 15 */ GAME( 2000, fu | |
| 794 | 873 | // 16 : Nurete Mitaino... - Net Idol Hen : Nichibutsu/Love Factory |
| 795 | 874 | // 17 : Tuugakuro no Yuuwaku : Nichibutsu/Love Factory/Just&Just |
| 796 | 875 | // 18 : Toraretyattano - AV Kantoku Hen : Nichibutsu/Love Factory/M Friend |
| r11489 | r11490 | |
|---|---|---|
| 2661 | 2661 | |
| 2662 | 2662 | //static DRIVER_INIT (m_frkstn) |
| 2663 | 2663 | //{ |
| 2664 | // mpu4_state *state = machine.driver_data<mpu4_state>(); | |
| 2665 | // state->m_reel_mux=STANDARD_REEL; | |
| 2666 | // state->m_reels = 4; | |
| 2664 | // mpu4_state *state = machine.driver_data<mpu4_state>(); | |
| 2665 | // state->m_reel_mux=STANDARD_REEL; | |
| 2666 | // state->m_reels = 4; | |
| 2667 | 2667 | // |
| 2668 | // // setup 4 default 96 half step reels with the mux board | |
| 2669 | // mpu4_config_common_reels(machine,4); | |
| 2668 | // // setup 4 default 96 half step reels with the mux board | |
| 2669 | // mpu4_config_common_reels(machine,4); | |
| 2670 | 2670 | // |
| 2671 | // | |
| 2671 | // //This is a Crystal ROM, needs UPD chip and Project Amber's ROM swizzle. | |
| 2672 | 2672 | //} |
| 2673 | 2673 | |
| 2674 | 2674 | /* generate a 50 Hz signal (based on an RC time) */ |
| r11489 | r11490 | |
| 2780 | 2780 | ADDRESS_MAP_END |
| 2781 | 2781 | |
| 2782 | 2782 | //static ADDRESS_MAP_START( mpu4_crystal_map, AS_PROGRAM, 8 ) |
| 2783 | // | |
| 2783 | // AM_RANGE(0x0000, 0x07ff) AM_RAM AM_SHARE("nvram") | |
| 2784 | 2784 | // |
| 2785 | // | |
| 2785 | // AM_RANGE(0x0850, 0x0850) AM_WRITE(bankswitch_w) // write bank (rom page select) | |
| 2786 | 2786 | // |
| 2787 | // AM_RANGE(0x0858, 0x0858) AM_WRITE(bankswitch_w) // write bank (rom page select) | |
| 2788 | // AM_RANGE(0x0878, 0x0878) AM_WRITE(bankset_w) // write bank (rom page select) | |
| 2787 | // AM_RANGE(0x0858, 0x0858) AM_WRITE(bankswitch_w) // write bank (rom page select) | |
| 2788 | // AM_RANGE(0x0878, 0x0878) AM_WRITE(bankset_w) // write bank (rom page select) | |
| 2789 | 2789 | // |
| 2790 | 2790 | //// AM_RANGE(0x08e0, 0x08e7) AM_READWRITE(68681_duart_r,68681_duart_w) //Runs hoppers |
| 2791 | 2791 | // |
| 2792 | // | |
| 2792 | // AM_RANGE(0x0900, 0x0907) AM_DEVREADWRITE_MODERN("ptm_ic2", ptm6840_device, read, write)/* PTM6840 IC2 */ | |
| 2793 | 2793 | // |
| 2794 | // AM_RANGE(0x0a00, 0x0a03) AM_DEVREADWRITE_MODERN("pia_ic3", pia6821_device, read, write) /* PIA6821 IC3 */ | |
| 2795 | // AM_RANGE(0x0b00, 0x0b03) AM_DEVREADWRITE_MODERN("pia_ic4", pia6821_device, read, write) /* PIA6821 IC4 */ | |
| 2796 | // AM_RANGE(0x0c00, 0x0c03) AM_DEVREADWRITE_MODERN("pia_ic5", pia6821_device, read, write) /* PIA6821 IC5 */ | |
| 2797 | // AM_RANGE(0x0d00, 0x0d03) AM_DEVREADWRITE_MODERN("pia_ic6", pia6821_device, read, write) /* PIA6821 IC6 */ | |
| 2798 | // AM_RANGE(0x0e00, 0x0e03) AM_DEVREADWRITE_MODERN("pia_ic7", pia6821_device, read, write) /* PIA6821 IC7 */ | |
| 2799 | // AM_RANGE(0x0f00, 0x0f03) AM_DEVREADWRITE_MODERN("pia_ic8", pia6821_device, read, write) /* PIA6821 IC8 */ | |
| 2794 | // AM_RANGE(0x0a00, 0x0a03) AM_DEVREADWRITE_MODERN("pia_ic3", pia6821_device, read, write) /* PIA6821 IC3 */ | |
| 2795 | // AM_RANGE(0x0b00, 0x0b03) AM_DEVREADWRITE_MODERN("pia_ic4", pia6821_device, read, write) /* PIA6821 IC4 */ | |
| 2796 | // AM_RANGE(0x0c00, 0x0c03) AM_DEVREADWRITE_MODERN("pia_ic5", pia6821_device, read, write) /* PIA6821 IC5 */ | |
| 2797 | // AM_RANGE(0x0d00, 0x0d03) AM_DEVREADWRITE_MODERN("pia_ic6", pia6821_device, read, write) /* PIA6821 IC6 */ | |
| 2798 | // AM_RANGE(0x0e00, 0x0e03) AM_DEVREADWRITE_MODERN("pia_ic7", pia6821_device, read, write) /* PIA6821 IC7 */ | |
| 2799 | // AM_RANGE(0x0f00, 0x0f03) AM_DEVREADWRITE_MODERN("pia_ic8", pia6821_device, read, write) /* PIA6821 IC8 */ | |
| 2800 | 2800 | // |
| 2801 | // | |
| 2801 | // AM_RANGE(0x1000, 0xffff) AM_ROMBANK("bank1") // 64k paged ROM (4 pages) | |
| 2802 | 2802 | //ADDRESS_MAP_END */ |
| 2803 | 2803 | |
| 2804 | 2804 | |
| r11489 | r11490 | |
| 2905 | 2905 | MACHINE_CONFIG_END |
| 2906 | 2906 | |
| 2907 | 2907 | //static MACHINE_CONFIG_DERIVED(mpu4crys, mpu4mod2 ) |
| 2908 | // MCFG_CPU_MODIFY("maincpu") | |
| 2909 | // MCFG_CPU_PROGRAM_MAP(mpu4_crystal_map) // setup read and write memorymap | |
| 2908 | // MCFG_CPU_MODIFY("maincpu") | |
| 2909 | // MCFG_CPU_PROGRAM_MAP(mpu4_crystal_map) // setup read and write memorymap | |
| 2910 | 2910 | // |
| 2911 | // MCFG_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK) | |
| 2912 | // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) | |
| 2911 | // MCFG_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK) | |
| 2912 | // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) | |
| 2913 | 2913 | //MACHINE_CONFIG_END |
| 2914 | 2914 | |
| 2915 | 2915 | |
| r11489 | r11490 | |
| 2987 | 2987 | GAMEL(198?, m_gmball,0, mod4yam, gamball, m_gmball, ROT0, "Barcrest", "Gamball", GAME_REQUIRES_ARTWORK|GAME_MECHANICAL,layout_gamball )//Mechanical ball launcher |
| 2988 | 2988 | GAMEL(198?, m_grtecp,0, mod4oki, mpu4, m_grtecp, ROT0, "Barcrest", "Andy's Great Escape", GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK,layout_mpu4ext )//5 reel meter mux |
| 2989 | 2989 | GAME(199?, m_blsbys,0, bwboki, mpu4, m_blsbys, ROT0, "Barcrest", "Blues Boys (Version 6)", GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK ) |
| 2990 | //GAME(199?, m_frkstn,0, | |
| 2990 | //GAME(199?, m_frkstn,0, | |
| 2991 | 2991 | |
| 2992 | 2992 | //SWP |
| 2993 | 2993 | GAMEL(1989?,connect4, 0, mpu4mod2, connect4, connect4, ROT0, "Dolbeck Systems","Connect 4",GAME_IMPERFECT_GRAPHICS|GAME_REQUIRES_ARTWORK,layout_connect4 ) |
| r11489 | r11490 | |
|---|---|---|
| 1586 | 1586 | AM_RANGE(0x300000, 0x300001) AM_WRITENOP // ? 0 / 1 |
| 1587 | 1587 | AM_RANGE(0x380000, 0x3803ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 1588 | 1588 | /**/AM_RANGE(0x400000, 0x400001) AM_WRITENOP // ? $4000 |
| 1589 | /**/AM_RANGE(0x600000, 0x6005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1590 | AM_RANGE(0x600600, 0x600607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1589 | /**/AM_RANGE(0x600000, 0x6005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1590 | AM_RANGE(0x600600, 0x600607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1591 | 1591 | |
| 1592 | 1592 | AM_RANGE(0x800000, 0x800007) AM_WRITE(sub_ctrl_w) // Sub CPU Control? |
| 1593 | 1593 | AM_RANGE(0xa00000, 0xa00fff) AM_READWRITE(sharedram_68000_r,sharedram_68000_w) // Shared RAM |
| r11489 | r11490 | |
| 1616 | 1616 | AM_RANGE(0xa00000, 0xa00007) AM_WRITE(sub_ctrl_w) // Sub CPU Control? |
| 1617 | 1617 | AM_RANGE(0xb00000, 0xb00fff) AM_READWRITE(sharedram_68000_r,sharedram_68000_w) // Shared RAM |
| 1618 | 1618 | AM_RANGE(0xc00000, 0xc00001) AM_WRITENOP // ? $4000 |
| 1619 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1620 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1619 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1620 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1621 | 1621 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 1622 | 1622 | AM_RANGE(0xf00000, 0xffffff) AM_RAM // RAM |
| 1623 | 1623 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 1676 | 1676 | |
| 1677 | 1677 | AM_RANGE(0x904000, 0x904fff) AM_RAM // |
| 1678 | 1678 | AM_RANGE(0xa00000, 0xa00019) AM_READ(calibr50_ip_r) // Input Ports |
| 1679 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1680 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1679 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1680 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1681 | 1681 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 1682 | 1682 | AM_RANGE(0xb00000, 0xb00001) AM_READWRITE(soundlatch2_word_r,calibr50_soundlatch_w) // From Sub CPU |
| 1683 | 1683 | /**/AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? $4000 |
| r11489 | r11490 | |
| 1749 | 1749 | AM_RANGE(0x000000, 0x07ffff) AM_ROM // ROM |
| 1750 | 1750 | AM_RANGE(0xff0000, 0xffffff) AM_RAM // RAM |
| 1751 | 1751 | AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y |
| 1752 | AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1752 | AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1753 | 1753 | /**/AM_RANGE(0x900000, 0x900001) AM_RAM // ? $4000 |
| 1754 | 1754 | AM_RANGE(0xa00000, 0xa00005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM Ctrl |
| 1755 | 1755 | /**/AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| r11489 | r11490 | |
| 1782 | 1782 | AM_RANGE(0x500000, 0x500001) AM_WRITENOP // ? (end of lev 1: bit 4 goes 1,0,1) |
| 1783 | 1783 | AM_RANGE(0x600000, 0x600003) AM_READ(seta_dsw_r) // DSW |
| 1784 | 1784 | AM_RANGE(0x700000, 0x7003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 1785 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1786 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1785 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1786 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1787 | 1787 | AM_RANGE(0xb00000, 0xb00001) AM_READ_PORT("P1") // P1 |
| 1788 | 1788 | AM_RANGE(0xb00002, 0xb00003) AM_READ_PORT("P2") // P2 |
| 1789 | 1789 | AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("COINS") // Coins |
| r11489 | r11490 | |
| 1809 | 1809 | AM_RANGE(0x700000, 0x7003ff) AM_RAM // (rezon,jjsquawk) |
| 1810 | 1810 | AM_RANGE(0x700400, 0x700fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 1811 | 1811 | AM_RANGE(0x703c00, 0x7047ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram2, m_paletteram2_size) // 2nd Palette for the palette offset effect |
| 1812 | /**/AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1813 | AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1812 | /**/AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1813 | AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1814 | 1814 | AM_RANGE(0x880000, 0x880001) AM_RAM // ? 0xc000 |
| 1815 | 1815 | AM_RANGE(0x900000, 0x903fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 1816 | 1816 | /**/AM_RANGE(0xa00000, 0xa00005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| r11489 | r11490 | |
| 1850 | 1850 | AM_RANGE(0x884000, 0x88ffff) AM_RAM // (jjsquawk) |
| 1851 | 1851 | /**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 1852 | 1852 | /**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 1853 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1854 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1853 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1854 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1855 | 1855 | /**/AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 1856 | 1856 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 1857 | 1857 | AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w) // Sound |
| r11489 | r11490 | |
| 1933 | 1933 | AM_RANGE(0x884000, 0x88ffff) AM_RAM // (jjsquawk) |
| 1934 | 1934 | /**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 1935 | 1935 | /**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 1936 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1937 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1936 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1937 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1938 | 1938 | /**/AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 1939 | 1939 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 1940 | 1940 | AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w) // Sound |
| r11489 | r11490 | |
| 1976 | 1976 | AM_RANGE(0x902010, 0x902013) AM_READ( zingzipbl_unknown_r ) |
| 1977 | 1977 | |
| 1978 | 1978 | /**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 1979 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1980 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1979 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 1980 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 1981 | 1981 | /**/AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 1982 | 1982 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 1983 | 1983 | AM_RANGE(0xc00000, 0xc03fff) AM_RAM // soundram on original |
| r11489 | r11490 | |
| 2009 | 2009 | AM_RANGE(0x884000, 0x88ffff) AM_RAM // (jjsquawk) |
| 2010 | 2010 | AM_RANGE(0x908000, 0x908005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2011 | 2011 | AM_RANGE(0x909000, 0x909005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2012 | AM_RANGE(0xa0a000, 0xa0a5ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // RZ: Sprites Y | |
| 2013 | AM_RANGE(0xa0a600, 0xa0a607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2012 | AM_RANGE(0xa0a000, 0xa0a5ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // RZ: Sprites Y | |
| 2013 | AM_RANGE(0xa0a600, 0xa0a607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2014 | 2014 | // AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 2015 | 2015 | AM_RANGE(0xb0c000, 0xb0ffff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // RZ: Sprites Code + X + Attr |
| 2016 | 2016 | AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w) // Sound |
| r11489 | r11490 | |
| 2044 | 2044 | AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 2045 | 2045 | AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2046 | 2046 | /**/AM_RANGE(0xd00000, 0xd00001) AM_RAM // ? 0x4000 |
| 2047 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2048 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2047 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2048 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2049 | 2049 | ADDRESS_MAP_END |
| 2050 | 2050 | |
| 2051 | 2051 | /*************************************************************************** |
| r11489 | r11490 | |
| 2130 | 2130 | AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 2131 | 2131 | AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2132 | 2132 | /**/AM_RANGE(0xd00000, 0xd00001) AM_RAM // ? 0x4000 |
| 2133 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2134 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2133 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2134 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2135 | 2135 | ADDRESS_MAP_END |
| 2136 | 2136 | |
| 2137 | 2137 | static MACHINE_START( keroppi ) |
| r11489 | r11490 | |
| 2162 | 2162 | AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 2163 | 2163 | AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2164 | 2164 | /**/AM_RANGE(0xd00000, 0xd00001) AM_RAM // ? 0x4000 |
| 2165 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2166 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2165 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2166 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2167 | 2167 | ADDRESS_MAP_END |
| 2168 | 2168 | |
| 2169 | 2169 | |
| r11489 | r11490 | |
| 2189 | 2189 | AM_RANGE(0x884000, 0x88ffff) AM_RAM // |
| 2190 | 2190 | AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2191 | 2191 | AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2192 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2193 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2192 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2193 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2194 | 2194 | |
| 2195 | 2195 | AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 2196 | 2196 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| r11489 | r11490 | |
| 2222 | 2222 | AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("COINS") // Coins |
| 2223 | 2223 | AM_RANGE(0xb00006, 0xb00007) AM_READNOP // unused (qzkklogy) |
| 2224 | 2224 | /**/AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? $4000 |
| 2225 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2226 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2225 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2226 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2227 | 2227 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2228 | 2228 | ADDRESS_MAP_END |
| 2229 | 2229 | |
| r11489 | r11490 | |
| 2321 | 2321 | AM_RANGE(0x884000, 0x88ffff) AM_RAM // |
| 2322 | 2322 | /**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2323 | 2323 | /**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2324 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2325 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2324 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2325 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2326 | 2326 | /**/AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 2327 | 2327 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2328 | 2328 | AM_RANGE(0xb04000, 0xb13fff) AM_RAM // |
| r11489 | r11490 | |
| 2353 | 2353 | AM_RANGE(0x884000, 0x887fff) AM_RAM // tested |
| 2354 | 2354 | AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2355 | 2355 | AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2356 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2357 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2356 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2357 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2358 | 2358 | AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? $4000 |
| 2359 | 2359 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2360 | 2360 | AM_RANGE(0xb04000, 0xb07fff) AM_RAM // tested |
| r11489 | r11490 | |
| 2383 | 2383 | AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2384 | 2384 | AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2385 | 2385 | |
| 2386 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2387 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2386 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2387 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2388 | 2388 | AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? $4000 |
| 2389 | 2389 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2390 | 2390 | #if __uPD71054_TIMER |
| r11489 | r11490 | |
| 2441 | 2441 | AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 2442 | 2442 | AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2443 | 2443 | /**/AM_RANGE(0xd00000, 0xd00001) AM_RAM // ? 0x4000 |
| 2444 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2445 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2444 | /**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2445 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2446 | 2446 | ADDRESS_MAP_END |
| 2447 | 2447 | |
| 2448 | 2448 | |
| r11489 | r11490 | |
| 2475 | 2475 | AM_RANGE(0x500000, 0x500005) AM_RAM_WRITE(msgundam_vregs_w) AM_BASE_MEMBER(seta_state, m_vregs) // Coin Lockout + Video Registers |
| 2476 | 2476 | AM_RANGE(0x600000, 0x600003) AM_READ(seta_dsw_r) // DSW |
| 2477 | 2477 | AM_RANGE(0x700400, 0x700fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 2478 | AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2479 | AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2478 | AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2479 | AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2480 | 2480 | AM_RANGE(0x880000, 0x880001) AM_RAM // ? 0x4000 |
| 2481 | 2481 | AM_RANGE(0x900000, 0x903fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2482 | 2482 | AM_RANGE(0xa00000, 0xa03fff) AM_RAM_WRITE(seta_vram_0_w) AM_BASE_MEMBER(seta_state, m_vram_0) // VRAM 0&1 |
| r11489 | r11490 | |
| 2512 | 2512 | AM_RANGE(0x880000, 0x883fff) AM_RAM_WRITE(seta_vram_2_w) AM_BASE_MEMBER(seta_state, m_vram_2) // VRAM 2&3 |
| 2513 | 2513 | /**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2514 | 2514 | /**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2515 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2516 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2515 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2516 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2517 | 2517 | /**/AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 2518 | 2518 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2519 | 2519 | AM_RANGE(0xc00400, 0xc00fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| r11489 | r11490 | |
| 2541 | 2541 | AM_RANGE(0x880000, 0x883fff) AM_RAM_WRITE(seta_vram_2_w) AM_BASE_MEMBER(seta_state, m_vram_2) // VRAM 2&3 |
| 2542 | 2542 | /**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2543 | 2543 | /**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2544 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2545 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2544 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2545 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2546 | 2546 | /**/AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 2547 | 2547 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2548 | 2548 | AM_RANGE(0xc00400, 0xc00fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| r11489 | r11490 | |
| 2597 | 2597 | AM_RANGE(0xfffc00, 0xffffff) AM_READWRITE(kiwame_nvram_r, kiwame_nvram_w) AM_BASE_MEMBER(seta_state, m_kiwame_nvram) // NVRAM + Regs ? |
| 2598 | 2598 | AM_RANGE(0x800000, 0x803fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2599 | 2599 | /**/AM_RANGE(0x900000, 0x900001) AM_RAM // ? 0x4000 |
| 2600 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2601 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2600 | /**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2601 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2602 | 2602 | AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 2603 | 2603 | AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w) // Sound |
| 2604 | 2604 | AM_RANGE(0xd00000, 0xd00009) AM_READ(kiwame_input_r) // mahjong panel |
| r11489 | r11490 | |
| 2639 | 2639 | AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3") // P3 (wits) |
| 2640 | 2640 | AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4") // P4 (wits) |
| 2641 | 2641 | /**/AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? 0x4000 |
| 2642 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2643 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2642 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2643 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2644 | 2644 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2645 | 2645 | AM_RANGE(0xe04000, 0xe07fff) AM_RAM // (wits) |
| 2646 | 2646 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 2663 | 2663 | AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3") // P3 (wits) |
| 2664 | 2664 | AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4") // P4 (wits) |
| 2665 | 2665 | /**/AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? 0x4000 |
| 2666 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2667 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2666 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2667 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2668 | 2668 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2669 | 2669 | AM_RANGE(0xe04000, 0xe07fff) AM_RAM // (wits) |
| 2670 | 2670 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 2705 | 2705 | AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3") // P3 (wits) |
| 2706 | 2706 | AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4") // P4 (wits) |
| 2707 | 2707 | /**/AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? 0x4000 |
| 2708 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2709 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2708 | /**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2709 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2710 | 2710 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2711 | 2711 | AM_RANGE(0xe04000, 0xe07fff) AM_RAM // (wits) |
| 2712 | 2712 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 2735 | 2735 | AM_RANGE(0x400004, 0x400005) AM_WRITENOP // ? (end of lev 2) |
| 2736 | 2736 | AM_RANGE(0x500000, 0x500001) AM_RAM_WRITE(seta_vregs_w) AM_BASE_MEMBER(seta_state, m_vregs) // Coin Lockout + Video Registers |
| 2737 | 2737 | AM_RANGE(0x600000, 0x600003) AM_READ(seta_dsw_r) // DSW |
| 2738 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2739 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2738 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2739 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2740 | 2740 | /**/AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? 0x4000 |
| 2741 | 2741 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2742 | 2742 | AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w) // Sound |
| r11489 | r11490 | |
| 2769 | 2769 | AM_RANGE(0x880000, 0x883fff) AM_RAM_WRITE(seta_vram_2_w) AM_BASE_MEMBER(seta_state, m_vram_2) // VRAM 2&3 |
| 2770 | 2770 | AM_RANGE(0x900000, 0x900005) AM_WRITEONLY AM_BASE_MEMBER(seta_state, m_vctrl_0)// VRAM 0&1 Ctrl |
| 2771 | 2771 | AM_RANGE(0x980000, 0x980005) AM_WRITEONLY AM_BASE_MEMBER(seta_state, m_vctrl_2)// VRAM 2&3 Ctrl |
| 2772 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2773 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2772 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2773 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2774 | 2774 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2775 | 2775 | AM_RANGE(0xc00000, 0xc00001) AM_WRITE(utoukond_soundlatch_w) // To Sound CPU (cause an IRQ) |
| 2776 | 2776 | AM_RANGE(0xe00000, 0xe00001) AM_WRITENOP // ? ack |
| r11489 | r11490 | |
| 2813 | 2813 | AM_RANGE(0xb00000, 0xb00fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette |
| 2814 | 2814 | AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2815 | 2815 | AM_RANGE(0xd00000, 0xd00001) AM_RAM // ? 0x4000 |
| 2816 | AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2817 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2816 | AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2817 | AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2818 | 2818 | AM_RANGE(0xf00000, 0xf0ffff) AM_RAM // RAM |
| 2819 | 2819 | ADDRESS_MAP_END |
| 2820 | 2820 | |
| r11489 | r11490 | |
| 2840 | 2840 | AM_RANGE(0x880000, 0x883fff) AM_WRITE(seta_vram_0_w) AM_BASE_MEMBER(seta_state, m_vram_0) // VRAM 0 |
| 2841 | 2841 | AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2) // VRAM 2&3 Ctrl |
| 2842 | 2842 | AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0) // VRAM 0&1 Ctrl |
| 2843 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2844 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2843 | AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2844 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2845 | 2845 | AM_RANGE(0xa80000, 0xa80001) AM_WRITENOP // ? 0x4000 |
| 2846 | 2846 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2847 | 2847 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 2910 | 2910 | |
| 2911 | 2911 | AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? 0x4000 |
| 2912 | 2912 | |
| 2913 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2914 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2913 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2914 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2915 | 2915 | |
| 2916 | 2916 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2917 | 2917 | |
| r11489 | r11490 | |
| 2977 | 2977 | |
| 2978 | 2978 | AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? 0x4000 |
| 2979 | 2979 | |
| 2980 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2981 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2980 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 2981 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 2982 | 2982 | |
| 2983 | 2983 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2984 | 2984 | |
| r11489 | r11490 | |
| 3754 | 3754 | PORT_DIPNAME( 0x0001, 0x0001, "0" ) |
| 3755 | 3755 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 3756 | 3756 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3757 | ||
| 3757 | ||
| 3758 | 3758 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) |
| 3759 | 3759 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 3760 | 3760 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r11489 | r11490 | |
| 3891 | 3891 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 3892 | 3892 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 3893 | 3893 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3894 | ||
| 3894 | ||
| 3895 | 3895 | PORT_START("UNK3") |
| 3896 | 3896 | PORT_DIPNAME( 0x0001, 0x0001, "3" ) |
| 3897 | 3897 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r11489 | r11490 | |
| 3941 | 3941 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 3942 | 3942 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 3943 | 3943 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3944 | ||
| 3944 | ||
| 3945 | 3945 | PORT_START("UNK4") |
| 3946 | 3946 | PORT_DIPNAME( 0x0001, 0x0001, "4" ) |
| 3947 | 3947 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r11489 | r11490 | |
| 3988 | 3988 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 3989 | 3989 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 3990 | 3990 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3991 | ||
| 3991 | ||
| 3992 | 3992 | PORT_START("UNK5") |
| 3993 | 3993 | PORT_DIPNAME( 0x0001, 0x0001, "5" ) |
| 3994 | 3994 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r11489 | r11490 | |
|---|---|---|
| 44 | 44 | To Do |
| 45 | 45 | ----- |
| 46 | 46 | |
| 47 | - The sound section will benefit from proper MC6840 and YM8950 emulation | |
| 47 | - game doesn't init paletteram / tilemaps properly, ending up with MAME | |
| 48 | palette defaults at start-up and missing text layer if you coin it up | |
| 49 | too soon. | |
| 48 | 50 | |
| 49 | 51 | ***************************************************************************/ |
| 50 | 52 | |
| 51 | 53 | #include "emu.h" |
| 52 | #include "cpu/m6809/m6809.h" | |
| 53 | 54 | #include "cpu/m68000/m68000.h" |
| 54 | #include " | |
| 55 | #include " | |
| 55 | 56 | #include "sound/ay8910.h" |
| 56 | 57 | #include "sound/8950intf.h" |
| 57 | 58 | #include "includes/ginganin.h" |
| 59 | #include "machine/6840ptm.h" | |
| 58 | 60 | |
| 59 | 61 | |
| 62 | #define MAIN_CLOCK XTAL_6MHz | |
| 63 | #define SOUND_CLOCK XTAL_3_579545MHz | |
| 64 | ||
| 65 | ||
| 60 | 66 | /* |
| 61 | 67 | ** |
| 62 | 68 | ** Main cpu data |
| r11489 | r11490 | |
| 84 | 90 | ** |
| 85 | 91 | */ |
| 86 | 92 | |
| 87 | static WRITE8_HANDLER( MC6840_control_port_0_w ) | |
| 88 | { | |
| 89 | /* MC6840 Emulation by Takahiro Nogi. 1999/09/27 | |
| 90 | (This routine hasn't been completed yet.) */ | |
| 91 | ||
| 92 | ginganin_state *state = space->machine().driver_data<ginganin_state>(); | |
| 93 | state->m_MC6840_index0 = data; | |
| 94 | ||
| 95 | if (state->m_MC6840_index0 & 0x80) /* enable timer output */ | |
| 96 | { | |
| 97 | if ((state->m_MC6840_register0 != state->m_S_TEMPO) && (state->m_MC6840_register0 != 0)) | |
| 98 | { | |
| 99 | state->m_S_TEMPO = state->m_MC6840_register0; | |
| 100 | #ifdef MAME_DEBUG | |
| 101 | popmessage("I0:0x%02X R0:0x%02X I1:0x%02X R1:0x%02X", state->m_MC6840_index0, state->m_MC6840_register0, state->m_MC6840_index1, state->m_MC6840_register1); | |
| 102 | #endif | |
| 103 | } | |
| 104 | state->m_MC6809_FLAG = 1; | |
| 105 | } | |
| 106 | else | |
| 107 | state->m_MC6809_FLAG = 0; | |
| 108 | ||
| 109 | #ifdef MAME_DEBUG | |
| 110 | logerror("MC6840 Write:(0x%02X)0x%02X\n", state->m_MC6840_register0, data); | |
| 111 | #endif | |
| 112 | } | |
| 113 | ||
| 114 | static WRITE8_HANDLER( MC6840_control_port_1_w ) | |
| 115 | { | |
| 116 | /* MC6840 Emulation by Takahiro Nogi. 1999/09/27 | |
| 117 | (This routine hasn't been completed yet.) */ | |
| 118 | ||
| 119 | ginganin_state *state = space->machine().driver_data<ginganin_state>(); | |
| 120 | state->m_MC6840_index1 = data; | |
| 121 | } | |
| 122 | ||
| 123 | static WRITE8_HANDLER( MC6840_write_port_0_w ) | |
| 124 | { | |
| 125 | /* MC6840 Emulation by Takahiro Nogi. 1999/09/27 | |
| 126 | (This routine hasn't been completed yet.) */ | |
| 127 | ||
| 128 | ginganin_state *state = space->machine().driver_data<ginganin_state>(); | |
| 129 | state->m_MC6840_register0 = data; | |
| 130 | } | |
| 131 | ||
| 132 | static WRITE8_HANDLER( MC6840_write_port_1_w ) | |
| 133 | { | |
| 134 | /* MC6840 Emulation by Takahiro Nogi. 1999/09/27 | |
| 135 | (This routine hasn't been completed yet.) */ | |
| 136 | ||
| 137 | ginganin_state *state = space->machine().driver_data<ginganin_state>(); | |
| 138 | state->m_MC6840_register1 = data; | |
| 139 | } | |
| 140 | ||
| 141 | 93 | static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8 ) |
| 142 | 94 | AM_RANGE(0x0000, 0x07ff) AM_RAM |
| 143 | AM_RANGE(0x0800, 0x0800) AM_WRITE(MC6840_control_port_0_w) /* Takahiro Nogi. 1999/09/27 */ | |
| 144 | AM_RANGE(0x0801, 0x0801) AM_WRITE(MC6840_control_port_1_w) /* Takahiro Nogi. 1999/09/27 */ | |
| 145 | AM_RANGE(0x0802, 0x0802) AM_WRITE(MC6840_write_port_0_w) /* Takahiro Nogi. 1999/09/27 */ | |
| 146 | AM_RANGE(0x0803, 0x0803) AM_WRITE(MC6840_write_port_1_w) /* Takahiro Nogi. 1999/09/27 */ | |
| 95 | AM_RANGE(0x0800, 0x0807) AM_DEVREADWRITE_MODERN("6840ptm", ptm6840_device, read, write) | |
| 147 | 96 | AM_RANGE(0x1800, 0x1800) AM_READ(soundlatch_r) |
| 148 | 97 | AM_RANGE(0x2000, 0x2001) AM_DEVWRITE("ymsnd", y8950_w) |
| 149 | 98 | AM_RANGE(0x2800, 0x2801) AM_DEVWRITE("aysnd", ay8910_address_data_w) |
| r11489 | r11490 | |
| 218 | 167 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Flip_Screen ) ) |
| 219 | 168 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 220 | 169 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 221 | PORT_DIPNAME( 0x8000, 0x8000, "Freeze | |
| 170 | PORT_DIPNAME( 0x8000, 0x8000, "Freeze | |
| 222 | 171 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 223 | 172 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 224 | 173 | INPUT_PORTS_END |
| r11489 | r11490 | |
| 272 | 221 | |
| 273 | 222 | |
| 274 | 223 | |
| 275 | /* Modified by Takahiro Nogi. 1999/09/27 */ | |
| 276 | static INTERRUPT_GEN( ginganin_sound_interrupt ) | |
| 277 | { | |
| 278 | /* MC6840 Emulation by Takahiro Nogi. 1999/09/27 | |
| 279 | (This routine hasn't been completed yet.) */ | |
| 280 | 224 | |
| 281 | ginganin_state *state = device->machine().driver_data<ginganin_state>(); | |
| 282 | 225 | |
| 283 | if (state->m_S_TEMPO_OLD != state->m_S_TEMPO) | |
| 284 | { | |
| 285 | state->m_S_TEMPO_OLD = state->m_S_TEMPO; | |
| 286 | state->m_MC6809_CTR = 0; | |
| 287 | } | |
| 288 | 226 | |
| 289 | if (state->m_MC6809_FLAG != 0) | |
| 290 | { | |
| 291 | if (state->m_MC6809_CTR > state->m_S_TEMPO) | |
| 292 | { | |
| 293 | state->m_MC6809_CTR = 0; | |
| 294 | device_set_input_line(device, 0, HOLD_LINE); | |
| 295 | } | |
| 296 | else | |
| 297 | state->m_MC6809_CTR++; | |
| 298 | } | |
| 299 | } | |
| 300 | 227 | |
| 301 | 228 | |
| 302 | ||
| 303 | ||
| 304 | ||
| 305 | 229 | static MACHINE_START( ginganin ) |
| 306 | 230 | { |
| 307 | 231 | ginganin_state *state = machine.driver_data<ginganin_state>(); |
| r11489 | r11490 | |
| 310 | 234 | |
| 311 | 235 | state->save_item(NAME(state->m_layers_ctrl)); |
| 312 | 236 | state->save_item(NAME(state->m_flipscreen)); |
| 313 | state->save_item(NAME(state->m_MC6840_index0)); | |
| 314 | state->save_item(NAME(state->m_MC6840_register0)); | |
| 315 | state->save_item(NAME(state->m_MC6840_index1)); | |
| 316 | state->save_item(NAME(state->m_MC6840_register1)); | |
| 317 | state->save_item(NAME(state->m_S_TEMPO)); | |
| 318 | state->save_item(NAME(state->m_S_TEMPO_OLD)); | |
| 319 | state->save_item(NAME(state->m_MC6809_CTR)); | |
| 320 | state->save_item(NAME(state->m_MC6809_FLAG)); | |
| 321 | 237 | } |
| 322 | 238 | |
| 323 | 239 | static MACHINE_RESET( ginganin ) |
| r11489 | r11490 | |
| 326 | 242 | |
| 327 | 243 | state->m_layers_ctrl = 0; |
| 328 | 244 | state->m_flipscreen = 0; |
| 329 | state->m_MC6840_index0 = 0; | |
| 330 | state->m_MC6840_register0 = 0; | |
| 331 | state->m_MC6840_index1 = 0; | |
| 332 | state->m_MC6840_register1 = 0; | |
| 333 | state->m_S_TEMPO = 0; | |
| 334 | state->m_S_TEMPO_OLD = 0; | |
| 335 | state->m_MC6809_CTR = 0; | |
| 336 | state->m_MC6809_FLAG = 0; | |
| 337 | 245 | } |
| 338 | 246 | |
| 339 | 247 | |
| 248 | static WRITE8_DEVICE_HANDLER( ptm_irq ) | |
| 249 | { | |
| 250 | cputag_set_input_line(device->machine(), "audiocpu", 0, (data & 1) ? ASSERT_LINE : CLEAR_LINE); | |
| 251 | } | |
| 252 | ||
| 253 | static const ptm6840_interface ptm_intf = | |
| 254 | { | |
| 255 | SOUND_CLOCK/2, | |
| 256 | { 0, 0, 0 }, | |
| 257 | { DEVCB_HANDLER(ptm_irq), DEVCB_NULL, DEVCB_NULL }, | |
| 258 | DEVCB_NULL | |
| 259 | }; | |
| 260 | ||
| 340 | 261 | static MACHINE_CONFIG_START( ginganin, ginganin_state ) |
| 341 | 262 | |
| 342 | 263 | /* basic machine hardware */ |
| 343 | MCFG_CPU_ADD("maincpu", M68000, | |
| 264 | MCFG_CPU_ADD("maincpu", M68000, MAIN_CLOCK) | |
| 344 | 265 | MCFG_CPU_PROGRAM_MAP(ginganin_map) |
| 345 | 266 | MCFG_CPU_VBLANK_INT("screen", irq1_line_hold) /* ? (vectors 1-7 cointain the same address) */ |
| 346 | 267 | |
| 347 | MCFG_CPU_ADD("audiocpu", M6809, | |
| 268 | MCFG_CPU_ADD("audiocpu", M6809, SOUND_CLOCK) | |
| 348 | 269 | MCFG_CPU_PROGRAM_MAP(sound_map) |
| 349 | MCFG_CPU_VBLANK_INT_HACK(ginganin_sound_interrupt,60) /* Takahiro Nogi. 1999/09/27 (1 -> 60) */ | |
| 350 | 270 | |
| 351 | 271 | MCFG_MACHINE_START(ginganin) |
| 352 | 272 | MCFG_MACHINE_RESET(ginganin) |
| 353 | 273 | |
| 274 | MCFG_PTM6840_ADD("6840ptm", ptm_intf) | |
| 275 | ||
| 354 | 276 | /* video hardware */ |
| 355 | 277 | MCFG_SCREEN_ADD("screen", RASTER) |
| 356 | 278 | MCFG_SCREEN_REFRESH_RATE(60) |
| r11489 | r11490 | |
| 368 | 290 | /* sound hardware */ |
| 369 | 291 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 370 | 292 | |
| 371 | MCFG_SOUND_ADD("aysnd", AY8910, | |
| 293 | MCFG_SOUND_ADD("aysnd", AY8910, SOUND_CLOCK / 2) | |
| 372 | 294 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10) |
| 373 | 295 | |
| 374 | MCFG_SOUND_ADD("ymsnd", Y8950, | |
| 296 | MCFG_SOUND_ADD("ymsnd", Y8950, SOUND_CLOCK) /* The Y8950 is basically a YM3526 with ADPCM built in */ | |
| 375 | 297 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 376 | 298 | MACHINE_CONFIG_END |
| 377 | 299 |
| r11489 | r11490 | |
|---|---|---|
| 2165 | 2165 | ROM_LOAD( "gn1.u11", 0x08000, 0x1000, CRC(80dce6f4) SHA1(bf953eba9cb270297b0d0efffe15b926e94dfbe7) ) |
| 2166 | 2166 | ROM_LOAD( "rd0.u13", 0x0a000, 0x1000, CRC(38c57504) SHA1(cc3ac1df644abc4586fc9f0e88531ba146b86b48) ) |
| 2167 | 2167 | |
| 2168 | // ROM_REGION( 0x200, "proms", 0 ) | |
| 2169 | // ROM_LOAD( "prom.x", 0x00, 0x20, NO_DUMP ) | |
| 2168 | // ROM_REGION( 0x200, "proms", 0 ) | |
| 2169 | // ROM_LOAD( "prom.x", 0x00, 0x20, NO_DUMP ) | |
| 2170 | 2170 | ROM_END |
| 2171 | 2171 | |
| 2172 | 2172 |
| r11489 | r11490 | |
|---|---|---|
| 720 | 720 | MCFG_CPU_PROGRAM_MAP(bootleg_map) |
| 721 | 721 | MCFG_CPU_VBLANK_INT("screen", vblank_int) |
| 722 | 722 | |
| 723 | // MCFG_CPU_ADD("audiocpu", Z80, XTAL_20MHz/12) | |
| 723 | // MCFG_CPU_ADD("audiocpu", Z80, XTAL_20MHz/12) /* Divisor estimated */ | |
| 724 | 724 | // MCFG_CPU_PROGRAM_MAP(bootleg_soundmap) |
| 725 | 725 | |
| 726 | 726 | MCFG_MACHINE_START(badlands) |
| r11489 | r11490 | |
|---|---|---|
| 267 | 267 | |
| 268 | 268 | |
| 269 | 269 | * Witch Card (Proma) |
| 270 | ||
| 271 | For the first time: You must coin-up and play at least one hand, then Payout | |
| 272 | to get the proper coinage settings. | |
| 273 | 270 | |
| 271 | For the first time: You must coin-up and play at least one hand, then Payout | |
| 272 | to get the proper coinage settings. | |
| 274 | 273 | |
| 274 | ||
| 275 | 275 | ******************************************************************************* |
| 276 | 276 | |
| 277 | 277 |
| r11489 | r11490 | |
|---|---|---|
| 2659 | 2659 | ROM_REGION( 0x20000, "gfx1", 0 ) |
| 2660 | 2660 | ROM_LOAD( "c20-07.ic10", 0x00000, 0x10000, CRC(be12749a) SHA1(c67d1a434486843a6776d89e905362b7db595d8d) ) |
| 2661 | 2661 | ROM_LOAD( "c20-06.ic9", 0x10000, 0x10000, CRC(ac85a9c5) SHA1(2d72dae86a191ccdac9648980aca832fb9886544) ) |
| 2662 | ||
| 2662 | ||
| 2663 | 2663 | ROM_REGION( 0x0800, "pals", 0 ) |
| 2664 | 2664 | ROM_LOAD( "mmipal20l8.ic3", 0x0000, 0x0800, NO_DUMP ) |
| 2665 | 2665 | ROM_END |
| r11489 | r11490 | |
| 2675 | 2675 | ROM_REGION( 0x40000, "gfx1", 0 ) |
| 2676 | 2676 | ROM_LOAD( "u10.ic10", 0x00000, 0x20000, CRC(4264056c) SHA1(d2d8a170ae0f361093a5384935238605a59e5938) ) |
| 2677 | 2677 | ROM_LOAD( "u09.ic9", 0x20000, 0x20000, CRC(3c115f8b) SHA1(8d518be01b7c4d6d993d5d9b62aab719a5c8baca) ) |
| 2678 | ||
| 2678 | ||
| 2679 | 2679 | ROM_REGION( 0x0800, "pals", 0 ) |
| 2680 | 2680 | ROM_LOAD( "mmipal20l8.ic3", 0x0000, 0x0800, NO_DUMP ) |
| 2681 | 2681 | ROM_END |
| r11489 | r11490 | |
|---|---|---|
| 215 | 215 | static MACHINE_START( m92 ) |
| 216 | 216 | { |
| 217 | 217 | m92_state *state = machine.driver_data<m92_state>(); |
| 218 | ||
| 218 | ||
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | static MACHINE_RESET( m92 ) |
| 222 | 222 | { |
| 223 | ||
| 223 | ||
| 224 | 224 | |
| 225 | 225 | state->m_sprite_buffer_busy = 1; |
| 226 | 226 | } |
| r11489 | r11490 | |
| 229 | 229 | |
| 230 | 230 | static TIMER_DEVICE_CALLBACK( m92_scanline_interrupt ) |
| 231 | 231 | { |
| 232 | ||
| 232 | ||
| 233 | 233 | m92_state *state = machine.driver_data<m92_state>(); |
| 234 | 234 | int scanline = param; |
| 235 | 235 | |
| r11489 | r11490 | |
| 2090 | 2090 | state->m_irq_vectorbase = 0x80; |
| 2091 | 2091 | } |
| 2092 | 2092 | |
| 2093 | /* TODO: figure out actual address map and other differences from real Irem h/w */ | |
| 2094 | /* Based on the size of the program ROMs, this board might have bankswitching */ | |
| 2095 | static DRIVER_INIT( ppan ) | |
| 2096 | { | |
| 2097 | m92_state *state = machine.driver_data<m92_state>(); | |
| 2098 | UINT8 *ROM = machine.region("maincpu")->base(); | |
| 2099 | ||
| 2100 | memory_set_bankptr(machine, "bank1", &ROM[0xa0000]); | |
| 2101 | ||
| 2102 | state->m_game_kludge = 0; | |
| 2103 | state->m_irq_vectorbase = 0x80; | |
| 2104 | ||
| 2105 | /* NOP out the sound comms */ | |
| 2106 | machine.device("maincpu")->memory().space(AS_IO)->nop_write(0x00, 0x01); | |
| 2107 | machine.device("maincpu")->memory().space(AS_IO)->nop_write(0xc0, 0xc1); | |
| 2108 | } | |
| 2109 | ||
| 2093 | 2110 | /***************************************************************************/ |
| 2094 | 2111 | |
| 2095 | 2112 | GAME( 1991, gunforce, 0, gunforce, gunforce, m92, ROT0, "Irem", "Gunforce - Battle Fire Engulfed Terror Island (World)", GAME_SUPPORTS_SAVE ) |
| r11489 | r11490 | |
| 2115 | 2132 | GAME( 1992, hook, 0, hook, hook, m92, ROT0, "Irem", "Hook (World)", GAME_SUPPORTS_SAVE ) |
| 2116 | 2133 | GAME( 1992, hooku, hook, hook, hook, m92, ROT0, "Irem America", "Hook (US)", GAME_SUPPORTS_SAVE ) |
| 2117 | 2134 | GAME( 1992, hookj, hook, hook, hook, m92, ROT0, "Irem", "Hook (Japan)", GAME_SUPPORTS_SAVE ) |
| 2118 | GAME( 1992, ppan, hook, ppan, hook, | |
| 2135 | GAME( 1992, ppan, hook, ppan, hook, ppan, | |
| 2119 | 2136 | GAME( 1992, rtypeleo, 0, rtypeleo, rtypeleo, m92_alt, ROT0, "Irem", "R-Type Leo (World)", GAME_SUPPORTS_SAVE ) |
| 2120 | 2137 | GAME( 1992, rtypeleoj,rtypeleo, rtypeleo, rtypeleo, m92_alt, ROT0, "Irem", "R-Type Leo (Japan)", GAME_SUPPORTS_SAVE ) |
| 2121 | 2138 | GAME( 1993, inthunt, 0, inthunt, inthunt, m92, ROT0, "Irem", "In The Hunt (World)", GAME_SUPPORTS_SAVE ) |
| r0 | r11490 | |
|---|---|---|
| 1 | /**************************************************************************************** | |
| 2 | Super Wing - (c) 1985 Wing (UPL?) | |
| 3 | ||
| 4 | driver by Tomasz Slanina | |
| 5 | ||
| 6 | Hardware a bit (interrupts, sound) similar to mouser | |
| 7 | ||
| 8 | TODO: | |
| 9 | ||
| 10 | - unused rom 6.8s (located on the pcb near the gfx rom 7.8p, but contains | |
| 11 | data (similar to the one in roms 4.5p and 5.5r). | |
| 12 | There are two possibilities: its bad dump of gfx rom (two extra bit layers | |
| 13 | of current gfx) or it's banked at 0x4000 - 0x7fff area. | |
| 14 | - missing color prom dump (missing on pcb) | |
| 15 | - some unknown DSW and inputs | |
| 16 | - unknown writes | |
| 17 | - tile and sprite flipping (both h and v controlled by the same bit?) | |
| 18 | - sprite coords and tile num (is the >>2 correct ?) (name entry, flipped screen) | |
| 19 | - measure clocks | |
| 20 | ||
| 21 | To enter initials - use tilt. It's probably separate button (?), not a tilt sensor. | |
| 22 | ||
| 23 | *****************************************************************************************/ | |
| 24 | ||
| 25 | #include "emu.h" | |
| 26 | #include "cpu/z80/z80.h" | |
| 27 | #include "sound/ay8910.h" | |
| 28 | ||
| 29 | #define MASTER_CLOCK XTAL_18_432MHz | |
| 30 | ||
| 31 | class superwng_state : public driver_device | |
| 32 | { | |
| 33 | public: | |
| 34 | superwng_state(const machine_config &mconfig, device_type type, const char *tag) | |
| 35 | : driver_device(mconfig, type, tag) { } | |
| 36 | ||
| 37 | UINT8 * m_videoram_bg; | |
| 38 | UINT8 * m_colorram_bg; | |
| 39 | UINT8 * m_videoram_fg; | |
| 40 | UINT8 * m_colorram_fg; | |
| 41 | ||
| 42 | int m_tile_bank; | |
| 43 | ||
| 44 | UINT8 m_sound_byte; | |
| 45 | UINT8 m_nmi_enable; | |
| 46 | ||
| 47 | device_t * m_maincpu; | |
| 48 | device_t * m_audiocpu; | |
| 49 | ||
| 50 | tilemap_t * m_bg_tilemap; | |
| 51 | tilemap_t * m_fg_tilemap; | |
| 52 | ||
| 53 | }; | |
| 54 | ||
| 55 | static TILE_GET_INFO( get_bg_tile_info ) | |
| 56 | { | |
| 57 | superwng_state *state = machine.driver_data<superwng_state>(); | |
| 58 | int code = state->m_videoram_bg[tile_index]; | |
| 59 | int attr = state->m_colorram_bg[tile_index]; | |
| 60 | ||
| 61 | code= (code&0x7f) | ((attr&0x40)<<1) | ((code&0x80)<<1); | |
| 62 | code|=state->m_tile_bank?0x200:0; | |
| 63 | ||
| 64 | int flipx=(attr&0x80) ? TILE_FLIPX : 0; | |
| 65 | int flipy=(attr&0x80) ? TILE_FLIPY : 0; | |
| 66 | ||
| 67 | SET_TILE_INFO( 0, code, attr & 0xf, flipx|flipy); | |
| 68 | } | |
| 69 | ||
| 70 | static TILE_GET_INFO( get_fg_tile_info ) | |
| 71 | { | |
| 72 | superwng_state *state = machine.driver_data<superwng_state>(); | |
| 73 | int code = state->m_videoram_fg[tile_index]; | |
| 74 | int attr = state->m_colorram_fg[tile_index]; | |
| 75 | ||
| 76 | code= (code&0x7f) | ((attr&0x40)<<1) | ((code&0x80)<<1); | |
| 77 | ||
| 78 | code|=state->m_tile_bank?0x200:0; | |
| 79 | ||
| 80 | int flipx=(attr&0x80) ? TILE_FLIPX : 0; | |
| 81 | int flipy=(attr&0x80) ? TILE_FLIPY : 0; | |
| 82 | ||
| 83 | SET_TILE_INFO( 0, code, attr & 0xf, flipx|flipy); | |
| 84 | } | |
| 85 | ||
| 86 | WRITE8_HANDLER( superwng_flip_screen_x_w ) | |
| 87 | { | |
| 88 | flip_screen_x_set(space->machine(), ~data & 1); | |
| 89 | } | |
| 90 | ||
| 91 | WRITE8_HANDLER( superwng_flip_screen_y_w ) | |
| 92 | { | |
| 93 | flip_screen_y_set(space->machine(), ~data & 1); | |
| 94 | } | |
| 95 | ||
| 96 | static VIDEO_START( superwng ) | |
| 97 | { | |
| 98 | superwng_state *state = machine.driver_data<superwng_state>(); | |
| 99 | state->m_bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 100 | state->m_fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows, 8, 8, 32, 32); | |
| 101 | ||
| 102 | tilemap_set_scrollx(state->m_bg_tilemap, 0, 64); | |
| 103 | } | |
| 104 | ||
| 105 | static SCREEN_UPDATE( superwng ) | |
| 106 | { | |
| 107 | superwng_state *state = screen->machine().driver_data<superwng_state>(); | |
| 108 | int flip=flip_screen_get(screen->machine()); | |
| 109 | ||
| 110 | tilemap_draw(bitmap, cliprect, state->m_bg_tilemap, 0, 0); | |
| 111 | rectangle tmp=*cliprect; | |
| 112 | ||
| 113 | if(flip) | |
| 114 | { | |
| 115 | tmp.min_x+=32; | |
| 116 | tilemap_draw(bitmap, &tmp, state->m_fg_tilemap, 0, 0); | |
| 117 | } | |
| 118 | else | |
| 119 | { | |
| 120 | tmp.max_x-=32; | |
| 121 | tilemap_draw(bitmap, &tmp, state->m_fg_tilemap, 0, 0); | |
| 122 | } | |
| 123 | ||
| 124 | { | |
| 125 | //sprites | |
| 126 | ||
| 127 | for(int i=0x3e; i>=0; i-=2) | |
| 128 | { | |
| 129 | int code=(state->m_videoram_bg[i]>>2)+0x40; | |
| 130 | int sx=256-state->m_videoram_bg[i+1]-8; | |
| 131 | int sy = state->m_colorram_bg[i]+8; | |
| 132 | int attr = state->m_colorram_bg[i+1]; | |
| 133 | ||
| 134 | if (flip) | |
| 135 | { | |
| 136 | sy-=8; | |
| 137 | sx-=8; | |
| 138 | } | |
| 139 | ||
| 140 | if(state->m_videoram_bg[i+1] | state->m_colorram_bg[i]) | |
| 141 | { | |
| 142 | ||
| 143 | drawgfx_transpen(bitmap, cliprect,screen->machine().gfx[1], | |
| 144 | code, | |
| 145 | attr, | |
| 146 | flip, flip, | |
| 147 | sx, sy, 0); | |
| 148 | } | |
| 149 | } | |
| 150 | } | |
| 151 | ||
| 152 | return 0; | |
| 153 | } | |
| 154 | ||
| 155 | ||
| 156 | static const UINT8 superwng_colors[]= /* temporary */ | |
| 157 | { | |
| 158 | 0x00, 0xc4, 0xff, 0x87, 0x00, 0xb0, 0xff, 0x2f, 0x00, 0x07, 0xff, 0xe0, 0x00, 0x86, 0xff, 0xc6, | |
| 159 | 0x00, 0x07, 0x3f, 0xff, 0x00, 0xb0, 0x38, 0x27, 0x00, 0x20, 0xff, 0x27, 0x00, 0xa4, 0xff, 0x87, | |
| 160 | 0x00, 0x58, 0xa8, 0x27, 0x00, 0x38, 0x3f, 0x27, 0x00, 0x80, 0xe4, 0x38, 0x00, 0x87, 0xff, 0x07, | |
| 161 | 0x00, 0xc0, 0x07, 0x3f, 0x00, 0x1f, 0x3f, 0xff, 0x00, 0x86, 0x05, 0xff, 0x00, 0xc0, 0xe8, 0xff | |
| 162 | }; | |
| 163 | ||
| 164 | PALETTE_INIT( superwng ) | |
| 165 | { | |
| 166 | int i; | |
| 167 | const UINT8 * ptr=superwng_colors; | |
| 168 | ||
| 169 | for (i = 0; i < machine.total_colors(); i++) | |
| 170 | { | |
| 171 | int bit0, bit1, bit2, r, g, b; | |
| 172 | ||
| 173 | bit0 = BIT(*ptr, 0); | |
| 174 | bit1 = BIT(*ptr, 1); | |
| 175 | bit2 = BIT(*ptr, 2); | |
| 176 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 177 | ||
| 178 | bit0 = BIT(*ptr, 3); | |
| 179 | bit1 = BIT(*ptr, 4); | |
| 180 | bit2 = BIT(*ptr, 5); | |
| 181 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 182 | ||
| 183 | bit0 = BIT(*ptr, 6); | |
| 184 | bit1 = BIT(*ptr, 7); | |
| 185 | b = 0x4f * bit0 + 0xa8 * bit1; | |
| 186 | ||
| 187 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 188 | ++ptr; | |
| 189 | } | |
| 190 | } | |
| 191 | ||
| 192 | static WRITE8_HANDLER( superwng_nmi_enable_w ) | |
| 193 | { | |
| 194 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 195 | state->m_nmi_enable = data; | |
| 196 | } | |
| 197 | ||
| 198 | static INTERRUPT_GEN( superwng_nmi_interrupt ) | |
| 199 | { | |
| 200 | superwng_state *state = device->machine().driver_data<superwng_state>(); | |
| 201 | ||
| 202 | if (BIT(state->m_nmi_enable, 0)) | |
| 203 | nmi_line_pulse(device); | |
| 204 | } | |
| 205 | ||
| 206 | static WRITE8_HANDLER( superwng_sound_interrupt_w ) | |
| 207 | { | |
| 208 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 209 | state->m_sound_byte = data; | |
| 210 | device_set_input_line(state->m_audiocpu, 0, ASSERT_LINE); | |
| 211 | } | |
| 212 | ||
| 213 | static READ8_DEVICE_HANDLER( superwng_sound_byte_r ) | |
| 214 | { | |
| 215 | superwng_state *state = device->machine().driver_data<superwng_state>(); | |
| 216 | device_set_input_line(state->m_audiocpu, 0, CLEAR_LINE); | |
| 217 | return state->m_sound_byte; | |
| 218 | } | |
| 219 | ||
| 220 | static WRITE8_HANDLER( superwng_sound_nmi_clear_w ) | |
| 221 | { | |
| 222 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 223 | device_set_input_line(state->m_audiocpu, INPUT_LINE_NMI, CLEAR_LINE); | |
| 224 | } | |
| 225 | ||
| 226 | static INTERRUPT_GEN( superwng_sound_nmi_assert ) | |
| 227 | { | |
| 228 | superwng_state *state = device->machine().driver_data<superwng_state>(); | |
| 229 | if (BIT(state->m_nmi_enable, 0)) | |
| 230 | device_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE); | |
| 231 | } | |
| 232 | ||
| 233 | static WRITE8_HANDLER(superwng_bg_vram_w) | |
| 234 | { | |
| 235 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 236 | state->m_videoram_bg[offset] = data; | |
| 237 | tilemap_mark_tile_dirty(state->m_bg_tilemap, offset); | |
| 238 | } | |
| 239 | ||
| 240 | static WRITE8_HANDLER(superwng_bg_cram_w) | |
| 241 | { | |
| 242 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 243 | state->m_colorram_bg[offset] = data; | |
| 244 | tilemap_mark_tile_dirty(state->m_bg_tilemap, offset); | |
| 245 | } | |
| 246 | ||
| 247 | static WRITE8_HANDLER(superwng_fg_vram_w) | |
| 248 | { | |
| 249 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 250 | state->m_videoram_fg[offset] = data; | |
| 251 | tilemap_mark_tile_dirty(state->m_fg_tilemap, offset); | |
| 252 | } | |
| 253 | ||
| 254 | static WRITE8_HANDLER(superwng_fg_cram_w) | |
| 255 | { | |
| 256 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 257 | state->m_colorram_fg[offset] = data; | |
| 258 | tilemap_mark_tile_dirty(state->m_fg_tilemap, offset); | |
| 259 | } | |
| 260 | ||
| 261 | static WRITE8_HANDLER(superwng_tilebank_w) | |
| 262 | { | |
| 263 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 264 | state->m_tile_bank = data; | |
| 265 | tilemap_mark_all_tiles_dirty(state->m_bg_tilemap); | |
| 266 | tilemap_mark_all_tiles_dirty(state->m_fg_tilemap); | |
| 267 | } | |
| 268 | ||
| 269 | static WRITE8_HANDLER( superwng_flip_screen_w ) | |
| 270 | { | |
| 271 | superwng_state *state = space->machine().driver_data<superwng_state>(); | |
| 272 | flip_screen_set(space->machine(), ~data & 0x01); | |
| 273 | tilemap_mark_all_tiles_dirty(state->m_bg_tilemap); | |
| 274 | tilemap_mark_all_tiles_dirty(state->m_fg_tilemap); | |
| 275 | } | |
| 276 | ||
| 277 | static WRITE8_HANDLER(superwng_cointcnt1_w) | |
| 278 | { | |
| 279 | coin_counter_w(space->machine(), 0, data); | |
| 280 | } | |
| 281 | ||
| 282 | static WRITE8_HANDLER(superwng_cointcnt2_w) | |
| 283 | { | |
| 284 | coin_counter_w(space->machine(), 1, data); | |
| 285 | } | |
| 286 | ||
| 287 | static ADDRESS_MAP_START( superwng_map, AS_PROGRAM, 8 ) | |
| 288 | AM_RANGE(0x0000, 0x6fff) AM_ROM | |
| 289 | AM_RANGE(0x7000, 0x7fff) AM_RAM | |
| 290 | AM_RANGE(0x8000, 0x83ff) AM_RAM_WRITE(superwng_bg_vram_w) AM_BASE_MEMBER(superwng_state, m_videoram_bg) | |
| 291 | AM_RANGE(0x8400, 0x87ff) AM_RAM_WRITE(superwng_fg_vram_w) AM_BASE_MEMBER(superwng_state, m_videoram_fg) | |
| 292 | AM_RANGE(0x8800, 0x8bff) AM_RAM_WRITE(superwng_bg_cram_w) AM_BASE_MEMBER(superwng_state, m_colorram_bg) | |
| 293 | AM_RANGE(0x8c00, 0x8fff) AM_RAM_WRITE(superwng_fg_cram_w) AM_BASE_MEMBER(superwng_state, m_colorram_fg) | |
| 294 | AM_RANGE(0x9800, 0x99ff) AM_RAM //collision map | |
| 295 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("P1") | |
| 296 | AM_RANGE(0xa000, 0xa000) AM_WRITENOP //unknown | |
| 297 | AM_RANGE(0xa080, 0xa080) AM_READ_PORT("P2") | |
| 298 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("DSW1") | |
| 299 | AM_RANGE(0xa100, 0xa100) AM_WRITE(superwng_sound_interrupt_w) | |
| 300 | AM_RANGE(0xa180, 0xa180) AM_READ_PORT("DSW2") | |
| 301 | AM_RANGE(0xa180, 0xa180) AM_WRITENOP //watchdog ? int ack ? | |
| 302 | AM_RANGE(0xa181, 0xa181) AM_WRITE(superwng_nmi_enable_w) | |
| 303 | AM_RANGE(0xa182, 0xa182) AM_WRITE(superwng_tilebank_w) | |
| 304 | AM_RANGE(0xa183, 0xa183) AM_WRITE(superwng_flip_screen_w) | |
| 305 | AM_RANGE(0xa184, 0xa184) AM_WRITE(superwng_cointcnt1_w) | |
| 306 | AM_RANGE(0xa185, 0xa185) AM_WRITENOP //unknown , always(?) 0 | |
| 307 | AM_RANGE(0xa186, 0xa186) AM_WRITE(superwng_cointcnt2_w) | |
| 308 | AM_RANGE(0xa187, 0xa187) AM_WRITENOP //unknown , always(?) 0 | |
| 309 | ADDRESS_MAP_END | |
| 310 | ||
| 311 | static ADDRESS_MAP_START( superwng_sound_map, AS_PROGRAM, 8 ) | |
| 312 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 313 | AM_RANGE(0x2000, 0x23ff) AM_RAM | |
| 314 | AM_RANGE(0x3000, 0x3000) AM_WRITE(superwng_sound_nmi_clear_w) | |
| 315 | AM_RANGE(0x4000, 0x4000) AM_DEVREADWRITE("ay1", ay8910_r, ay8910_data_w) | |
| 316 | AM_RANGE(0x5000, 0x5000) AM_DEVWRITE("ay1", ay8910_address_w) | |
| 317 | AM_RANGE(0x6000, 0x6000) AM_DEVREADWRITE("ay2", ay8910_r, ay8910_data_w) | |
| 318 | AM_RANGE(0x7000, 0x7000) AM_DEVWRITE("ay2", ay8910_address_w) | |
| 319 | ADDRESS_MAP_END | |
| 320 | ||
| 321 | static INPUT_PORTS_START( superwng ) | |
| 322 | PORT_START("P1") | |
| 323 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME( "Launch Ball" ) | |
| 324 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Right Flipper" ) | |
| 325 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME( "Left Flipper" ) | |
| 326 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 327 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 328 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) | |
| 329 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 330 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 331 | ||
| 332 | PORT_START("P2") | |
| 333 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME( "Launch Ball" ) PORT_COCKTAIL | |
| 334 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Right Flipper" ) PORT_COCKTAIL | |
| 335 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME( "Left Flipper" ) PORT_COCKTAIL | |
| 336 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_TILT ) | |
| 337 | PORT_BIT( 0x70, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 338 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 339 | ||
| 340 | PORT_START("DSW1") | |
| 341 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown )) | |
| 342 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 343 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 344 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown )) | |
| 345 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 346 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 347 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown )) | |
| 348 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 349 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 350 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 351 | PORT_DIPSETTING( 0x00, DEF_STR( Upright )) | |
| 352 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail )) | |
| 353 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown )) | |
| 354 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 355 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 356 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown )) | |
| 357 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 358 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 359 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown )) | |
| 360 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 361 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 362 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Lives ) ) | |
| 363 | PORT_DIPSETTING( 0x00, "3" ) | |
| 364 | PORT_DIPSETTING( 0x80, "5" ) | |
| 365 | ||
| 366 | PORT_START("DSW2") | |
| 367 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) | |
| 368 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) | |
| 369 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) | |
| 370 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_5C ) ) | |
| 371 | PORT_DIPSETTING( 0x00, "1 Coin/10 Credits" ) | |
| 372 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Coin_B ) ) | |
| 373 | PORT_DIPSETTING( 0x0c, DEF_STR( 3C_1C ) ) | |
| 374 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 375 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_1C )) | |
| 376 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 377 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Unknown ) ) //causes writes to 0xa000 every frame | |
| 378 | PORT_DIPSETTING( 0x00, "0" ) | |
| 379 | PORT_DIPSETTING( 0x10, "1" ) | |
| 380 | PORT_DIPSETTING( 0x20, "2" ) | |
| 381 | PORT_DIPSETTING( 0x30, "3" ) | |
| 382 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown )) | |
| 383 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 384 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 385 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown )) | |
| 386 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 387 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 388 | INPUT_PORTS_END | |
| 389 | ||
| 390 | static const gfx_layout charlayout = | |
| 391 | { | |
| 392 | 8,8, | |
| 393 | RGN_FRAC(1,1), | |
| 394 | 2, | |
| 395 | { 0,4 }, | |
| 396 | {8*8+0,8*8+1,8*8+2,8*8+3,0,1,2,3}, | |
| 397 | {8*0, 8*1, 8*2, 8*3, 8*4, 8*5, 8*6, 8*7}, | |
| 398 | 16*8 | |
| 399 | }; | |
| 400 | ||
| 401 | static const gfx_layout spritelayout = | |
| 402 | { | |
| 403 | 16,16, | |
| 404 | RGN_FRAC(1,1), | |
| 405 | 2, | |
| 406 | { 0,4 }, | |
| 407 | {8*8+0,8*8+1,8*8+2,8*8+3,0,1,2,3, | |
| 408 | ||
| 409 | 16*8+8*8+0,16*8+8*8+1,16*8+8*8+2,16*8+8*8+3,16*8+0,16*8+1,16*8+2,16*8+3}, | |
| 410 | {8*0, 8*1, 8*2, 8*3, 8*4, 8*5, 8*6, 8*7, | |
| 411 | 16*8*2+8*0, 16*8*2+8*1, 16*8*2+8*2, 16*8*2+8*3, 16*8*2+8*4, 16*8*2+8*5, 16*8*2+8*6, 16*8*2+8*7, | |
| 412 | ||
| 413 | }, | |
| 414 | 16*8*4 | |
| 415 | }; | |
| 416 | ||
| 417 | static GFXDECODE_START( superwng ) | |
| 418 | GFXDECODE_ENTRY( "gfx1", 0x0000, charlayout, 0, 16 ) | |
| 419 | GFXDECODE_ENTRY( "gfx1", 0x0000, spritelayout, 0, 16 ) | |
| 420 | GFXDECODE_END | |
| 421 | ||
| 422 | static MACHINE_START( superwng ) | |
| 423 | { | |
| 424 | superwng_state *state = machine.driver_data<superwng_state>(); | |
| 425 | ||
| 426 | state->m_maincpu = machine.device("maincpu"); | |
| 427 | state->m_audiocpu = machine.device("audiocpu"); | |
| 428 | ||
| 429 | state->save_item(NAME(state->m_sound_byte)); | |
| 430 | state->save_item(NAME(state->m_nmi_enable)); | |
| 431 | } | |
| 432 | ||
| 433 | static MACHINE_RESET( superwng ) | |
| 434 | { | |
| 435 | superwng_state *state = machine.driver_data<superwng_state>(); | |
| 436 | ||
| 437 | state->m_sound_byte = 0; | |
| 438 | state->m_nmi_enable = 0; | |
| 439 | } | |
| 440 | ||
| 441 | static const ay8910_interface ay8910_config_1 = | |
| 442 | { | |
| 443 | AY8910_LEGACY_OUTPUT, | |
| 444 | AY8910_DEFAULT_LOADS, | |
| 445 | DEVCB_HANDLER(superwng_sound_byte_r), | |
| 446 | DEVCB_NULL, | |
| 447 | DEVCB_NULL, | |
| 448 | DEVCB_NULL | |
| 449 | }; | |
| 450 | ||
| 451 | static const ay8910_interface ay8910_config_2 = | |
| 452 | { | |
| 453 | AY8910_LEGACY_OUTPUT, | |
| 454 | AY8910_DEFAULT_LOADS, | |
| 455 | DEVCB_NULL, | |
| 456 | DEVCB_NULL, | |
| 457 | DEVCB_NULL, | |
| 458 | DEVCB_NULL | |
| 459 | }; | |
| 460 | ||
| 461 | static MACHINE_CONFIG_START( superwng, superwng_state ) | |
| 462 | ||
| 463 | /* basic machine hardware */ | |
| 464 | MCFG_CPU_ADD("maincpu", Z80, MASTER_CLOCK/4) | |
| 465 | MCFG_CPU_PROGRAM_MAP(superwng_map) | |
| 466 | MCFG_CPU_VBLANK_INT("screen", superwng_nmi_interrupt) | |
| 467 | ||
| 468 | MCFG_CPU_ADD("audiocpu", Z80, MASTER_CLOCK/4) | |
| 469 | MCFG_CPU_PROGRAM_MAP(superwng_sound_map) | |
| 470 | MCFG_CPU_PERIODIC_INT(superwng_sound_nmi_assert, 4*60) | |
| 471 | ||
| 472 | MCFG_MACHINE_START(superwng) | |
| 473 | MCFG_MACHINE_RESET(superwng) | |
| 474 | ||
| 475 | /* video hardware */ | |
| 476 | MCFG_SCREEN_ADD("screen", RASTER) | |
| 477 | MCFG_SCREEN_REFRESH_RATE(60) | |
| 478 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) | |
| 479 | MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 480 | MCFG_SCREEN_SIZE(32*8, 32*8) | |
| 481 | MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) | |
| 482 | ||
| 483 | MCFG_GFXDECODE(superwng) | |
| 484 | ||
| 485 | MCFG_PALETTE_LENGTH(0x40) | |
| 486 | MCFG_PALETTE_INIT(superwng) | |
| 487 | MCFG_VIDEO_START( superwng ) | |
| 488 | MCFG_SCREEN_UPDATE(superwng) | |
| 489 | ||
| 490 | MCFG_SPEAKER_STANDARD_MONO("mono") | |
| 491 | ||
| 492 | MCFG_SOUND_ADD("ay1", AY8910, MASTER_CLOCK/12) | |
| 493 | MCFG_SOUND_CONFIG(ay8910_config_1) | |
| 494 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 495 | ||
| 496 | MCFG_SOUND_ADD("ay2", AY8910, MASTER_CLOCK/12) | |
| 497 | MCFG_SOUND_CONFIG(ay8910_config_2) | |
| 498 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 499 | MACHINE_CONFIG_END | |
| 500 | ||
| 501 | ROM_START( superwng ) | |
| 502 | ROM_REGION( 0x20000, "maincpu", 0 ) | |
| 503 | ROM_LOAD( "2.5l", 0x0000, 0x2000, CRC(8d102f8d) SHA1(ff6d994273a2e493a68637822cd0b1a2f69fd054) ) | |
| 504 | ROM_LOAD( "3.5m", 0x2000, 0x2000, CRC(3b08bd19) SHA1(2020e2835df86a6a279bbf9d013a489f0e32a4bd) ) | |
| 505 | ROM_LOAD( "4.5p", 0x4000, 0x2000, CRC(6a49746d) SHA1(f5cd5eb77f60972a3897243f9ee3d61aac0878fc) ) | |
| 506 | ROM_LOAD( "5.5r", 0x6000, 0x2000, CRC(ebd23487) SHA1(16e8faf989aa80dbf9934450ec4ba642a6f88c63) ) | |
| 507 | ||
| 508 | ROM_LOAD( "6.8s", 0x10000, 0x4000, CRC(774433e0) SHA1(82b10d797581c14914bcce320f2aa5d3fb1fba33) ) /* unknown */ | |
| 509 | ||
| 510 | ROM_REGION( 0x10000, "audiocpu", 0 ) | |
| 511 | ROM_LOAD( "1.1a", 0x0000, 0x2000, CRC(a70aa39e) SHA1(b03de65d7bd020eb77495997128dce5ccbdbefac) ) | |
| 512 | ||
| 513 | ROM_REGION( 0x4000, "gfx1", 0 ) | |
| 514 | ROM_LOAD( "7.8p", 0x0000, 0x4000, CRC(b472603c) SHA1(96f477a47a5be3db1292fea4f5c91ab155013f74) ) | |
| 515 | ||
| 516 | ROM_REGION( 0x0040, "proms", 0 ) | |
| 517 | ROM_LOAD( "bprom.bin", 0x0000, 0x0040, NO_DUMP) | |
| 518 | ROM_END | |
| 519 | ||
| 520 | ||
| 521 | GAME( 1985, superwng, 0, superwng, superwng, 0, ROT90, "Wing", "Super Wing", GAME_WRONG_COLORS ) |
| r11489 | r11490 | |
|---|---|---|
| 5375 | 5375 | ROM_END |
| 5376 | 5376 | |
| 5377 | 5377 | /* Fruit Bonus 3G */ |
| 5378 | /* | |
| 5378 | /* | |
| 5379 | 5379 | |
| 5380 | 5380 | Version 1.0.1 roms need dumping. Board was reflashed (updated) to v1.0.3 |
| 5381 | 5381 |
| r11489 | r11490 | |
|---|---|---|
| 949 | 949 | AM_RANGE(0xea, 0xea) AM_WRITE(multfish_bank_w) // Fruit Cocktail 2 banking |
| 950 | 950 | AM_RANGE(0xec, 0xec) AM_WRITE(multfish_bank_w) // Crazy Monkey lottery banking |
| 951 | 951 | |
| 952 | AM_RANGE(0xf0, 0xf0) AM_WRITE(multfish_bank_w) // Gold Fish banking | |
| 952 | 953 | AM_RANGE(0xf1, 0xf1) AM_WRITE(multfish_rambank_w) |
| 953 | 954 | AM_RANGE(0xf3, 0xf3) AM_WRITE(multfish_f3_w) // from 00->01 at startup, irq enable maybe? |
| 954 | 955 | AM_RANGE(0xf4, 0xf4) AM_WRITE(multfish_dispenable_w) // display enable |
| r11489 | r11490 | |
| 1128 | 1129 | ROM_START( mfish_3 ) // 021124 |
| 1129 | 1130 | ROM_REGION( 0x40000, "maincpu", 0 ) |
| 1130 | 1131 | ROM_LOAD( "mf021124.rom", 0x00000, 0x40000, CRC(59fd16f5) SHA1(ea132f68e9c09c40369d4cc02c670ee6e26bdcbe) ) |
| 1131 | ||
| 1132 | ||
| 1132 | 1133 | ROM_REGION( 0x400000, "gfx", 0 ) |
| 1133 | 1134 | ROM_LOAD( "multi_fish.001", 0x000000, 0x80000, CRC(2f2a7367) SHA1(ce7ee9ca4f374ec61edc3b89d4752f0edb64a910) ) |
| 1134 | 1135 | ROM_LOAD( "multi_fish.002", 0x100000, 0x80000, CRC(606acd73) SHA1(ce5f7b1366dbb16d57fe4b7f395f08725e3cf756) ) |
| r11489 | r11490 | |
| 1203 | 1204 | |
| 1204 | 1205 | ROM_START( mfish_8 ) // 030522 |
| 1205 | 1206 | ROM_REGION( 0x40000, "maincpu", 0 ) |
| 1206 | ROM_LOAD( "mf030522.rom", 0x00000, 0x40000, | |
| 1207 | ROM_LOAD( "mf030522.rom", 0x00000, 0x40000, CRC( | |
| 1207 | 1208 | |
| 1208 | 1209 | ROM_REGION( 0x400000, "gfx", 0 ) |
| 1209 | 1210 | ROM_LOAD( "multi_fish.001", 0x000000, 0x80000, CRC(2f2a7367) SHA1(ce7ee9ca4f374ec61edc3b89d4752f0edb64a910) ) |
| r11489 | r11490 | |
| 1291 | 1292 | ROM_LOAD( "multi_fish.008", 0x380000, 0x80000, CRC(29f1a326) SHA1(5e268411cab888c0727aaf8ae7d0b435d2efd189) ) |
| 1292 | 1293 | ROM_END |
| 1293 | 1294 | |
| 1295 | ROM_START( mfish_14 ) // Gold Fish 020903 prototype of Multi Fish | |
| 1296 | ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked | |
| 1297 | ROM_LOAD( "gf_020903.rom", 0x00000, 0x40000, CRC(705304fc) SHA1(f02336066ba2ff394ac153107e308d5356e99eca) ) | |
| 1294 | 1298 | |
| 1299 | ROM_REGION( 0x400000, "gfx", 0 ) | |
| 1300 | ROM_LOAD( "multi_fish.001", 0x000000, 0x80000, CRC(2f2a7367) SHA1(ce7ee9ca4f374ec61edc3b89d4752f0edb64a910) ) | |
| 1301 | ROM_LOAD( "multi_fish.002", 0x100000, 0x80000, CRC(606acd73) SHA1(ce5f7b1366dbb16d57fe4b7f395f08725e3cf756) ) | |
| 1302 | ROM_LOAD( "multi_fish.003", 0x200000, 0x80000, CRC(33759c2a) SHA1(6afcee2e00a27542fc9751702abcc84cd7d3a2a8) ) | |
| 1303 | ROM_LOAD( "multi_fish.004", 0x300000, 0x80000, CRC(d0053546) SHA1(01c69be0c594947d57648f491904a3b6938a5570) ) | |
| 1304 | ROM_LOAD( "multi_fish.005", 0x080000, 0x80000, CRC(6f632872) SHA1(949661cb234855a9c86403e9893c5d9f465ddd79) ) | |
| 1305 | ROM_LOAD( "multi_fish.006", 0x180000, 0x80000, CRC(023c1193) SHA1(98cf2732f9542b0bb3bee324611f6d3143ef1dc4) ) | |
| 1306 | ROM_LOAD( "multi_fish.007", 0x280000, 0x80000, CRC(9afdc2d3) SHA1(b112fd2005354c9f97d77030bdb6f99d7b5c8050) ) | |
| 1307 | ROM_LOAD( "multi_fish.008", 0x380000, 0x80000, CRC(29f1a326) SHA1(5e268411cab888c0727aaf8ae7d0b435d2efd189) ) | |
| 1308 | ROM_END | |
| 1309 | ||
| 1310 | ||
| 1295 | 1311 | /********************************************************* |
| 1296 | 1312 | Crazy Monkey |
| 1297 | 1313 | |
| r11489 | r11490 | |
| 1597 | 1613 | ROM_START( fcockt_11 ) // 070822 |
| 1598 | 1614 | ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked |
| 1599 | 1615 | ROM_LOAD( "fc_070822.rom", 0x00000, 0x40000, CRC(f156657d) SHA1(bd538e714a87461bdf84df18ae3f8caeee876747) ) |
| 1600 | ||
| 1616 | ||
| 1601 | 1617 | ROM_REGION( 0x400000, "gfx", 0 ) |
| 1602 | 1618 | ROM_LOAD( "fruitcocktail.001", 0x000000, 0x80000, CRC(735FBE79) SHA1(6ab590e00043dcb6648fd942e11747486d497df1) ) /* Only this set is listed as official hashes */ |
| 1603 | 1619 | ROM_LOAD( "fruitcocktail.002", 0x100000, 0x80000, CRC(28fc888e) SHA1(2b8c55675bf61203682d560c9b3f29568719113f) ) |
| r11489 | r11490 | |
| 1753 | 1769 | ROM_LOAD( "luckyhaunter_m.008", 0x380000, 0x80000, CRC(1bdf6252) SHA1(7b5ae82a95a744b236e109024d47b526dccf9c14) ) |
| 1754 | 1770 | ROM_END |
| 1755 | 1771 | |
| 1756 | ||
| 1772 | ||
| 1757 | 1773 | /********************************************************* |
| 1758 | 1774 | Garage |
| 1759 | ||
| 1775 | ||
| 1760 | 1776 | "Russia" sets use different gfx roms 1-4. |
| 1761 | 1777 | The official list of hashes shows only updated roms. |
| 1762 | 1778 | |
| r11489 | r11490 | |
| 2183 | 2199 | ROM_LOAD( "island.008", 0x380000, 0x80000, CRC(ac6fba48) SHA1(64dd03d624f16da52bc7fa0702246e91ae39a806) ) |
| 2184 | 2200 | ROM_END |
| 2185 | 2201 | |
| 2186 | ||
| 2202 | ||
| 2187 | 2203 | /********************************************************* |
| 2188 | 2204 | Island 2 |
| 2189 | 2205 | **********************************************************/ |
| r11489 | r11490 | |
| 2541 | 2557 | //GAME( 2002, mfish_5, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (021227)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2542 | 2558 | GAME( 2002, mfish_6, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (030124)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2543 | 2559 | //GAME( 2002, mfish_7, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (030511)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2544 | ||
| 2560 | GAME( 2002, mfish_8, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (030522)", GAME_SUPPORTS_SAVE ) /* World */ | |
| 2545 | 2561 | //GAME( 2002, mfish_9, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (031026)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2546 | 2562 | //GAME( 2002, mfish_10, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (031117)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2547 | 2563 | GAME( 2002, mfish_11, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (031124)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2548 | 2564 | GAME( 2002, mfish_12, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (040308)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2549 | 2565 | GAME( 2002, mfish_13, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Multi Fish (040316)", GAME_SUPPORTS_SAVE ) /* World */ |
| 2566 | GAME( 2002, mfish_14, mfish_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Gold Fish (020903, prototype)", GAME_SUPPORTS_SAVE ) /* World */ | |
| 2550 | 2567 | |
| 2551 | 2568 | #define crzmon_parent crzmon_5 |
| 2552 | 2569 | //GAME( 2003, crzmon, crzmon_parent, multfish, multfish, 0, ROT0, "Igrosoft", "Crazy Monkey (030217 World)", GAME_SUPPORTS_SAVE ) /* World */ |
| r11489 | r11490 | |
| 4294 | 4311 | GAME( 2007, gnomee, gnome_parent, multfish, multfish, customl, ROT0, "bootleg", "Gnome (bootleg, 070906, LOTOS GN01)", GAME_SUPPORTS_SAVE ) // custom alteras, modified graphics, bank F9, many texts changed, changed version text to "LOTOS GN01" |
| 4295 | 4312 | GAME( 2007, gnome_2a, gnome_parent, multfish, multfish, 0, ROT0, "bootleg", "Gnome (bootleg, 071115, banking address hack)", GAME_SUPPORTS_SAVE ) // bank F9 |
| 4296 | 4313 | GAME( 2007, gnome_3a, gnome_parent, multfish, multfish, 0, ROT0, "bootleg", "Gnome (bootleg, 080303, banking address hack)", GAME_SUPPORTS_SAVE ) // bank F9 |
| 4297 | //GAME( 2007, gnome_3b, gnome_parent, multfish, multfish, 0, ROT0, "bootleg", "Gnome (bootleg, 080303, banking address hack, payout percentage 45)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 45% | |
| 4298 | //GAME( 2007, gnome_3c, gnome_parent, multfish, multfish, 0, ROT0, "bootleg", "Gnome (bootleg, 080303, banking address hack, payout percentage 60)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 60% | |
| 4314 | GAME( 2007, gnome_3b, gnome_parent, multfish, multfish, 0, ROT0, "bootleg", "Gnome (bootleg, 080303, banking address hack, payout percentage 45)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 45% | |
| 4315 | GAME( 2007, gnome_3c, gnome_parent, multfish, multfish, 0, ROT0, "bootleg", "Gnome (bootleg, 080303, banking address hack, payout percentage 60)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 60% | |
| 4299 | 4316 | |
| 4300 | //GAME( 2007, sweetl2_2a, sweetl2_parent, multfish, multfish, 0, ROT0, "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 1)", GAME_SUPPORTS_SAVE ) // bank F9 | |
| 4301 | //GAME( 2007, sweetl2_2b, sweetl2_parent, multfish, multfish, 0, ROT0, "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 2)", GAME_SUPPORTS_SAVE ) // bank F9, some fixes | |
| 4317 | GAME( 2007, sweetl2_2a, sweetl2_parent, multfish, multfish, 0, ROT0, "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 1)", GAME_SUPPORTS_SAVE ) // bank F9 | |
| 4318 | GAME( 2007, sweetl2_2b, sweetl2_parent, multfish, multfish, 0, ROT0, "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 2)", GAME_SUPPORTS_SAVE ) // bank F9, some fixes | |
| 4302 | 4319 | GAME( 2007, sweetl2_2c, sweetl2_parent, multfish, multfish, 0, ROT0, "bootleg", "Sweet Life 2 (bootleg, 080320, VIDEO GAME-1 MD01)", GAME_SUPPORTS_SAVE ) // modified graphics, bank F9, changed version text to "VIDEO GAME-1 MD01" |
| 4303 | 4320 | GAME( 2007, sweetl2_2d, sweetl2_parent, multfish, multfish, 0, ROT0, "bootleg", "Sweet Life 2 (bootleg, 080320, LOTTOGAME (I))", GAME_SUPPORTS_SAVE ) // bank F9, modified graphics, changed version text to "MDS_is_the_best_ LOTTOGAME (I)" |
| r11489 | r11490 | |
|---|---|---|
| 183 | 183 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P2 Block") PORT_PLAYER(2) |
| 184 | 184 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P2 High Kick") PORT_PLAYER(2) |
| 185 | 185 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 186 | ||
| 186 | ||
| 187 | 187 | PORT_START("IN1") |
| 188 | 188 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 189 | 189 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r11489 | r11490 | |
| 210 | 210 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P2 Low Kick") PORT_PLAYER(2) |
| 211 | 211 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("P2 Block 2") PORT_PLAYER(2) |
| 212 | 212 | PORT_BIT( 0xff80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 213 | ||
| 213 | ||
| 214 | 214 | /*Note-the real MK2 board has a special cable designed for SF2 cab conversions that has the 2 SF2 |
| 215 | 215 | Medium punch/kick buttons as block buttons for MK2. The secondary block button registers in test mode, |
| 216 | 216 | but does not have an indicator light show up. During gameplay, the second block only functions temporarily. |
| r11489 | r11490 | |
|---|---|---|
| 303 | 303 | *************************************/ |
| 304 | 304 | |
| 305 | 305 | /* |
| 306 | -x-- ---- ---- ---- trigger 1414M4 operation | |
| 307 | ---x ---- ---- ---- flip screen | |
| 308 | ---- x--- ---- ---- disable bg layer | |
| 309 | ---- -x-- ---- ---- disable fg layer | |
| 310 | ---- --x- ---- ---- disable sprite | |
| 311 | ---- ---x ---- ---- disable tx layer | |
| 312 | ---- ---- ---- --x- coin counter 1 | |
| 313 | ---- ---- ---- ---x coin counter 0 | |
| 306 | -x-- ---- ---- ---- trigger 1414M4 operation | |
| 307 | ---x ---- ---- ---- flip screen | |
| 308 | ---- x--- ---- ---- disable bg layer | |
| 309 | ---- -x-- ---- ---- disable fg layer | |
| 310 | ---- --x- ---- ---- disable sprite | |
| 311 | ---- ---x ---- ---- disable tx layer | |
| 312 | ---- ---- ---- --x- coin counter 1 | |
| 313 | ---- ---- ---- ---x coin counter 0 | |
| 314 | 314 | */ |
| 315 | 315 | |
| 316 | 316 | static WRITE16_HANDLER( terraf_io_w ) |
| r11489 | r11490 | |
| 405 | 405 | AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2") |
| 406 | 406 | AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1") |
| 407 | 407 | AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2") |
| 408 | // | |
| 408 | // AM_RANGE(0x07c000, 0x07c001) AM_WRITE(terraf_io_w) handled in DRIVER_INIT | |
| 409 | 409 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 410 | 410 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 411 | 411 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| r11489 | r11490 | |
| 416 | 416 | static ADDRESS_MAP_START( kozure_map, AS_PROGRAM, 16 ) |
| 417 | 417 | AM_RANGE(0x060000, 0x060fff) AM_RAM AM_BASE_SIZE_GENERIC(spriteram) |
| 418 | 418 | AM_RANGE(0x061000, 0x063fff) AM_RAM |
| 419 | // AM_RANGE(0x07c000, 0x07c001) AM_WRITE(kozure_io_w) | |
| 420 | // AM_RANGE(0x0c0000, 0x0c0001) AM_WRITENOP /* watchdog? */ | |
| 421 | // AM_RANGE(0xffd000, 0xffd001) AM_WRITENOP /* ? */ | |
| 419 | // AM_RANGE(0x07c000, 0x07c001) AM_WRITE(kozure_io_w) | |
| 420 | // AM_RANGE(0x0c0000, 0x0c0001) AM_WRITENOP /* watchdog? */ | |
| 421 | // AM_RANGE(0xffd000, 0xffd001) AM_WRITENOP /* ? */ | |
| 422 | 422 | AM_IMPORT_FROM( terraf_map ) |
| 423 | 423 | ADDRESS_MAP_END |
| 424 | 424 | |
| r11489 | r11490 | |
| 436 | 436 | AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2") |
| 437 | 437 | AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1") |
| 438 | 438 | AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2") |
| 439 | // | |
| 439 | // AM_RANGE(0x07c000, 0x07c001) AM_WRITE(io_w) | |
| 440 | 440 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 441 | 441 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 442 | 442 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| r11489 | r11490 | |
| 458 | 458 | AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2") |
| 459 | 459 | AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1") |
| 460 | 460 | AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2") |
| 461 | // | |
| 461 | // AM_RANGE(0x07c000, 0x07c001) AM_WRITE(legion_io_w) | |
| 462 | 462 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 463 | 463 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 464 | 464 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| r11489 | r11490 | |
| 492 | 492 | AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2") |
| 493 | 493 | AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1") |
| 494 | 494 | AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2") |
| 495 | // | |
| 495 | // AM_RANGE(0x07c000, 0x07c001) AM_WRITE(bootleg_io_w) | |
| 496 | 496 | AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w) |
| 497 | 497 | AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w) |
| 498 | 498 | AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w) |
| r11489 | r11490 | |
| 691 | 691 | AM_RANGE(0x08c002, 0x08c003) AM_READ_PORT("P2") |
| 692 | 692 | AM_RANGE(0x08c004, 0x08c005) AM_READ_PORT("DSW0") |
| 693 | 693 | AM_RANGE(0x08c006, 0x08c007) AM_READ_PORT("DSW1") |
| 694 | AM_RANGE(0x08d000, 0x08d001) AM_WRITE(terraf_io_w) | |
| 694 | AM_RANGE(0x08d000, 0x08d001) AM_WRITE(terraf_io_w) | |
| 695 | 695 | AM_RANGE(0x08d002, 0x08d003) AM_WRITE(armedf_bg_scrollx_w) |
| 696 | 696 | AM_RANGE(0x08d004, 0x08d005) AM_WRITE(armedf_bg_scrolly_w) |
| 697 | 697 | AM_RANGE(0x08d006, 0x08d007) AM_WRITE(armedf_fg_scrollx_w) |
| r11489 | r11490 | |
|---|---|---|
| 214 | 214 | bsktball_state *state = machine.driver_data<bsktball_state>(); |
| 215 | 215 | |
| 216 | 216 | state->save_item(NAME(state->m_nmi_on)); |
| 217 | // | |
| 217 | // state->save_item(NAME(state->m_i256v)); | |
| 218 | 218 | state->save_item(NAME(state->m_ld1)); |
| 219 | 219 | state->save_item(NAME(state->m_ld2)); |
| 220 | 220 | state->save_item(NAME(state->m_dir0)); |
| r11489 | r11490 | |
| 232 | 232 | bsktball_state *state = machine.driver_data<bsktball_state>(); |
| 233 | 233 | |
| 234 | 234 | state->m_nmi_on = 0; |
| 235 | // | |
| 235 | // state->m_i256v = 0; | |
| 236 | 236 | state->m_ld1 = 0; |
| 237 | 237 | state->m_ld2 = 0; |
| 238 | 238 | state->m_dir0 = 0; |
| r11489 | r11490 | |
|---|---|---|
| 213 | 213 | coin_counter_w(space->machine(), offset,data); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | static WRITE8_HANDLER( wiz_nmi_mask_w ) | |
| 217 | { | |
| 218 | wiz_state *state = space->machine().driver_data<wiz_state>(); | |
| 219 | ||
| 220 | state->m_nmi_mask = data & 1; | |
| 221 | } | |
| 222 | ||
| 216 | 223 | static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8 ) |
| 217 | 224 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 218 | 225 | AM_RANGE(0xc000, 0xc7ff) AM_RAM |
| r11489 | r11490 | |
| 220 | 227 | AM_RANGE(0xd000, 0xd3ff) AM_BASE_MEMBER(wiz_state, m_videoram2) /* Fallthrough */ |
| 221 | 228 | AM_RANGE(0xd400, 0xd7ff) AM_BASE_MEMBER(wiz_state, m_colorram2) |
| 222 | 229 | AM_RANGE(0xd800, 0xd83f) AM_BASE_MEMBER(wiz_state, m_attributesram2) |
| 223 | AM_RANGE(0xd840, 0xd85f) AM_BASE_MEMBER(wiz_state, m_spriteram2) AM_SIZE_MEMBER(wiz_state, m_spriteram) | |
| 230 | AM_RANGE(0xd840, 0xd85f) AM_BASE_MEMBER(wiz_state, m_spriteram2) AM_SIZE_MEMBER(wiz_state, m_spriteram_size) | |
| 224 | 231 | AM_RANGE(0xd000, 0xd85f) AM_RAM |
| 225 | 232 | AM_RANGE(0xe000, 0xe3ff) AM_BASE_MEMBER(wiz_state, m_videoram) /* Fallthrough */ |
| 226 | 233 | AM_RANGE(0xe400, 0xe7ff) AM_RAM |
| r11489 | r11490 | |
| 229 | 236 | AM_RANGE(0xe000, 0xe85f) AM_RAM |
| 230 | 237 | AM_RANGE(0xf000, 0xf000) AM_READ_PORT("DSW0") |
| 231 | 238 | AM_RANGE(0xf000, 0xf000) AM_RAM AM_BASE_MEMBER(wiz_state, m_sprite_bank) |
| 232 | AM_RANGE(0xf001, 0xf001) AM_WRITE(i | |
| 239 | AM_RANGE(0xf001, 0xf001) AM_WRITE(wiz | |
| 233 | 240 | AM_RANGE(0xf002, 0xf003) AM_WRITE(wiz_palettebank_w) |
| 234 | 241 | AM_RANGE(0xf004, 0xf005) AM_WRITE(wiz_char_bank_select_w) |
| 235 | 242 | AM_RANGE(0xf006, 0xf006) AM_WRITE(wiz_flipx_w) |
| r11489 | r11490 | |
| 680 | 687 | state->m_dsc0 = state->m_dsc1 = 1; |
| 681 | 688 | } |
| 682 | 689 | |
| 690 | static INTERRUPT_GEN( wiz_vblank_irq ) | |
| 691 | { | |
| 692 | wiz_state *state = device->machine().driver_data<wiz_state>(); | |
| 693 | ||
| 694 | if(state->m_nmi_mask & 1) | |
| 695 | device_set_input_line(device,INPUT_LINE_NMI,PULSE_LINE); | |
| 696 | } | |
| 697 | ||
| 683 | 698 | static MACHINE_CONFIG_START( wiz, wiz_state ) |
| 684 | 699 | |
| 685 | 700 | /* basic machine hardware */ |
| 686 | 701 | MCFG_CPU_ADD("maincpu", Z80, 18432000/6) /* 3.072 MHz ??? */ |
| 687 | 702 | MCFG_CPU_PROGRAM_MAP(main_map) |
| 688 | MCFG_CPU_VBLANK_INT("screen", | |
| 703 | MCFG_CPU_VBLANK_INT("screen", w | |
| 689 | 704 | |
| 690 | 705 | MCFG_CPU_ADD("audiocpu", Z80, 14318000/8) /* ? */ |
| 691 | 706 | MCFG_CPU_PROGRAM_MAP(sound_map) |
| r11489 | r11490 | |
|---|---|---|
| 68 | 68 | ROM_REGION( 0x8400000, "game", ROMREGION_ERASEFF) |
| 69 | 69 | ROM_LOAD("u2", 0x000000, 0x8400000, CRC(b9d815f9) SHA1(6b6f668b0bbb087ffac65e4f0d8bd9d5b28eeb28) ) |
| 70 | 70 | |
| 71 | ||
| 71 | ||
| 72 | 72 | ROM_LOAD("u23", 0x000000, 0x400000, CRC(39f1e1f4) SHA1(53d12f59a56df35c705408c76e6e02118da656f1) ) |
| 73 | ROM_LOAD("u24", 0x400000, 0x400000, CRC(c631a766) SHA1(8bb6934a2f5b8a9841c3dcf85192b1743773dd8b) ) | |
| 73 | ROM_LOAD("u24", 0x400000, 0x400000, CRC(c631a766) SHA1(8bb6934a2f5b8a9841c3dcf85192b1743773dd8b) ) | |
| 74 | 74 | ROM_END |
| 75 | 75 | |
| 76 | 76 | ROM_START( mushisam ) |
| r11489 | r11490 | |
| 80 | 80 | ROM_REGION( 0x8400000, "game", ROMREGION_ERASEFF) |
| 81 | 81 | ROM_LOAD("u2", 0x000000, 0x8400000, CRC(2cd13810) SHA1(40e45e201b60e63a060b68d4cc767eb64cfb99c2) ) |
| 82 | 82 | |
| 83 | ||
| 83 | ||
| 84 | 84 | ROM_LOAD("u23", 0x000000, 0x400000, CRC(138e2050) SHA1(9e86489a4e65af5efb5495adf6d4b3e01d5b2816) ) |
| 85 | ROM_LOAD("u24", 0x400000, 0x400000, CRC(e3d05c9f) SHA1(130c3d62317da1729c85bd178bd51500edd73ada) ) | |
| 85 | ROM_LOAD("u24", 0x400000, 0x400000, CRC(e3d05c9f) SHA1(130c3d62317da1729c85bd178bd51500edd73ada) ) | |
| 86 | 86 | ROM_END |
| 87 | 87 | |
| 88 | 88 | ROM_START( mushitam ) |
| r11489 | r11490 | |
| 92 | 92 | ROM_REGION( 0x8400000, "game", ROMREGION_ERASEFF) |
| 93 | 93 | ROM_LOAD("u2", 0x000000, 0x8400000, CRC(3f93ff82) SHA1(6f6c250aa7134016ffb288d056bc937ea311f538) ) |
| 94 | 94 | |
| 95 | ||
| 95 | ||
| 96 | 96 | ROM_LOAD("u23", 0x000000, 0x400000, CRC(701a912a) SHA1(85c198946fb693d99928ea2595c84ba4d9dc8157) ) |
| 97 | ROM_LOAD("u24", 0x400000, 0x400000, CRC(6feeb9a1) SHA1(992711c80e660c32f97b343c2ce8184fddd7364e) ) | |
| 97 | ROM_LOAD("u24", 0x400000, 0x400000, CRC(6feeb9a1) SHA1(992711c80e660c32f97b343c2ce8184fddd7364e) ) | |
| 98 | 98 | ROM_END |
| 99 | 99 | |
| 100 | 100 |
| r11489 | r11490 | |
|---|---|---|
| 228 | 228 | CONS( 1991, 3do, 0, 0, 3do, 3do, 0, "3DO", "3DO (NTSC)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| 229 | 229 | CONS( 1991, 3do_pal, 3do, 0, 3do_pal, 3do, 0, "3DO", "3DO (PAL)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| 230 | 230 | |
| 231 | //TODO: orbatak, Arcade prototype | |
| No newline at end of file | ||
| 231 | //TODO: orbatak, Arcade prototype |
| r11489 | r11490 | |
|---|---|---|
| 433 | 433 | AM_RANGE(0x900802, 0x900803) AM_READWRITE(cchip1_ctrl_r, cchip1_ctrl_w) |
| 434 | 434 | AM_RANGE(0x900c00, 0x900c01) AM_WRITE(cchip1_bank_w) |
| 435 | 435 | AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram) |
| 436 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 437 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 436 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 437 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 438 | 438 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 439 | 439 | AM_RANGE(0xf00000, 0xf03fff) AM_RAM /* Main RAM */ |
| 440 | 440 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 448 | 448 | AM_RANGE(0x800002, 0x800003) AM_DEVREADWRITE8("tc0140syt", tc0140syt_comm_r, tc0140syt_comm_w, 0x00ff) |
| 449 | 449 | AM_RANGE(0x900000, 0x90000f) AM_READWRITE(daisenpu_input_r, daisenpu_input_w) |
| 450 | 450 | AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram) |
| 451 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 452 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 451 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 452 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 453 | 453 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 454 | 454 | AM_RANGE(0xf00000, 0xf03fff) AM_RAM /* Main RAM */ |
| 455 | 455 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 463 | 463 | AM_RANGE(0x800002, 0x800003) AM_DEVREADWRITE8("tc0140syt", tc0140syt_comm_r, tc0140syt_comm_w, 0x00ff) |
| 464 | 464 | AM_RANGE(0x900000, 0x90000f) AM_READWRITE(daisenpu_input_r, daisenpu_input_w) |
| 465 | 465 | AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram) |
| 466 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 467 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 466 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 467 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 468 | 468 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 469 | 469 | AM_RANGE(0xf00000, 0xf03fff) AM_RAM /* Main RAM */ |
| 470 | 470 | ADDRESS_MAP_END |
| r11489 | r11490 | |
| 478 | 478 | AM_RANGE(0x800002, 0x800003) AM_DEVREADWRITE8("tc0140syt", tc0140syt_comm_r, tc0140syt_comm_w, 0x00ff) |
| 479 | 479 | AM_RANGE(0x900000, 0x90000f) AM_READWRITE(daisenpu_input_r, daisenpu_input_w) |
| 480 | 480 | AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram) |
| 481 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 482 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 481 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y | |
| 482 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 483 | 483 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 484 | 484 | AM_RANGE(0xf00000, 0xf03fff) AM_RAM /* Main RAM */ |
| 485 | 485 | ADDRESS_MAP_END |
| r11489 | r11490 | |
|---|---|---|
| 396 | 396 | AM_RANGE(0x0c0000, 0x0c3fff) AM_RAM AM_SHARE("nvram") |
| 397 | 397 | AM_RANGE(0x140000, 0x143fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) /* Sprites Code + X + Attr */ |
| 398 | 398 | AM_RANGE(0x180000, 0x1805ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) /* Sprites Y */ |
| 399 | AM_RANGE(0x180600, 0x180607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 399 | AM_RANGE(0x180600, 0x180607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 400 | 400 | AM_RANGE(0x1c0000, 0x1c0001) AM_WRITENOP /* ??? */ |
| 401 | 401 | AM_RANGE(0x800000, 0x800001) AM_WRITE(srmp2_flags_w) /* ADPCM bank, Color bank, etc. */ |
| 402 | 402 | AM_RANGE(0x900000, 0x900001) AM_READ_PORT("SYSTEM") /* Coinage */ |
| r11489 | r11490 | |
| 444 | 444 | AM_RANGE(0xb00000, 0xb00003) AM_DEVWRITE8("aysnd", ay8910_address_data_w, 0x00ff) |
| 445 | 445 | AM_RANGE(0xc00000, 0xc00001) AM_WRITENOP /* ??? */ |
| 446 | 446 | AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) /* Sprites Y */ |
| 447 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 447 | AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16) | |
| 448 | 448 | |
| 449 | 449 | AM_RANGE(0xd02000, 0xd023ff) AM_RAM /* ??? only writes $00fa */ |
| 450 | 450 | AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16) /* Sprites Code + X + Attr */ |
| r11489 | r11490 | |
| 477 | 477 | AM_RANGE(0xa000, 0xa7ff) AM_RAM AM_SHARE("nvram") /* work ram */ |
| 478 | 478 | AM_RANGE(0xa800, 0xa800) AM_WRITENOP /* flag ? */ |
| 479 | 479 | AM_RANGE(0xb000, 0xb2ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r8, spriteylow_w8) |
| 480 | AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8) | |
| 480 | AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8) | |
| 481 | 481 | AM_RANGE(0xb800, 0xb800) AM_WRITENOP /* flag ? */ |
| 482 | 482 | AM_RANGE(0xc000, 0xdfff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodelow_r8, spritecodelow_w8) /* Sprites Code + X + Attr */ |
| 483 | 483 | AM_RANGE(0xe000, 0xffff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodehigh_r8, spritecodehigh_w8) |
| r11489 | r11490 | |
| 501 | 501 | AM_RANGE(0x8000, 0x9fff) AM_ROMBANK("bank1") /* rom bank */ |
| 502 | 502 | AM_RANGE(0xa000, 0xafff) AM_RAM AM_SHARE("nvram") /* work ram */ |
| 503 | 503 | AM_RANGE(0xb000, 0xb2ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r8, spriteylow_w8) |
| 504 | AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8) | |
| 504 | AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8) | |
| 505 | 505 | AM_RANGE(0xb800, 0xb800) AM_WRITENOP /* flag ? */ |
| 506 | 506 | AM_RANGE(0xc000, 0xdfff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodelow_r8, spritecodelow_w8) /* Sprites Code + X + Attr */ |
| 507 | 507 | AM_RANGE(0xe000, 0xffff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodehigh_r8, spritecodehigh_w8) |
| r11489 | r11490 | |
|---|---|---|
| 76 | 76 | |
| 77 | 77 | Notes: |
| 78 | 78 | - Simpsons Bowling and Dead Eye use a GV999 with a daughtercard containing flash ROMs and CPLDs: |
| 79 | PWB402610 | |
| 80 | Xilinx XC3020A | |
| 81 | Xilinx 1718DPC | |
| 82 | 74F244N (2 of these) | |
| 83 | LVT245SS (2 of theses) | |
| 84 | ||
| 79 | PWB402610 | |
| 80 | Xilinx XC3020A | |
| 81 | Xilinx 1718DPC | |
| 82 | 74F244N (2 of these) | |
| 83 | LVT245SS (2 of theses) | |
| 84 | ||
| 85 | 85 | - 000180 is used for driving the RGB output. It's a very thin piece of very brittle ceramic |
| 86 | 86 | containing a circuit, a LM1203 chip, some smt transistors/caps/resistors etc (let's just say |
| 87 | 87 | placing this thing on the edge of the PCB wasn't a good design choice!) |
| r11489 | r11490 | |
| 685 | 685 | |
| 686 | 686 | /* |
| 687 | 687 | Dead Eye |
| 688 | ||
| 688 | ||
| 689 | 689 | CD: |
| 690 | 690 | P/N 002715 |
| 691 | 691 | 054 |
| r11489 | r11490 | |
|---|---|---|
| 358 | 358 | /* IRQ 5 is used only in test mode, to request the checksums of the gfx ROMs. */ |
| 359 | 359 | |
| 360 | 360 | MCFG_CPU_ADD("audiocpu", M6809,3579545) /* 1.789 MHz?? This might be the right speed, but ROM testing */ |
| 361 | MCFG_CPU_PROGRAM_MAP(overdriv_sound_map) | |
| 361 | MCFG_CPU_PROGRAM_MAP(overdriv_sound_map) | |
| 362 | 362 | /* This might just mean that the video refresh rate is less than */ |
| 363 | 363 | /* 60 fps, that's how I fixed it for now. */ |
| 364 | 364 |
| r11489 | r11490 | |
|---|---|---|
| 42 | 42 | /* Large file support on IRIX needs _SGI_SOURCE */ |
| 43 | 43 | #undef _POSIX_SOURCE |
| 44 | 44 | |
| 45 | #elif defined(__linux__) | |
| 45 | #elif defined(__linux__) || defined(__FreeBSD_kernel__) | |
| 46 | 46 | #define SDLMAME_LINUX 1 |
| 47 | 47 | |
| 48 | 48 | #elif defined(__FreeBSD__) |
| r11489 | r11490 | |
|---|---|---|
| 439 | 439 | for (device_t *cfg = config.devicelist().first(); cfg != NULL; cfg = cfg->next()) |
| 440 | 440 | { |
| 441 | 441 | if (cfg->input_ports()!=NULL) { |
| 442 | // workaround for r11433 | |
| 442 | // workaround for r11433 input_port_list_init(portlist, cfg->input_ports(), NULL, 0, FALSE, cfg); | |
| 443 | 443 | } |
| 444 | 444 | } |
| 445 | 445 |
| r11489 | r11490 | |
|---|---|---|
| 505 | 505 | label_fixup *fixup; |
| 506 | 506 | while ((fixup = m_fixup_list.detach_head()) != NULL) |
| 507 | 507 | m_cache.dealloc(fixup, sizeof(*fixup)); |
| 508 | ||
| 508 | ||
| 509 | 509 | // make sure the label list is clear, and fatalerror if we missed anything |
| 510 | 510 | reset(true); |
| 511 | 511 | } |
| r11489 | r11490 | |
|---|---|---|
| 170 | 170 | uml::code_label m_label; // the label specified |
| 171 | 171 | drccodeptr m_codeptr; // pointer to the relevant code |
| 172 | 172 | }; |
| 173 | ||
| 173 | ||
| 174 | 174 | struct label_fixup |
| 175 | 175 | { |
| 176 | 176 | label_fixup *next() const { return m_next; } |
| r11489 | r11490 | |
|---|---|---|
| 355 | 355 | void * m_hashstacksave; // saved stack pointer for hashjmp |
| 356 | 356 | UINT64 m_reslo; // extended low result |
| 357 | 357 | UINT64 m_reshi; // extended high result |
| 358 | ||
| 358 | ||
| 359 | 359 | drc_label_fixup_delegate m_fixup_label; // precomputed delegate for fixups |
| 360 | 360 | drc_oob_delegate m_fixup_exception; // precomputed delegate for exception fixups |
| 361 | 361 |
| r11489 | r11490 | |
|---|---|---|
| 97 | 97 | device_t *devcb_resolver::resolve_device(int index, const char *tag, device_t ¤t) |
| 98 | 98 | { |
| 99 | 99 | device_t *result = NULL; |
| 100 | ||
| 100 | ||
| 101 | 101 | if (index == DEVCB_DEVICE_SELF) |
| 102 | 102 | result = ¤t; |
| 103 | 103 | else if (index == DEVCB_DEVICE_DRIVER) |
| r11489 | r11490 | |
| 130 | 130 | device_execute_interface *exec; |
| 131 | 131 | if (!targetdev->interface(exec)) |
| 132 | 132 | throw emu_fatalerror("Device '%s' (requested by %s '%s') has no execute interface", tag, current.name(), current.tag()); |
| 133 | ||
| 133 | ||
| 134 | 134 | return exec; |
| 135 | 135 | } |
| 136 | 136 | |
| r11489 | r11490 | |
| 156 | 156 | address_space *result = memory->space(index); |
| 157 | 157 | if (result == NULL) |
| 158 | 158 | throw emu_fatalerror("Unable to find device '%s' space %d (requested by %s '%s')", tag, index, current.name(), current.tag()); |
| 159 | ||
| 159 | ||
| 160 | 160 | return result; |
| 161 | 161 | } |
| 162 | 162 | |
| r11489 | r11490 | |
| 192 | 192 | m_helper.null_indicator = &s_null; |
| 193 | 193 | *static_cast<devcb_read_line_delegate *>(this) = devcb_read_line_delegate(&devcb_resolved_read_line::from_constant, "(null)", this); |
| 194 | 194 | break; |
| 195 | ||
| 195 | ||
| 196 | 196 | case DEVCB_TYPE_IOPORT: |
| 197 | 197 | m_object.port = devcb_resolver::resolve_port(desc.tag, device); |
| 198 | 198 | *static_cast<devcb_read_line_delegate *>(this) = devcb_read_line_delegate(&devcb_resolved_read_line::from_port, desc.tag, this); |
| 199 | 199 | break; |
| 200 | ||
| 200 | ||
| 201 | 201 | case DEVCB_TYPE_DEVICE: |
| 202 | 202 | m_object.device = devcb_resolver::resolve_device(desc.index, desc.tag, device); |
| 203 | 203 | if (desc.readline != NULL) |
| r11489 | r11490 | |
| 286 | 286 | m_helper.null_indicator = &s_null; |
| 287 | 287 | *static_cast<devcb_write_line_delegate *>(this) = devcb_write_line_delegate(&devcb_resolved_write_line::to_null, "(null)", this); |
| 288 | 288 | break; |
| 289 | ||
| 289 | ||
| 290 | 290 | case DEVCB_TYPE_IOPORT: |
| 291 | 291 | m_object.port = devcb_resolver::resolve_port(desc.tag, device); |
| 292 | 292 | *static_cast<devcb_write_line_delegate *>(this) = devcb_write_line_delegate(&devcb_resolved_write_line::to_port, desc.tag, this); |
| r11489 | r11490 | |
| 302 | 302 | *static_cast<devcb_write_line_delegate *>(this) = devcb_write_line_delegate(&devcb_resolved_write_line::to_write8, desc.name, this); |
| 303 | 303 | } |
| 304 | 304 | break; |
| 305 | ||
| 305 | ||
| 306 | 306 | case DEVCB_TYPE_LEGACY_SPACE: |
| 307 | 307 | m_object.space = devcb_resolver::resolve_space(desc.index, desc.tag, device); |
| 308 | 308 | m_helper.write8_space = desc.writespace; |
| r11489 | r11490 | |
| 391 | 391 | m_helper.null_indicator = &s_null; |
| 392 | 392 | *static_cast<devcb_read8_delegate *>(this) = devcb_read8_delegate(&devcb_resolved_read8::from_constant, "(null)", this); |
| 393 | 393 | break; |
| 394 | ||
| 394 | ||
| 395 | 395 | case DEVCB_TYPE_IOPORT: |
| 396 | 396 | m_object.port = devcb_resolver::resolve_port(desc.tag, device); |
| 397 | 397 | *static_cast<devcb_read8_delegate *>(this) = devcb_read8_delegate(&devcb_resolved_read8::from_port, desc.tag, this); |
| 398 | 398 | break; |
| 399 | ||
| 399 | ||
| 400 | 400 | case DEVCB_TYPE_DEVICE: |
| 401 | 401 | m_object.device = devcb_resolver::resolve_device(desc.index, desc.tag, device); |
| 402 | 402 | if (desc.readdevice != NULL) |
| r11489 | r11490 | |
| 433 | 433 | |
| 434 | 434 | |
| 435 | 435 | //------------------------------------------------- |
| 436 | // from_read8 - helper to convert from a device | |
| 436 | // from_read8 - helper to convert from a device | |
| 437 | 437 | // line read value to an 8-bit value |
| 438 | 438 | //------------------------------------------------- |
| 439 | 439 | |
| r11489 | r11490 | |
| 484 | 484 | m_helper.null_indicator = &s_null; |
| 485 | 485 | *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(&devcb_resolved_write8::to_null, "(null)", this); |
| 486 | 486 | break; |
| 487 | ||
| 487 | ||
| 488 | 488 | case DEVCB_TYPE_IOPORT: |
| 489 | 489 | m_object.port = devcb_resolver::resolve_port(desc.tag, device); |
| 490 | 490 | *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(&devcb_resolved_write8::to_port, desc.tag, this); |
| r11489 | r11490 | |
| 500 | 500 | *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(&devcb_resolved_write8::to_writeline, desc.name, this); |
| 501 | 501 | } |
| 502 | 502 | break; |
| 503 | ||
| 503 | ||
| 504 | 504 | case DEVCB_TYPE_LEGACY_SPACE: |
| 505 | 505 | m_object.space = devcb_resolver::resolve_space(desc.index, desc.tag, device); |
| 506 | 506 | *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(desc.writespace, desc.name, m_object.space); |
| r11489 | r11490 | |
| 588 | 588 | m_helper.null_indicator = &s_null; |
| 589 | 589 | *static_cast<devcb_read16_delegate *>(this) = devcb_read16_delegate(&devcb_resolved_read16::from_constant, "(null)", this); |
| 590 | 590 | break; |
| 591 | ||
| 591 | ||
| 592 | 592 | case DEVCB_TYPE_IOPORT: |
| 593 | 593 | m_object.port = devcb_resolver::resolve_port(desc.tag, device); |
| 594 | 594 | *static_cast<devcb_read16_delegate *>(this) = devcb_read16_delegate(&devcb_resolved_read16::from_port, desc.tag, this); |
| 595 | 595 | break; |
| 596 | ||
| 596 | ||
| 597 | 597 | case DEVCB_TYPE_DEVICE: |
| 598 | 598 | m_object.device = devcb_resolver::resolve_device(desc.index, desc.tag, device); |
| 599 | 599 | if (desc.readdevice != NULL) |
| r11489 | r11490 | |
| 630 | 630 | |
| 631 | 631 | |
| 632 | 632 | //------------------------------------------------- |
| 633 | // from_read16 - helper to convert from a device | |
| 633 | // from_read16 - helper to convert from a device | |
| 634 | 634 | // line read value to a 16-bit value |
| 635 | 635 | //------------------------------------------------- |
| 636 | 636 | |
| r11489 | r11490 | |
| 681 | 681 | m_helper.null_indicator = &s_null; |
| 682 | 682 | *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(&devcb_resolved_write16::to_null, "(null)", this); |
| 683 | 683 | break; |
| 684 | ||
| 684 | ||
| 685 | 685 | case DEVCB_TYPE_IOPORT: |
| 686 | 686 | m_object.port = devcb_resolver::resolve_port(desc.tag, device); |
| 687 | 687 | *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(&devcb_resolved_write16::to_port, desc.tag, this); |
| r11489 | r11490 | |
| 697 | 697 | *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(&devcb_resolved_write16::to_writeline, desc.name, this); |
| 698 | 698 | } |
| 699 | 699 | break; |
| 700 | ||
| 700 | ||
| 701 | 701 | case DEVCB_TYPE_LEGACY_SPACE: |
| 702 | 702 | m_object.space = devcb_resolver::resolve_space(desc.index, desc.tag, device); |
| 703 | 703 | *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(desc.writespace, desc.name, m_object.space); |
| r11489 | r11490 | |
|---|---|---|
| 72 | 72 | { |
| 73 | 73 | const char *m_screen_tag; /* screen we are acting on */ |
| 74 | 74 | int hpixels_per_column; /* number of pixels per video memory address */ |
| 75 | ||
| 75 | ||
| 76 | 76 | devcb_write_line m_out_int_cb; |
| 77 | 77 | devcb_write_line m_out_dmar_cb; |
| 78 | 78 |
| r11489 | r11490 | |
|---|---|---|
| 179 | 179 | #define DEVCB_LINE_VCC DEVCB_CONSTANT(1) |
| 180 | 180 | |
| 181 | 181 | // read/write handlers for a given CPU's address space |
| 182 | #define DEVCB_MEMORY_HANDLER(cpu,space,func) | |
| 182 | #define DEVCB_MEMORY_HANDLER(cpu,space,func) | |
| 183 | 183 | |
| 184 | 184 | // read handlers for an I/O port by tag |
| 185 | 185 | #define DEVCB_INPUT_PORT(tag) { DEVCB_TYPE_IOPORT, 0, (tag), NULL, NULL, NULL, NULL } |
| r11489 | r11490 | |
| 273 | 273 | |
| 274 | 274 | // resolution |
| 275 | 275 | void resolve(const devcb_read_line &desc, device_t &device); |
| 276 | ||
| 276 | ||
| 277 | 277 | // override parent class' notion of NULL |
| 278 | 278 | bool isnull() const { return m_helper.null_indicator == &s_null; } |
| 279 | ||
| 279 | ||
| 280 | 280 | private: |
| 281 | 281 | // internal helpers |
| 282 | 282 | int from_port(); |
| r11489 | r11490 | |
| 284 | 284 | int from_constant(); |
| 285 | 285 | |
| 286 | 286 | // internal state |
| 287 | devcb_resolved_objects | |
| 287 | devcb_resolved_objects | |
| 288 | 288 | devcb_resolved_read_helpers m_helper; |
| 289 | 289 | static UINT8 s_null; |
| 290 | 290 | }; |
| r11489 | r11490 | |
| 322 | 322 | |
| 323 | 323 | // resolution |
| 324 | 324 | void resolve(const devcb_write_line &desc, device_t &device); |
| 325 | ||
| 325 | ||
| 326 | 326 | // override parent class' notion of NULL |
| 327 | 327 | bool isnull() const { return m_helper.null_indicator == &s_null; } |
| 328 | ||
| 328 | ||
| 329 | 329 | private: |
| 330 | 330 | // internal helpers |
| 331 | 331 | void to_null(int state); |
| r11489 | r11490 | |
| 334 | 334 | void to_input(int state); |
| 335 | 335 | |
| 336 | 336 | // internal state |
| 337 | devcb_resolved_objects m_object; | |
| 338 | devcb_resolved_write_helpers m_helper; | |
| 337 | devcb_resolved_objects m_object; | |
| 338 | devcb_resolved_write_helpers m_helper; | |
| 339 | 339 | static UINT8 s_null; |
| 340 | 340 | }; |
| 341 | 341 | |
| r11489 | r11490 | |
| 372 | 372 | |
| 373 | 373 | // resolution |
| 374 | 374 | void resolve(const devcb_read8 &desc, device_t &device); |
| 375 | ||
| 375 | ||
| 376 | 376 | // override parent class' notion of NULL |
| 377 | 377 | bool isnull() const { return m_helper.null_indicator == &s_null; } |
| 378 | ||
| 378 | ||
| 379 | 379 | private: |
| 380 | 380 | // internal helpers |
| 381 | 381 | UINT8 from_port(offs_t offset); |
| r11489 | r11490 | |
| 383 | 383 | UINT8 from_constant(offs_t offset); |
| 384 | 384 | |
| 385 | 385 | // internal state |
| 386 | devcb_resolved_objects | |
| 386 | devcb_resolved_objects | |
| 387 | 387 | devcb_resolved_read_helpers m_helper; |
| 388 | 388 | static UINT8 s_null; |
| 389 | 389 | }; |
| r11489 | r11490 | |
| 421 | 421 | |
| 422 | 422 | // resolution |
| 423 | 423 | void resolve(const devcb_write8 &desc, device_t &device); |
| 424 | ||
| 424 | ||
| 425 | 425 | // override parent class' notion of NULL |
| 426 | 426 | bool isnull() const { return m_helper.null_indicator == &s_null; } |
| 427 | ||
| 427 | ||
| 428 | 428 | private: |
| 429 | 429 | // internal helpers |
| 430 | 430 | void to_null(offs_t offset, UINT8 data); |
| r11489 | r11490 | |
| 433 | 433 | void to_input(offs_t offset, UINT8 data); |
| 434 | 434 | |
| 435 | 435 | // internal state |
| 436 | devcb_resolved_objects m_object; | |
| 437 | devcb_resolved_write_helpers m_helper; | |
| 436 | devcb_resolved_objects m_object; | |
| 437 | devcb_resolved_write_helpers m_helper; | |
| 438 | 438 | static UINT8 s_null; |
| 439 | 439 | }; |
| 440 | 440 | |
| r11489 | r11490 | |
| 471 | 471 | |
| 472 | 472 | // resolution |
| 473 | 473 | void resolve(const devcb_read16 &desc, device_t &device); |
| 474 | ||
| 474 | ||
| 475 | 475 | // override parent class' notion of NULL |
| 476 | 476 | bool isnull() const { return m_helper.null_indicator == &s_null; } |
| 477 | ||
| 477 | ||
| 478 | 478 | private: |
| 479 | 479 | // internal helpers |
| 480 | 480 | UINT16 from_port(offs_t offset, UINT16 mask); |
| r11489 | r11490 | |
| 482 | 482 | UINT16 from_constant(offs_t offset, UINT16 mask); |
| 483 | 483 | |
| 484 | 484 | // internal state |
| 485 | devcb_resolved_objects | |
| 485 | devcb_resolved_objects | |
| 486 | 486 | devcb_resolved_read_helpers m_helper; |
| 487 | 487 | static UINT8 s_null; |
| 488 | 488 | }; |
| r11489 | r11490 | |
| 520 | 520 | |
| 521 | 521 | // resolution |
| 522 | 522 | void resolve(const devcb_write16 &desc, device_t &device); |
| 523 | ||
| 523 | ||
| 524 | 524 | // override parent class' notion of NULL |
| 525 | 525 | bool isnull() const { return m_helper.null_indicator == &s_null; } |
| 526 | ||
| 526 | ||
| 527 | 527 | private: |
| 528 | 528 | // internal helpers |
| 529 | 529 | void to_null(offs_t offset, UINT16 data, UINT16 mask); |
| r11489 | r11490 | |
| 532 | 532 | void to_input(offs_t offset, UINT16 data, UINT16 mask); |
| 533 | 533 | |
| 534 | 534 | // internal state |
| 535 | devcb_resolved_objects m_object; | |
| 536 | devcb_resolved_write_helpers m_helper; | |
| 535 | devcb_resolved_objects m_object; | |
| 536 | devcb_resolved_write_helpers m_helper; | |
| 537 | 537 | static UINT8 s_null; |
| 538 | 538 | }; |
| 539 | 539 |
| r11489 | r11490 | |
|---|---|---|
| 1502 | 1502 | |
| 1503 | 1503 | |
| 1504 | 1504 | /*------------------------------------------------- |
| 1505 | ui_slot_get_current_index - returns | |
| 1505 | ui_slot_get_current_index - returns | |
| 1506 | 1506 | -------------------------------------------------*/ |
| 1507 | 1507 | int ui_slot_get_current_index(running_machine &machine, device_slot_interface *slot) |
| 1508 | 1508 | { |
| r11489 | r11490 | |
| 1516 | 1516 | } |
| 1517 | 1517 | |
| 1518 | 1518 | /*------------------------------------------------- |
| 1519 | ui_slot_get_length - returns | |
| 1519 | ui_slot_get_length - returns | |
| 1520 | 1520 | -------------------------------------------------*/ |
| 1521 | 1521 | int ui_slot_get_length(running_machine &machine, device_slot_interface *slot) |
| 1522 | 1522 | { |
| r11489 | r11490 | |
| 1527 | 1527 | } |
| 1528 | 1528 | |
| 1529 | 1529 | /*------------------------------------------------- |
| 1530 | ui_slot_get_next - returns | |
| 1530 | ui_slot_get_next - returns | |
| 1531 | 1531 | -------------------------------------------------*/ |
| 1532 | 1532 | const char *ui_slot_get_next(running_machine &machine, device_slot_interface *slot) |
| 1533 | 1533 | { |
| r11489 | r11490 | |
| 1537 | 1537 | } |
| 1538 | 1538 | |
| 1539 | 1539 | /*------------------------------------------------- |
| 1540 | ui_slot_get_prev - returns | |
| 1540 | ui_slot_get_prev - returns | |
| 1541 | 1541 | -------------------------------------------------*/ |
| 1542 | 1542 | const char *ui_slot_get_prev(running_machine &machine, device_slot_interface *slot) |
| 1543 | 1543 | { |
| 1544 | 1544 | int idx = ui_slot_get_current_index(machine, slot) - 1; |
| 1545 | 1545 | if (idx==-1) return ""; |
| 1546 | if (idx==-2) idx = ui_slot_get_length(machine,slot) -1; | |
| 1546 | if (idx==-2) idx = ui_slot_get_length(machine,slot) -1; | |
| 1547 | 1547 | return slot->get_slot_interfaces()[idx].name; |
| 1548 | 1548 | } |
| 1549 | 1549 | |
| 1550 | 1550 | /*------------------------------------------------- |
| 1551 | ui_get_slot_device - returns | |
| 1551 | ui_get_slot_device - returns | |
| 1552 | 1552 | -------------------------------------------------*/ |
| 1553 | 1553 | const char *ui_get_slot_device(running_machine &machine, device_slot_interface *slot) |
| 1554 | 1554 | { |
| r11489 | r11490 | |
| 1562 | 1562 | -------------------------------------------------*/ |
| 1563 | 1563 | |
| 1564 | 1564 | void ui_set_slot_device(running_machine &machine, device_slot_interface *slot, const char *val) |
| 1565 | { | |
| 1565 | { | |
| 1566 | 1566 | astring error; |
| 1567 | 1567 | machine.options().set_value(slot->device().tag(), val, OPTION_PRIORITY_CMDLINE, error); |
| 1568 | 1568 | assert(!error); |
| 1569 | 1569 | } |
| 1570 | ||
| 1570 | ||
| 1571 | 1571 | /*------------------------------------------------- |
| 1572 | 1572 | menu_slot_devices_populate - populates the main |
| 1573 | 1573 | slot device menu |
| r11489 | r11490 | |
| 1576 | 1576 | static void menu_slot_devices_populate(running_machine &machine, ui_menu *menu, void *state) |
| 1577 | 1577 | { |
| 1578 | 1578 | device_slot_interface *slot = NULL; |
| 1579 | ||
| 1579 | ||
| 1580 | 1580 | /* cycle through all devices for this system */ |
| 1581 | 1581 | for (bool gotone = machine.devicelist().first(slot); gotone; gotone = slot->next(slot)) |
| 1582 | 1582 | { |
| r11489 | r11490 | |
| 1585 | 1585 | ui_menu_item_append(menu, slot->device().tag(), strcmp(title,"")==0 ? "------" : title, MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW, (void *)slot); |
| 1586 | 1586 | } |
| 1587 | 1587 | ui_menu_item_append(menu, MENU_SEPARATOR_ITEM, NULL, 0, NULL); |
| 1588 | ui_menu_item_append(menu, "Reset", NULL, 0, NULL); | |
| 1588 | ui_menu_item_append(menu, "Reset", NULL, 0, NULL); | |
| 1589 | 1589 | } |
| 1590 | 1590 | |
| 1591 | 1591 | /*------------------------------------------------- |
| r11489 | r11490 | |
| 1599 | 1599 | /* if the menu isn't built, populate now */ |
| 1600 | 1600 | if (!ui_menu_populated(menu)) |
| 1601 | 1601 | { |
| 1602 | menu_slot_devices_populate(machine, menu, state); | |
| 1602 | menu_slot_devices_populate(machine, menu, state); | |
| 1603 | 1603 | } |
| 1604 | 1604 | |
| 1605 | 1605 | /* process the menu */ |
| r11489 | r11490 | |
| 1607 | 1607 | |
| 1608 | 1608 | if (menu_event != NULL && menu_event->itemref != NULL) |
| 1609 | 1609 | { |
| 1610 | if (menu_event->iptkey == IPT_UI_LEFT || menu_event->iptkey == IPT_UI_RIGHT) { | |
| 1611 | device_slot_interface *slot = (device_slot_interface *)menu_event->itemref; | |
| 1610 | if (menu_event->iptkey == IPT_UI_LEFT || menu_event->iptkey == IPT_UI_RIGHT) { | |
| 1611 | device_slot_interface *slot = (device_slot_interface *)menu_event->itemref; | |
| 1612 | 1612 | const char *val = (menu_event->iptkey == IPT_UI_LEFT) ? ui_slot_get_prev(machine,slot) : ui_slot_get_next(machine,slot); |
| 1613 | ui_set_slot_device(machine,slot,val); | |
| 1614 | ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF); | |
| 1613 | ui_set_slot_device(machine,slot,val); | |
| 1614 | ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF); | |
| 1615 | 1615 | } |
| 1616 | 1616 | } else if (menu_event != NULL && menu_event->iptkey == IPT_UI_SELECT) { |
| 1617 | 1617 | machine.schedule_hard_reset(); |
| r11489 | r11490 | |
| 1683 | 1683 | if (machine.devicelist().first(BITBANGER)) |
| 1684 | 1684 | ui_menu_item_append(menu, "Bitbanger Control", NULL, 0, (void*)ui_mess_menu_bitbanger_control); |
| 1685 | 1685 | } |
| 1686 | ||
| 1686 | ||
| 1687 | 1687 | device_slot_interface *slot = NULL; |
| 1688 | 1688 | if (machine.devicelist().first(slot)) |
| 1689 | 1689 | { |
| 1690 | 1690 | /* add image info menu */ |
| 1691 | 1691 | ui_menu_item_append(menu, "Slot Devices", NULL, 0, (void*)ui_menu_slot_devices); |
| 1692 | 1692 | } |
| 1693 | ||
| 1693 | ||
| 1694 | 1694 | /* add keyboard mode menu */ |
| 1695 | 1695 | if (input_machine_has_keyboard(machine) && inputx_can_post(machine)) |
| 1696 | 1696 | ui_menu_item_append(menu, "Keyboard Mode", NULL, 0, (void *)ui_menu_keyboard_mode); |
| r11489 | r11490 | |
|---|---|---|
| 109 | 109 | { |
| 110 | 110 | // add exit and reset callbacks |
| 111 | 111 | m_machine = &machine; |
| 112 | ||
| 112 | ||
| 113 | 113 | // iterate over devices and set their machines as well |
| 114 | 114 | for (device_t *device = first(); device != NULL; device = device->next()) |
| 115 | 115 | device->set_machine(machine); |
| r11489 | r11490 | |
| 143 | 143 | void device_list::start_new_devices() |
| 144 | 144 | { |
| 145 | 145 | assert(m_machine != NULL); |
| 146 | ||
| 146 | ||
| 147 | 147 | // iterate through the devices |
| 148 | 148 | device_t *nextdevice; |
| 149 | 149 | for (device_t *device = first(); device != NULL; device = nextdevice) |
| r11489 | r11490 | |
| 158 | 158 | // if the device doesn't have a machine yet, set it first |
| 159 | 159 | if (device->m_machine == NULL) |
| 160 | 160 | device->set_machine(machine()); |
| 161 | ||
| 161 | ||
| 162 | 162 | // now start the device |
| 163 | 163 | mame_printf_verbose("Starting %s '%s'\n", device->name(), device->tag()); |
| 164 | 164 | device->start(); |
| r11489 | r11490 | |
| 221 | 221 | |
| 222 | 222 | |
| 223 | 223 | //------------------------------------------------- |
| 224 | // count - count the number of devices of the | |
| 224 | // count - count the number of devices of the | |
| 225 | 225 | // given type |
| 226 | 226 | //------------------------------------------------- |
| 227 | 227 | |
| r11489 | r11490 | |
| 290 | 290 | |
| 291 | 291 | |
| 292 | 292 | //------------------------------------------------- |
| 293 | // presave_all - tell all the devices we are | |
| 293 | // presave_all - tell all the devices we are | |
| 294 | 294 | // about to save |
| 295 | 295 | //------------------------------------------------- |
| 296 | 296 | |
| r11489 | r11490 | |
| 302 | 302 | |
| 303 | 303 | |
| 304 | 304 | //------------------------------------------------- |
| 305 | // postload_all - tell all the devices we just | |
| 305 | // postload_all - tell all the devices we just | |
| 306 | 306 | // completed a load |
| 307 | 307 | //------------------------------------------------- |
| 308 | 308 | |
| r11489 | r11490 | |
| 469 | 469 | |
| 470 | 470 | // then notify the device itself |
| 471 | 471 | device_config_complete(); |
| 472 | ||
| 472 | ||
| 473 | 473 | // then mark ourselves complete |
| 474 | 474 | m_config_complete = true; |
| 475 | 475 | } |
| r11489 | r11490 | |
| 517 | 517 | |
| 518 | 518 | |
| 519 | 519 | //------------------------------------------------- |
| 520 | // set_unscaled_clock - sets the given device's | |
| 520 | // set_unscaled_clock - sets the given device's | |
| 521 | 521 | // unscaled clock |
| 522 | 522 | //------------------------------------------------- |
| 523 | 523 |
| r11489 | r11490 | |
|---|---|---|
| 133 | 133 | public: |
| 134 | 134 | // construction/destruction |
| 135 | 135 | device_list(resource_pool &pool = global_resource_pool); |
| 136 | ||
| 136 | ||
| 137 | 137 | // getters |
| 138 | 138 | running_machine &machine() const { assert(m_machine != NULL); return *m_machine; } |
| 139 | 139 | |
| r11489 | r11490 | |
| 160 | 160 | // provide interface-specific overrides |
| 161 | 161 | template<class _InterfaceClass> |
| 162 | 162 | bool first(_InterfaceClass *&intf) const; |
| 163 | ||
| 163 | ||
| 164 | 164 | private: |
| 165 | 165 | // internal helpers |
| 166 | 166 | void exit(); |
| r11489 | r11490 | |
| 307 | 307 | virtual void device_clock_changed(); |
| 308 | 308 | virtual void device_debug_setup(); |
| 309 | 309 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 310 | ||
| 310 | ||
| 311 | 311 | //------------------- end derived class overrides |
| 312 | 312 | |
| 313 | 313 | device_debug * m_debug; |
| r11489 | r11490 | |
| 376 | 376 | operator _TargetType() { return m_target; } |
| 377 | 377 | operator _TargetType() const { return m_target; } |
| 378 | 378 | _TargetType operator->() { return m_target; } |
| 379 | ||
| 379 | ||
| 380 | 380 | // getter for explicit fetching |
| 381 | 381 | _TargetType target() const { return m_target; } |
| 382 | 382 |
| r11489 | r11490 | |
|---|---|---|
| 191 | 191 | memset(gfx, 0, sizeof(gfx)); |
| 192 | 192 | memset(&generic, 0, sizeof(generic)); |
| 193 | 193 | memset(&m_base_time, 0, sizeof(m_base_time)); |
| 194 | ||
| 194 | ||
| 195 | 195 | // set the machine on all devices |
| 196 | 196 | const_cast<device_list &>(devicelist()).set_machine_all(*this); |
| 197 | 197 |
| r11489 | r11490 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with | |
| 4 | Four-Channel Input-Selector emulation | |
| 3 | LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with | |
| 4 | Four-Channel Input-Selector emulation | |
| 5 | 5 | |
| 6 | 6 | Copyright MESS Team. |
| 7 | 7 | Visit http://mamedev.org for licensing and usage restrictions. |
| r11489 | r11490 | |
| 13 | 13 | TODO: |
| 14 | 14 | |
| 15 | 15 | - inputs |
| 16 | - outputs | |
| 17 | - bass | |
| 18 | - treble | |
| 19 | - volume | |
| 20 | - balance | |
| 16 | - outputs | |
| 17 | - bass | |
| 18 | - treble | |
| 19 | - volume | |
| 20 | - balance | |
| 21 | 21 | |
| 22 | 22 | */ |
| 23 | 23 | |
| r11489 | r11490 | |
| 73 | 73 | //************************************************************************** |
| 74 | 74 | |
| 75 | 75 | //------------------------------------------------- |
| 76 | // execute_command - | |
| 76 | // execute_command - | |
| 77 | 77 | //------------------------------------------------- |
| 78 | 78 | |
| 79 | 79 | inline void lmc1992_device::execute_command(int addr, int data) |
| r11489 | r11490 | |
| 181 | 181 | |
| 182 | 182 | |
| 183 | 183 | //------------------------------------------------- |
| 184 | // clock_w - | |
| 184 | // clock_w - | |
| 185 | 185 | //------------------------------------------------- |
| 186 | 186 | |
| 187 | 187 | WRITE_LINE_MEMBER( lmc1992_device::clock_w ) |
| r11489 | r11490 | |
| 202 | 202 | |
| 203 | 203 | |
| 204 | 204 | //------------------------------------------------- |
| 205 | // data_w - | |
| 205 | // data_w - | |
| 206 | 206 | //------------------------------------------------- |
| 207 | 207 | |
| 208 | 208 | WRITE_LINE_MEMBER( lmc1992_device::data_w ) |
| r11489 | r11490 | |
| 212 | 212 | |
| 213 | 213 | |
| 214 | 214 | //------------------------------------------------- |
| 215 | // enable_w - | |
| 215 | // enable_w - | |
| 216 | 216 | //------------------------------------------------- |
| 217 | 217 | |
| 218 | 218 | WRITE_LINE_MEMBER( lmc1992_device::enable_w ) |
| r11489 | r11490 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with | |
| 4 | Four-Channel Input-Selector emulation | |
| 3 | LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with | |
| 4 | Four-Channel Input-Selector emulation | |
| 5 | 5 | |
| 6 | 6 | Copyright MESS Team. |
| 7 | 7 | Visit http://mamedev.org for licensing and usage restrictions. |
| r11489 | r11490 | |
| 92 | 92 | inline void execute_command(int addr, int data); |
| 93 | 93 | |
| 94 | 94 | sound_stream *m_stream[4]; |
| 95 | ||
| 95 | ||
| 96 | 96 | int m_enable; // enable latch |
| 97 | 97 | int m_data; // data latch |
| 98 | 98 | int m_clk; // clock latch |
| r11489 | r11490 | |
|---|---|---|
| 583 | 583 | { |
| 584 | 584 | // output the line, up to the list of extensions |
| 585 | 585 | printf("%-13s%-20s ", first ? drivlist.driver().name : "", slot->device().tag()); |
| 586 | ||
| 587 | // get the options and print them | |
| 586 | ||
| 587 | // get the options and print them | |
| 588 | 588 | const slot_interface* intf = slot->get_slot_interfaces(); |
| 589 | 589 | for (int i = 0; intf[i].name != NULL; i++) |
| 590 | 590 | { |
| r11489 | r11490 | |
|---|---|---|
| 251 | 251 | |
| 252 | 252 | |
| 253 | 253 | //------------------------------------------------- |
| 254 | // execute_run - execute for the provided number | |
| 254 | // execute_run - execute for the provided number | |
| 255 | 255 | // of cycles |
| 256 | 256 | //------------------------------------------------- |
| 257 | 257 | |
| r11489 | r11490 | |
| 410 | 410 | |
| 411 | 411 | |
| 412 | 412 | //------------------------------------------------- |
| 413 | // get_legacy_string - return a legacy | |
| 413 | // get_legacy_string - return a legacy | |
| 414 | 414 | // string value |
| 415 | 415 | //------------------------------------------------- |
| 416 | 416 | |
| r11489 | r11490 | |
| 424 | 424 | |
| 425 | 425 | |
| 426 | 426 | //------------------------------------------------- |
| 427 | // set_legacy_int - call the get info function | |
| 427 | // set_legacy_int - call the get info function | |
| 428 | 428 | // to set an integer value |
| 429 | 429 | //------------------------------------------------- |
| 430 | 430 |
| r11489 | r11490 | |
|---|---|---|
| 412 | 412 | protected: |
| 413 | 413 | // internal state |
| 414 | 414 | cpu_get_info_func m_get_info; |
| 415 | address_space_config | |
| 415 | address_space_config | |
| 416 | 416 | void * m_token; // pointer to our state |
| 417 | 417 | |
| 418 | 418 | cpu_set_info_func m_set_info; // extracted legacy function pointers |
| r11489 | r11490 | |
|---|---|---|
| 22 | 22 | device_slot_interface *slot; |
| 23 | 23 | if (!device.interface(slot)) |
| 24 | 24 | throw emu_fatalerror("set_default_slot_card called on device '%s' with no slot interface", device.tag()); |
| 25 | ||
| 25 | ||
| 26 | 26 | slot->m_slot_interfaces = slots_info; |
| 27 | 27 | slot->m_default_card = default_card; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | device_t* device_slot_interface::get_card_device() |
| 31 | 31 | { |
| 32 | const char *subtag = device().machine().options().value(device().tag()); | |
| 32 | const char *subtag = device().machine().options().value(device().tag()); | |
| 33 | 33 | device_t *dev = NULL; |
| 34 | 34 | if (subtag) { |
| 35 | 35 | device_slot_card_interface *intf = NULL; |
| r11489 | r11490 | |
|---|---|---|
| 43 | 43 | // construction/destruction |
| 44 | 44 | device_slot_interface(const machine_config &mconfig, device_t &device); |
| 45 | 45 | virtual ~device_slot_interface(); |
| 46 | ||
| 46 | ||
| 47 | 47 | static void static_set_slot_info(device_t &device, const slot_interface *slots_info, const char *default_card); |
| 48 | 48 | const slot_interface* get_slot_interfaces() const { return m_slot_interfaces; }; |
| 49 | 49 | const char * get_default_card() const { return m_default_card; }; |
| 50 | 50 | device_t* get_card_device(); |
| 51 | 51 | protected: |
| 52 | 52 | const char *m_default_card; |
| 53 | const slot_interface *m_slot_interfaces; | |
| 53 | const slot_interface *m_slot_interfaces; | |
| 54 | 54 | }; |
| 55 | 55 | |
| 56 | 56 | // ======================> device_slot_card_interface |
| r11489 | r11490 | |
|---|---|---|
| 1252 | 1252 | default: |
| 1253 | 1253 | LOGPRINT(("IDE unknown command (%02X)\n", command)); |
| 1254 | 1254 | ide->status |= IDE_STATUS_ERROR; |
| 1255 | ide->error = IDE_ERROR_UNKNOWN_COMMAND; | |
| 1256 | signal_interrupt(ide); | |
| 1255 | ide->error = IDE_ERROR_UNKNOWN_COMMAND; | |
| 1256 | signal_interrupt(ide); | |
| 1257 | 1257 | //debugger_break(ide->device->machine()); |
| 1258 | 1258 | break; |
| 1259 | 1259 | } |
| r11489 | r11490 | |
|---|---|---|
| 1058 | 1058 | |
| 1059 | 1059 | |
| 1060 | 1060 | //------------------------------------------------- |
| 1061 | // ca2_output_z - version of ca2_output which | |
| 1061 | // ca2_output_z - version of ca2_output which | |
| 1062 | 1062 | // takes account of internal pullup resistor |
| 1063 | 1063 | //------------------------------------------------- |
| 1064 | 1064 |
| r11489 | r11490 | |
|---|---|---|
| 4 | 4 | device_secure_serial_flash::device_secure_serial_flash(const machine_config &mconfig, |
| 5 | 5 | device_type type, |
| 6 | 6 | const char *name, const char *tag, |
| 7 | device_t *owner, UINT32 clock) : | |
| 7 | device_t *owner, UINT32 clock) : | |
| 8 | 8 | device_t(mconfig, type, name, tag, owner, clock), |
| 9 | 9 | device_nvram_interface(mconfig, *this) |
| 10 | 10 | { |
| r11489 | r11490 | |
|---|---|---|
| 137 | 137 | return 0; |
| 138 | 138 | *recv_buffer++ = 0x01; |
| 139 | 139 | return switches(recv_buffer, send_buffer[1], send_buffer[2]) ? 3 : 0; |
| 140 | ||
| 140 | ||
| 141 | 141 | case 0x21: |
| 142 | 142 | if(send_size < 2) |
| 143 | 143 | return 0; |
| r11489 | r11490 | |
|---|---|---|
| 92 | 92 | |
| 93 | 93 | DECLARE_READ8_MEMBER( pa_r ); |
| 94 | 94 | UINT8 pa_r(); |
| 95 | ||
| 95 | ||
| 96 | 96 | DECLARE_READ8_MEMBER( pb_r ); |
| 97 | 97 | UINT8 pb_r(); |
| 98 | 98 | |
| r11489 | r11490 | |
| 130 | 130 | void output_pc(); |
| 131 | 131 | void set_mode(UINT8 data); |
| 132 | 132 | void set_pc_bit(int bit, int state); |
| 133 | ||
| 133 | ||
| 134 | 134 | devcb_resolved_read8 m_in_port_func[3]; |
| 135 | 135 | devcb_resolved_write8 m_out_port_func[3]; |
| 136 | 136 |
| r11489 | r11490 | |
|---|---|---|
| 182 | 182 | tx_tick(); |
| 183 | 183 | m_tx_counter = 0; |
| 184 | 184 | break; |
| 185 | ||
| 185 | ||
| 186 | 186 | case TIMER_ID_RECEIVE: |
| 187 | 187 | rx_tick(); |
| 188 | 188 | m_rx_counter = 0; |
| r11489 | r11490 | |
|---|---|---|
| 74 | 74 | public: |
| 75 | 75 | // construction/destruction |
| 76 | 76 | acia6850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 77 | ||
| 77 | ||
| 78 | 78 | // static configuration helpers |
| 79 | 79 | static void static_set_interface(device_t &device, const acia6850_interface &interface); |
| 80 | 80 |
| r11489 | r11490 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | |
| 12 | ||
| 12 | TODO: | |
| 13 | 13 | |
| 14 | - auto restart | |
| 15 | - test mode | |
| 14 | - auto restart | |
| 15 | - test mode | |
| 16 | 16 | |
| 17 | 17 | */ |
| 18 | 18 | |
| r11489 | r11490 | |
| 457 | 457 | if (m_bits == 8) |
| 458 | 458 | { |
| 459 | 459 | if (LOG) logerror("MCCS1850 '%s' %s Address %u\n", tag(), BIT(m_address, 7) ? "Write" : "Read", m_address & 0x7f); |
| 460 | ||
| 460 | ||
| 461 | 461 | m_bits = 0; |
| 462 | 462 | m_state = STATE_DATA; |
| 463 | 463 |
| r11489 | r11490 | |
|---|---|---|
| 83 | 83 | class screen_device : public device_t |
| 84 | 84 | { |
| 85 | 85 | friend class render_manager; |
| 86 | ||
| 86 | ||
| 87 | 87 | public: |
| 88 | 88 | // construction/destruction |
| 89 | 89 | screen_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| r11489 | r11490 | |
| 238 | 238 | : m_next(NULL), |
| 239 | 239 | m_callback(callback) { } |
| 240 | 240 | callback_item *next() const { return m_next; } |
| 241 | ||
| 241 | ||
| 242 | 242 | callback_item * m_next; |
| 243 | 243 | vblank_state_delegate m_callback; |
| 244 | 244 | }; |
| r11489 | r11490 | |
|---|---|---|
| 212 | 212 | machine_config &driver_enumerator::config(int index) const |
| 213 | 213 | { |
| 214 | 214 | assert(index >= 0 && index < s_driver_count); |
| 215 | ||
| 215 | ||
| 216 | 216 | // if we don't have it cached, add it |
| 217 | 217 | if (m_config[index] == NULL) |
| 218 | 218 | { |
| r11489 | r11490 | |
| 223 | 223 | m_config[first->index()] = NULL; |
| 224 | 224 | m_config_cache.remove(*first); |
| 225 | 225 | } |
| 226 | ||
| 226 | ||
| 227 | 227 | // allocate the config and add it to the end of the list |
| 228 | 228 | machine_config *config = m_config[index] = global_alloc(machine_config(*s_drivers_sorted[index], m_options)); |
| 229 | 229 | m_config_cache.append(*global_alloc(config_entry(*config, index))); |
| r11489 | r11490 | |
|---|---|---|
| 206 | 206 | struct config_entry |
| 207 | 207 | { |
| 208 | 208 | friend class simple_list<config_entry>; |
| 209 | ||
| 209 | ||
| 210 | 210 | public: |
| 211 | 211 | // construction/destruction |
| 212 | 212 | config_entry(machine_config &config, int index); |
| 213 | 213 | ~config_entry(); |
| 214 | ||
| 214 | ||
| 215 | 215 | // getters |
| 216 | 216 | config_entry *next() const { return m_next; } |
| 217 | 217 | int index() const { return m_index; } |
| 218 | 218 | machine_config *config() const { return m_config; } |
| 219 | ||
| 219 | ||
| 220 | 220 | private: |
| 221 | 221 | // internal state |
| 222 | 222 | config_entry * m_next; |
| 223 | 223 | machine_config * m_config; |
| 224 | 224 | int m_index; |
| 225 | 225 | }; |
| 226 | ||
| 226 | ||
| 227 | 227 | static const int CONFIG_CACHE_COUNT = 100; |
| 228 | 228 | |
| 229 | 229 | // internal state |
| r11489 | r11490 | |
|---|---|---|
| 68 | 68 | (*gamedrv.machine_config)(*this, NULL); |
| 69 | 69 | |
| 70 | 70 | // intialize slot devices - make sure that any required devices have been allocated |
| 71 | device_slot_interface *slot = NULL; | |
| 71 | device_slot_interface *slot = NULL; | |
| 72 | 72 | for (bool gotone = m_devicelist.first(slot); gotone; gotone = slot->next(slot)) |
| 73 | 73 | { |
| 74 | 74 | device_t &owner = slot->device(); |
| r11489 | r11490 | |
|---|---|---|
| 320 | 320 | { |
| 321 | 321 | if (floppy) { |
| 322 | 322 | floppy_track_unload(floppy); |
| 323 | ||
| 323 | ||
| 324 | 324 | if(floppy->floppy_option->destruct) |
| 325 | 325 | floppy->floppy_option->destruct(floppy, floppy->floppy_option); |
| 326 | 326 | if (close_file) |
| r11489 | r11490 | |
|---|---|---|
| 38 | 38 | ***************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | extern const char build_version[]; |
| 41 | const char build_version[] = "0.142u | |
| 41 | const char build_version[] = "0.142u3 ("__DATE__")"; |
| r11489 | r11490 | |
|---|---|---|
| 27 | 27 | #------------------------------------------------- |
| 28 | 28 | |
| 29 | 29 | MESSDOCS_OBJS = \ |
| 30 | $(MESSOBJ)/tools/messdocs/messdocs.o | |
| 30 | $(MESSOBJ)/tools/messdocs/messdocs.o | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 |
| r11489 | r11490 | |
|---|---|---|
| 635 | 635 | TCHAR *t_filename; |
| 636 | 636 | imgtool_partition_features features; |
| 637 | 637 | extern const char build_version[]; |
| 638 | ||
| 638 | ||
| 639 | 639 | info = get_wimgtool_info(window); |
| 640 | 640 | |
| 641 | 641 | // get the modules and features |
| r11489 | r11490 | |
|---|---|---|
| 368 | 368 | void cbm_iec_device::device_start() |
| 369 | 369 | { |
| 370 | 370 | m_stub = machine().device<cbm_iec_stub_device>(CBM_IEC_STUB_TAG); |
| 371 | const cbm_iec_config *daisy = m_daisy; | |
| 371 | const cbm_iec_config *daisy = m_daisy; | |
| 372 | 372 | // create a linked list of devices |
| 373 | 373 | daisy_entry **tailptr = &m_daisy_list; |
| 374 | 374 | for ( ; daisy->m_tag != NULL; daisy++) |
| r11489 | r11490 | |
|---|---|---|
| 155 | 155 | |
| 156 | 156 | cbm_iec_stub_device *m_stub; |
| 157 | 157 | |
| 158 | ||
| 158 | ||
| 159 | 159 | }; |
| 160 | 160 | |
| 161 | 161 |
| r11489 | r11490 | |
|---|---|---|
| 441 | 441 | void base_c1581_device::device_start() |
| 442 | 442 | { |
| 443 | 443 | m_bus = machine().device<cbm_iec_device>(CBM_IEC_TAG); |
| 444 | ||
| 444 | ||
| 445 | 445 | // map ROM |
| 446 | 446 | address_space *program = m_maincpu->memory().space(AS_PROGRAM); |
| 447 | 447 | program->install_rom(0x8000, 0xbfff, subregion(M6502_TAG)->base()); |
| r11489 | r11490 | |
|---|---|---|
| 612 | 612 | state->m_pia_1->write(*memory_nonspecific_space(machine), 3, 0x00); |
| 613 | 613 | state->m_pia_1->write(*memory_nonspecific_space(machine), 0, 0xfe); |
| 614 | 614 | state->m_pia_1->write(*memory_nonspecific_space(machine), 2, 0xf8); |
| 615 | ||
| 615 | ||
| 616 | 616 | state->m_pia_0->write(*memory_nonspecific_space(machine), 1, trailer->pia[1]); |
| 617 | 617 | state->m_pia_0->write(*memory_nonspecific_space(machine), 0, trailer->pia[0]); |
| 618 | 618 | state->m_pia_0->write(*memory_nonspecific_space(machine), 3, trailer->pia[3]); |
| 619 | 619 | state->m_pia_0->write(*memory_nonspecific_space(machine), 2, trailer->pia[2]); |
| 620 | ||
| 620 | ||
| 621 | 621 | state->m_pia_1->write(*memory_nonspecific_space(machine), 1, trailer->pia[5]); |
| 622 | 622 | state->m_pia_1->write(*memory_nonspecific_space(machine), 0, trailer->pia[4]); |
| 623 | 623 | state->m_pia_1->write(*memory_nonspecific_space(machine), 3, trailer->pia[7]); |
| r11489 | r11490 | |
|---|---|---|
| 103 | 103 | // interrupts |
| 104 | 104 | int m_via0_irq; // VIA #0 interrupt request |
| 105 | 105 | int m_via1_irq; // VIA #1 interrupt request |
| 106 | ||
| 106 | ||
| 107 | 107 | int m_address; |
| 108 | 108 | }; |
| 109 | 109 |
| r11489 | r11490 | |
|---|---|---|
| 54 | 54 | MCFG_DEVICE_ADD(_tag, MB89352A, 0) \ |
| 55 | 55 | MCFG_DEVICE_CONFIG(_intrf) |
| 56 | 56 | |
| 57 | class mb89352_device : public device_t, | |
| 57 | class mb89352_device : public device_t, | |
| 58 | 58 | public mb89352_interface |
| 59 | 59 | { |
| 60 | 60 | public: |
| r11489 | r11490 | |
|---|---|---|
| 65 | 65 | const device_type C8250 = &device_creator<c8250_device>; |
| 66 | 66 | const device_type SFD1001 = &device_creator<sfd1001_device>; |
| 67 | 67 | |
| 68 | ||
| 68 | ||
| 69 | 69 | //------------------------------------------------- |
| 70 | 70 | // device_config_complete - perform any |
| 71 | 71 | // operations now that the configuration is |
| r11489 | r11490 | |
| 1532 | 1532 | { |
| 1533 | 1533 | address_space *main = m_maincpu->memory().space(AS_PROGRAM); |
| 1534 | 1534 | address_space *fdc = m_fdccpu->memory().space(AS_PROGRAM); |
| 1535 | ||
| 1535 | ||
| 1536 | 1536 | m_bit_timer = timer_alloc(); |
| 1537 | ||
| 1537 | ||
| 1538 | 1538 | switch (m_variant) |
| 1539 | 1539 | { |
| 1540 | 1540 | default: |
| r11489 | r11490 | |
|---|---|---|
| 95 | 95 | int m_via0_irq; |
| 96 | 96 | int m_via1_irq; |
| 97 | 97 | |
| 98 | ||
| 98 | ||
| 99 | 99 | }; |
| 100 | 100 | |
| 101 | 101 |
| r11489 | r11490 | |
|---|---|---|
| 613 | 613 | install_device(m_pic8259, 0x0020, 0x0021, 0, 0, FUNC(pic8259_r), FUNC(pic8259_w) ); |
| 614 | 614 | install_device(m_pit8253, 0x0040, 0x0043, 0, 0, FUNC(pit8253_r), FUNC(pit8253_w) ); |
| 615 | 615 | |
| 616 | // | |
| 616 | // install_device(m_ppi8255, 0x0060, 0x0063, 0, 0, FUNC(i8255a_r), FUNC(i8255a_w) ); | |
| 617 | 617 | int buswidth = machine().firstcpu->memory().space_config(AS_IO)->m_databus_width; |
| 618 | 618 | switch(buswidth) |
| 619 | 619 | { |
| r11489 | r11490 | |
| 712 | 712 | // ibm5150_mb_device - constructor |
| 713 | 713 | //------------------------------------------------- |
| 714 | 714 | |
| 715 | ibm5150_mb_device::ibm5150_mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) | |
| 715 | ibm5150_mb_device::ibm5150_mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) | |
| 716 | 716 | : ibm5160_mb_device(mconfig, tag, owner, clock), |
| 717 | 717 | m_cassette(*this, "cassette") |
| 718 | 718 | { |
| r11489 | r11490 | |
|---|---|---|
| 45 | 45 | MCFG_DEVICE_ADD(_tag, FMSCSI, 0) \ |
| 46 | 46 | MCFG_DEVICE_CONFIG(_intrf) |
| 47 | 47 | |
| 48 | class fmscsi_device : public device_t, | |
| 48 | class fmscsi_device : public device_t, | |
| 49 | 49 | public FMSCSIinterface |
| 50 | 50 | { |
| 51 | 51 | public: |
| r11489 | r11490 | |
| 74 | 74 | virtual void device_stop(); |
| 75 | 75 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 76 | 76 | virtual void device_config_complete(); |
| 77 | ||
| 77 | ||
| 78 | 78 | private: |
| 79 | 79 | // internal device state goes here |
| 80 | 80 | static const device_timer_id TIMER_TRANSFER = 0; |
| r11489 | r11490 | |
|---|---|---|
| 100 | 100 | DECLARE_WRITE8_MEMBER( via1_pb_w ); |
| 101 | 101 | DECLARE_WRITE_LINE_MEMBER( atn_w ); |
| 102 | 102 | DECLARE_WRITE_LINE_MEMBER( byte_w ); |
| 103 | ||
| 103 | ||
| 104 | 104 | // inline configuration helpers |
| 105 | 105 | static void static_set_config(device_t &device, int address, int variant); |
| 106 | 106 | |
| r11489 | r11490 | |
| 113 | 113 | virtual void device_start(); |
| 114 | 114 | virtual void device_reset(); |
| 115 | 115 | virtual void device_config_complete(); |
| 116 | ||
| 116 | ||
| 117 | 117 | // device_cbm_iec_interface overrides |
| 118 | 118 | void cbm_iec_atn(int state); |
| 119 | 119 | void cbm_iec_reset(int state); |
| r11489 | r11490 | |
|---|---|---|
| 52 | 52 | DECLARE_WRITE8_MEMBER( address_w ); |
| 53 | 53 | DECLARE_READ8_MEMBER( data_r ); |
| 54 | 54 | DECLARE_WRITE8_MEMBER( data_w ); |
| 55 | ||
| 55 | ||
| 56 | 56 | // inline configuration |
| 57 | 57 | static void static_set_cputag(device_t &device, const char *tag); |
| 58 | 58 | static void static_set_isatag(device_t &device, const char *tag); |
| r11489 | r11490 | |
| 82 | 82 | const char *m_cputag; |
| 83 | 83 | const char *m_isatag; |
| 84 | 84 | const char *m_biostag; |
| 85 | ||
| 86 | 85 | |
| 86 | ||
| 87 | 87 | UINT8 m_registers[0x20]; |
| 88 | 88 | }; |
| 89 | 89 |
| r11489 | r11490 | |
|---|---|---|
| 52 | 52 | public: |
| 53 | 53 | // construction/destruction |
| 54 | 54 | c8280_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 55 | ||
| 55 | ||
| 56 | 56 | // inline configuration helpers |
| 57 | 57 | static void static_set_config(device_t &device, int address); |
| 58 | 58 |
| r11489 | r11490 | |
|---|---|---|
| 72 | 72 | virtual void device_start(); |
| 73 | 73 | virtual void device_reset(); |
| 74 | 74 | virtual void device_config_complete(); |
| 75 | ||
| 75 | ||
| 76 | 76 | virtual const rom_entry *device_rom_region() const; |
| 77 | virtual machine_config_constructor device_mconfig_additions() const; | |
| 77 | virtual machine_config_constructor device_mconfig_additions() const; | |
| 78 | 78 | private: |
| 79 | 79 | // internal state |
| 80 | 80 | device_t *m_cpu; |
| r11489 | r11490 | |
|---|---|---|
| 82 | 82 | virtual const rom_entry *device_rom_region() const; |
| 83 | 83 | virtual machine_config_constructor device_mconfig_additions() const; |
| 84 | 84 | virtual const input_port_token *device_input_ports() const; |
| 85 | ||
| 85 | ||
| 86 | 86 | DECLARE_READ8_MEMBER( _3d_r ); |
| 87 | 87 | DECLARE_WRITE8_MEMBER( _4d_w ); |
| 88 | 88 | DECLARE_WRITE8_MEMBER( _4b_w ); |
| r11489 | r11490 | |
| 98 | 98 | virtual void device_start(); |
| 99 | 99 | virtual void device_reset(); |
| 100 | 100 | virtual void device_config_complete(); |
| 101 | ||
| 101 | ||
| 102 | 102 | // device_abcbus_interface overrides |
| 103 | 103 | virtual void abcbus_cs(UINT8 data); |
| 104 | 104 | virtual void abcbus_rst(int state); |
| r11489 | r11490 | |
|---|---|---|
| 40 | 40 | //------------------------------------------------- |
| 41 | 41 | |
| 42 | 42 | void isa8_slot_device::device_start() |
| 43 | { | |
| 43 | { | |
| 44 | 44 | m_isa = machine().device<isa8_device>(m_isa_tag); |
| 45 | 45 | device_isa8_card_interface *dev = dynamic_cast<device_isa8_card_interface *>(get_card_device()); |
| 46 | if (dev) m_isa->add_isa_card(dev, m_isa_num); | |
| 46 | if (dev) m_isa->add_isa_card(dev, m_isa_num); | |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 |
| r11489 | r11490 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | class isa8_device; |
| 70 | 70 | |
| 71 | class isa8_slot_device : public device_t, | |
| 71 | class isa8_slot_device : public device_t, | |
| 72 | 72 | public device_slot_interface |
| 73 | 73 | { |
| 74 | 74 | public: |
| r11489 | r11490 | |
| 79 | 79 | |
| 80 | 80 | // inline configuration |
| 81 | 81 | static void static_set_isa8_slot(device_t &device, const char *tag, int num); |
| 82 | private: | |
| 82 | private: | |
| 83 | 83 | // configuration |
| 84 | 84 | const char *m_isa_tag; |
| 85 | 85 | int m_isa_num; |
| 86 | isa8_device *m_isa; | |
| 86 | isa8_device *m_isa; | |
| 87 | 87 | }; |
| 88 | 88 | |
| 89 | 89 | // device type definition |
| r11489 | r11490 | |
| 114 | 114 | isa8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 115 | 115 | // inline configuration |
| 116 | 116 | static void static_set_cputag(device_t &device, const char *tag); |
| 117 | ||
| 117 | ||
| 118 | 118 | void add_isa_card(device_isa8_card_interface *card,int pos); |
| 119 | 119 | void install_device(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_device_func rhandler, const char* rhandler_name, write8_device_func whandler, const char *whandler_name); |
| 120 | 120 | void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, const char *tag, UINT8 *data); |
| r11489 | r11490 | |
| 158 | 158 | devcb_resolved_write_line m_out_drq3_func; |
| 159 | 159 | |
| 160 | 160 | device_isa8_card_interface *m_isa_device[8]; |
| 161 | const char *m_cputag; | |
| 161 | const char *m_cputag; | |
| 162 | 162 | }; |
| 163 | 163 | |
| 164 | 164 | |
| r11489 | r11490 | |
| 184 | 184 | |
| 185 | 185 | // inline configuration |
| 186 | 186 | static void static_set_isa8_tag(device_t &device, const char *tag); |
| 187 | public: | |
| 188 | isa8_device *m_isa; | |
| 187 | public: | |
| 188 | isa8_device *m_isa; | |
| 189 | 189 | }; |
| 190 | 190 | |
| 191 | 191 | #endif /* __ISA_H__ */ |
| r11489 | r11490 | |
|---|---|---|
| 129 | 129 | int m_sel0; // drive select 0 |
| 130 | 130 | int m_sel1; // drive select 1 |
| 131 | 131 | |
| 132 | ||
| 132 | ||
| 133 | 133 | UINT8 m_drive_type; // drive type |
| 134 | 134 | UINT8 m_s1; // ABC bus address |
| 135 | 135 | }; |
| r11489 | r11490 | |
|---|---|---|
| 49 | 49 | const device_type C1571 = &device_creator<c1571_device>; |
| 50 | 50 | const device_type C1571CR = &device_creator<c1571cr_device>; |
| 51 | 51 | |
| 52 | ||
| 52 | ||
| 53 | 53 | //------------------------------------------------- |
| 54 | 54 | // device_config_complete - perform any |
| 55 | 55 | // operations now that the configuration is |
| r11489 | r11490 | |
| 737 | 737 | void base_c1571_device::device_start() |
| 738 | 738 | { |
| 739 | 739 | m_bus = machine().device<cbm_iec_device>(CBM_IEC_TAG); |
| 740 | ||
| 740 | ||
| 741 | 741 | // map ROM |
| 742 | 742 | address_space *program = m_maincpu->memory().space(AS_PROGRAM); |
| 743 | 743 | program->install_rom(0x8000, 0xffff, subregion(M6502_TAG)->base()); |
| r11489 | r11490 | |
|---|---|---|
| 8 | 8 | KTC A65-02486-232 |
| 9 | 9 | |
| 10 | 10 | |-----------------------------------------------------------------------| |
| 11 | | SW1 CN1 LS393 | | |
| 12 | | 4020 7406 LS132 7407 LS02 7407 NE556 LS1 | | |
| 11 | | SW1 CN1 LS393 | | |
| 12 | | 4020 7406 LS132 7407 LS02 7407 NE556 LS1 | | |
| 13 | 13 | | | |
| 14 | | | |
| 14 | | 22-950-3B XTAL CPU ROM0 ROM1 LS373 LS240 22-908-03 | | |
| 15 | 15 | | | |
| 16 | 16 | | | |
| 17 | 17 | | | |
| r11489 | r11490 | |
| 24 | 24 | Notes: |
| 25 | 25 | All IC's shown. |
| 26 | 26 | |
| 27 | CPU - Signetics SCN8035A 8035 CPU | |
| 28 | ROM0 - NEC D2716D 2Kx8 ROM "-78" | |
| 29 | ROM1 - not populated | |
| 30 | 22-950-3B - Exar Semiconductor XR22-950-3B keyboard matrix row driver with 4 to 12 decoder/demultiplexer | |
| 31 | 22-908-03 - Exar Semiconductor XR22-908-03 keyboard matrix capacitive readout latch | |
| 32 | CN1 - 1x12 PCB header | |
| 33 | LS1 - loudspeaker | |
| 34 | SW1 - reset switch | |
| 27 | CPU - Signetics SCN8035A 8035 CPU | |
| 28 | ROM0 - NEC D2716D 2Kx8 ROM "-78" | |
| 29 | ROM1 - not populated | |
| 30 | 22-950-3B - Exar Semiconductor XR22-950-3B keyboard matrix row driver with 4 to 12 decoder/demultiplexer | |
| 31 | 22-908-03 - Exar Semiconductor XR22-908-03 keyboard matrix capacitive readout latch | |
| 32 | CN1 - 1x12 PCB header | |
| 33 | LS1 - loudspeaker | |
| 34 | SW1 - reset switch | |
| 35 | 35 | |
| 36 | 36 | */ |
| 37 | 37 | |
| r11489 | r11490 | |
| 87 | 87 | ROM_START( abc77 ) |
| 88 | 88 | ROM_REGION( 0x1000, I8035_TAG, 0 ) |
| 89 | 89 | ROM_LOAD( "-78.z10", 0x000, 0x800, CRC(635986ce) SHA1(04a30141ac611d0544bbb786061515040c23480c) ) |
| 90 | // | |
| 90 | // ROM_LOAD( "keyboard.z14", 0x0800, 0x0800, NO_DUMP ) // non-Swedish keyboard encoding ROM | |
| 91 | 91 | ROM_END |
| 92 | 92 | |
| 93 | 93 | |
| r11489 | r11490 | |
| 492 | 492 | |
| 493 | 493 | static const char *const keynames[] = { "X0", "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "X11" }; |
| 494 | 494 | UINT8 data = 0xff; |
| 495 | ||
| 495 | ||
| 496 | 496 | if (m_stb && m_keylatch < 12) |
| 497 | 497 | { |
| 498 | 498 | data = input_port_read(this, keynames[m_keylatch]); |
| r11489 | r11490 | |
|---|---|---|
| 107 | 107 | virtual void device_start(); |
| 108 | 108 | virtual void device_reset(); |
| 109 | 109 | virtual void device_config_complete(); |
| 110 | ||
| 110 | ||
| 111 | 111 | // device_cbm_iec_interface overrides |
| 112 | 112 | void cbm_iec_srq(int state); |
| 113 | 113 | void cbm_iec_atn(int state); |
| r11489 | r11490 | |
|---|---|---|
| 62 | 62 | virtual const rom_entry *device_rom_region() const; |
| 63 | 63 | virtual machine_config_constructor device_mconfig_additions() const; |
| 64 | 64 | virtual const input_port_token *device_input_ports() const; |
| 65 | ||
| 65 | ||
| 66 | 66 | static INPUT_CHANGED( keyboard_reset ); |
| 67 | 67 | |
| 68 | 68 | DECLARE_READ8_MEMBER( p1_r ); |
| r11489 | r11490 | |
| 81 | 81 | virtual void device_reset(); |
| 82 | 82 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 83 | 83 | virtual void device_config_complete(); |
| 84 | ||
| 84 | ||
| 85 | 85 | private: |
| 86 | 86 | static const device_timer_id TIMER_SERIAL = 0; |
| 87 | 87 | static const device_timer_id TIMER_RESET = 1; |
| r11489 | r11490 | |
|---|---|---|
| 177 | 177 | |
| 178 | 178 | required_device<ieee488_stub_device> m_stub; |
| 179 | 179 | |
| 180 | ||
| 180 | ||
| 181 | 181 | }; |
| 182 | 182 | |
| 183 | 183 | |
| r11489 | r11490 | |
| 204 | 204 | public ieee488_stub_interface, |
| 205 | 205 | public device_ieee488_interface |
| 206 | 206 | { |
| 207 | public: | |
| 207 | public: | |
| 208 | 208 | // construction/destruction |
| 209 | 209 | ieee488_stub_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 210 | 210 |
| r11489 | r11490 | |
|---|---|---|
| 120 | 120 | virtual void device_start(); |
| 121 | 121 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 122 | 122 | virtual void device_config_complete(); |
| 123 | ||
| 123 | ||
| 124 | 124 | inline void trigger_interrupt(UINT8 line); |
| 125 | 125 | inline void transmit_ipc_data(); |
| 126 | 126 | inline void transmit_bit(int state); |
| r11489 | r11490 | |
|---|---|---|
| 1274 | 1274 | if (size) |
| 1275 | 1275 | { |
| 1276 | 1276 | memcpy(state->m_roml, image.get_software_region("roml"), MIN(0x2000, size)); |
| 1277 | ||
| 1277 | ||
| 1278 | 1278 | if (size == 0x4000) |
| 1279 | 1279 | { |
| 1280 | 1280 | // continue loading to ROMH region |
| r11489 | r11490 | |
| 1306 | 1306 | { |
| 1307 | 1307 | #define VW64_DECRYPT_ADDRESS(_offset) \ |
| 1308 | 1308 | BITSWAP16(_offset,15,14,13,12,7,8,6,9,5,11,4,3,2,10,1,0) |
| 1309 | ||
| 1309 | ||
| 1310 | 1310 | #define VW64_DECRYPT_DATA(_data) \ |
| 1311 | 1311 | BITSWAP8(_data,7,6,0,5,1,4,2,3) |
| 1312 | 1312 | |
| r11489 | r11490 | |
| 1338 | 1338 | { |
| 1339 | 1339 | /* |
| 1340 | 1340 | |
| 1341 | ||
| 1341 | bit description | |
| 1342 | 1342 | |
| 1343 | 0 | |
| 1344 | 1 | |
| 1345 | 2 | |
| 1346 | 3 | |
| 1347 | 4 A14 | |
| 1348 | 5 A15 | |
| 1349 | 6 A16 | |
| 1350 | 7 A13 | |
| 1343 | 0 | |
| 1344 | 1 | |
| 1345 | 2 | |
| 1346 | 3 | |
| 1347 | 4 A14 | |
| 1348 | 5 A15 | |
| 1349 | 6 A16 | |
| 1350 | 7 A13 | |
| 1351 | 1351 | |
| 1352 | ||
| 1352 | */ | |
| 1353 | 1353 | |
| 1354 | 1354 | c64_state *state = space->machine().driver_data<c64_state>(); |
| 1355 | 1355 | |
| r11489 | r11490 | |
| 1363 | 1363 | { |
| 1364 | 1364 | #define HUGO_DECRYPT_ADDRESS(_offset) \ |
| 1365 | 1365 | BITSWAP16(_offset,15,14,13,12,7,6,5,4,3,2,1,0,8,9,11,10) |
| 1366 | ||
| 1366 | ||
| 1367 | 1367 | #define HUGO_DECRYPT_DATA(_data) \ |
| 1368 | 1368 | BITSWAP8(_data,7,6,5,4,0,1,2,3) |
| 1369 | 1369 | |
| r11489 | r11490 | |
| 1418 | 1418 | { |
| 1419 | 1419 | /* |
| 1420 | 1420 | |
| 1421 | Die 96KB des Moduls belegen in 6 16K-Banken den Modulbereich von $8000- $c000. | |
| 1422 | Die Umschaltung erfolgt mit einem Register in $DE80 (-$DEFF, nicht voll decodiert), | |
| 1423 | welches nur beschrieben und nicht gelesen werden kann. Durch Schreiben der Werte | |
| 1424 | $08 oder $0A selektiert man eine der beiden RAM-Banke, $FF deselektiert das Modul. | |
| 1425 | ||
| 1426 | Zusatzlich muss Adresse 1 entsprechend belegt werden :$37 fur Lesezugriffe auf das | |
| 1427 | Modul, $35 oder $34 fur Lesezugriffe auf das Ram des C64. Schreibzugriffe lenkt | |
| 1428 | der C64 grundsatzlich ins eigene RAM, weshalb zum Beschreiben des Modulrams ein | |
| 1429 | Trick notwendig ist: Man schaltet das Ram-Modul parallel zum C64-Ram, rettet vor | |
| 1430 | dem Schreiben den C64-Ram-Inhalt und stellt ihn nachher wieder her... | |
| 1431 | ||
| 1432 | Ldy#0 | |
| 1433 | Lda#$35 | |
| 1434 | Sta 1 | |
| 1435 | Loop Lda (Ptr),y | |
| 1436 | Pha | |
| 1437 | Lda#$08 | |
| 1438 | Sta $DE80 | |
| 1439 | Lda (Quell),y | |
| 1440 | Sta (Ptr),y | |
| 1441 | Lda#$FF | |
| 1442 | Sta $DE80 | |
| 1443 | Pla | |
| 1444 | Sta (Ptr),y | |
| 1445 | Iny | |
| 1446 | Bne Loop | |
| 1421 | Die 96KB des Moduls belegen in 6 16K-Banken den Modulbereich von $8000- $c000. | |
| 1422 | Die Umschaltung erfolgt mit einem Register in $DE80 (-$DEFF, nicht voll decodiert), | |
| 1423 | welches nur beschrieben und nicht gelesen werden kann. Durch Schreiben der Werte | |
| 1424 | $08 oder $0A selektiert man eine der beiden RAM-Banke, $FF deselektiert das Modul. | |
| 1447 | 1425 | |
| 1448 | */ | |
| 1426 | Zusatzlich muss Adresse 1 entsprechend belegt werden :$37 fur Lesezugriffe auf das | |
| 1427 | Modul, $35 oder $34 fur Lesezugriffe auf das Ram des C64. Schreibzugriffe lenkt | |
| 1428 | der C64 grundsatzlich ins eigene RAM, weshalb zum Beschreiben des Modulrams ein | |
| 1429 | Trick notwendig ist: Man schaltet das Ram-Modul parallel zum C64-Ram, rettet vor | |
| 1430 | dem Schreiben den C64-Ram-Inhalt und stellt ihn nachher wieder her... | |
| 1449 | 1431 | |
| 1432 | Ldy#0 | |
| 1433 | Lda#$35 | |
| 1434 | Sta 1 | |
| 1435 | Loop Lda (Ptr),y | |
| 1436 | Pha | |
| 1437 | Lda#$08 | |
| 1438 | Sta $DE80 | |
| 1439 | Lda (Quell),y | |
| 1440 | Sta (Ptr),y | |
| 1441 | Lda#$FF | |
| 1442 | Sta $DE80 | |
| 1443 | Pla | |
| 1444 | Sta (Ptr),y | |
| 1445 | Iny | |
| 1446 | Bne Loop | |
| 1447 | ||
| 1448 | */ | |
| 1449 | ||
| 1450 | 1450 | c64_state *state = space->machine().driver_data<c64_state>(); |
| 1451 | 1451 | UINT8 *cart = space->machine().region("user1")->base(); |
| 1452 | 1452 | |
| r11489 | r11490 | |
| 1468 | 1468 | memcpy(state->m_roml, cart + address, 0x2000); |
| 1469 | 1469 | memcpy(state->m_romh, cart + address + 0x2000, 0x2000); |
| 1470 | 1470 | |
| 1471 | if (state->m_game) | |
| 1471 | if (state->m_game) | |
| 1472 | 1472 | { |
| 1473 | 1473 | // enable cartridge |
| 1474 | 1474 | state->m_game = 0; |
| r11489 | r11490 | |
| 1511 | 1511 | memcpy(state->m_romh, cart + 0x2000, 0x2000); |
| 1512 | 1512 | } |
| 1513 | 1513 | else |
| 1514 | { | |
| 1514 | { | |
| 1515 | 1515 | // ROM |
| 1516 | 1516 | memcpy(state->m_roml, cart + address, 0x2000); |
| 1517 | 1517 | memcpy(state->m_romh, cart + address + 0x2000, 0x2000); |
| r11489 | r11490 | |
| 1562 | 1562 | } |
| 1563 | 1563 | else |
| 1564 | 1564 | { |
| 1565 | if (!strcmp(cart_type, "vizawrite")) | |
| 1565 | if (!strcmp(cart_type, "vizawrite")) | |
| 1566 | 1566 | load_vizawrite_cartridge(image); |
| 1567 | ||
| 1568 | else if (!strcmp(cart_type, "hugo")) | |
| 1567 | ||
| 1568 | else if (!strcmp(cart_type, "hugo")) | |
| 1569 | 1569 | load_hugo_cartridge(image); |
| 1570 | ||
| 1571 | else if (!strcmp(cart_type, "easy_calc_result")) | |
| 1570 | ||
| 1571 | else if (!strcmp(cart_type, "easy_calc_result")) | |
| 1572 | 1572 | load_easy_calc_result_cartridge(image); |
| 1573 | ||
| 1574 | else if (!strcmp(cart_type, "pagefox")) | |
| 1573 | ||
| 1574 | else if (!strcmp(cart_type, "pagefox")) | |
| 1575 | 1575 | load_pagefox_cartridge(image); // TODO writing to the expanded 32KB RAM is not supported! |
| 1576 | ||
| 1577 | else if (!strcmp(cart_type, "multiscreen")) | |
| 1576 | ||
| 1577 | else if (!strcmp(cart_type, "multiscreen")) | |
| 1578 | 1578 | load_multiscreen_cartridge(image); // TODO 8K RAM expansion test fails on boot |
| 1579 | 1579 | |
| 1580 | 1580 | else |
| r11489 | r11490 | |
|---|---|---|
| 43 | 43 | virtual void device_start(); |
| 44 | 44 | virtual void device_reset(); |
| 45 | 45 | virtual void device_config_complete(); |
| 46 | ||
| 46 | ||
| 47 | 47 | void install_device(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_device_func rhandler, const char* rhandler_name, write8_device_func whandler, const char *whandler_name); |
| 48 | 48 | void install_device_write(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, write8_device_func whandler, const char *whandler_name); |
| 49 | 49 | public: |
| r11489 | r11490 | |
|---|---|---|
| 59 | 59 | virtual bool screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect); |
| 60 | 60 | |
| 61 | 61 | void bankswitch(); |
| 62 | ||
| 62 | ||
| 63 | 63 | DECLARE_READ8_MEMBER( eprom_r ); |
| 64 | 64 | DECLARE_WRITE8_MEMBER( eprom_w ); |
| 65 | 65 | DECLARE_WRITE8_MEMBER( ppi_pa_w ); |
| r11489 | r11490 | |
|---|---|---|
| 31 | 31 | // device-level overrides |
| 32 | 32 | virtual void device_start(); |
| 33 | 33 | virtual void device_reset(); |
| 34 | public: | |
| 34 | public: | |
| 35 | 35 | int framecnt; |
| 36 | 36 | |
| 37 | 37 | UINT8 mode_control; |
| r11489 | r11490 | |
|---|---|---|
| 692 | 692 | m_gchr(0), |
| 693 | 693 | m_vram_bank(0), |
| 694 | 694 | m_bitmap_mod(0), |
| 695 | ||
| 695 | ||
| 696 | 696 | { |
| 697 | 697 | m_shortname = "upd7220"; |
| 698 | 698 | for (int i = 0; i < 16; i++) |
| r11489 | r11490 | |
|---|---|---|
| 36 | 36 | public: |
| 37 | 37 | // construction/destruction |
| 38 | 38 | hd44780_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 39 | ||
| 39 | ||
| 40 | 40 | // device interface |
| 41 | 41 | DECLARE_WRITE8_MEMBER(control_write); |
| 42 | 42 | DECLARE_READ8_MEMBER(control_read); |
| r11489 | r11490 | |
|---|---|---|
| 157 | 157 | AM_RANGE(0xF000, 0xFEFF) AM_RAMBANK("bank16") |
| 158 | 158 | AM_RANGE(0xff00, 0xff03) AM_DEVREADWRITE_MODERN("pia_0", pia6821_device, read, write) AM_MIRROR(0x0018) |
| 159 | 159 | AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r, acia_6551_w) AM_MIRROR(0x0018) |
| 160 | AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w) | |
| 160 | AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w) | |
| 161 | 161 | AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w) |
| 162 | 162 | AM_RANGE(0xff90, 0xffbf) AM_NOP |
| 163 | 163 | AM_RANGE(0xffc0, 0xffdf) AM_DEVWRITE("sam", sam6883_w) |
| r11489 | r11490 | |
| 191 | 191 | AM_RANGE(0xF000, 0xFEFF) AM_RAMBANK("bank16") |
| 192 | 192 | AM_RANGE(0xff00, 0xff03) AM_DEVREADWRITE_MODERN("pia_0", pia6821_device, read, write) AM_MIRROR(0x0018) |
| 193 | 193 | AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r, acia_6551_w) AM_MIRROR(0x0018) |
| 194 | AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w) | |
| 194 | AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w) | |
| 195 | 195 | AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w) |
| 196 | 196 | AM_RANGE(0xff90, 0xffbf) AM_NOP |
| 197 | 197 | AM_RANGE(0xffc0, 0xffdf) AM_DEVWRITE("sam", sam6883_w) |
| r11489 | r11490 | |
| 269 | 269 | AM_RANGE(0xF000, 0xFEFF) AM_RAMBANK("bank16") |
| 270 | 270 | AM_RANGE(0xff00, 0xff03) AM_DEVREADWRITE_MODERN("pia_0", pia6821_device, read, write) |
| 271 | 271 | AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r, acia_6551_w) |
| 272 | AM_RANGE(0xff20, 0xff23) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w) | |
| 273 | AM_RANGE(0xff24, 0xff27) AM_DEVREADWRITE_MODERN("pia_2", pia6821_device, read, write) /* Third PIA on Dragon Alpha */ | |
| 272 | AM_RANGE(0xff20, 0xff23) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w) | |
| 273 | AM_RANGE(0xff24, 0xff27) AM_DEVREADWRITE_MODERN("pia_2", pia6821_device, read, write) /* Third PIA on Dragon Alpha */ | |
| 274 | 274 | AM_RANGE(0Xff28, 0xff2b) AM_READWRITE(dgnalpha_modem_r, dgnalpha_modem_w) /* Modem, dummy to stop eror log ! */ |
| 275 | 275 | AM_RANGE(0xff2c, 0xff2f) AM_READWRITE(dgnalpha_wd2797_r, dgnalpha_wd2797_w) /* Alpha onboard disk interface */ |
| 276 | 276 | AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w) |
| r11489 | r11490 | |
|---|---|---|
| 127 | 127 | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", pc_isa8_cards, "hdc") |
| 128 | 128 | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", pc_isa8_cards, "adlib") |
| 129 | 129 | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", pc_isa8_cards, NULL) |
| 130 | ||
| 130 | ||
| 131 | 131 | /* keyboard */ |
| 132 | 132 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |
| 133 | 133 |
| r11489 | r11490 | |
|---|---|---|
| 724 | 724 | static WRITE8_DEVICE_HANDLER( disp_ppi_pc_w ) |
| 725 | 725 | { |
| 726 | 726 | i8255_device *ppi = static_cast<i8255_device*>(device); |
| 727 | ||
| 727 | ||
| 728 | 728 | ppi->pc2_w(BIT(data, 6)); |
| 729 | 729 | ppi->pc4_w(BIT(data, 7)); |
| 730 | 730 | } |
| r11489 | r11490 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | ||
| 2 | ||
| 3 | 3 | CM-1800 |
| 4 | (note name is in cyrilic letters) | |
| 5 | ||
| 6 | more info at http://ru.wikipedia.org/wiki/%D0%A1%D0%9C_%D0%AD%D0%92%D0%9C | |
| 7 | and http://sapr.lti-gti.ru/index.php?id=66 | |
| 8 | ||
| 4 | (note name is in cyrilic letters) | |
| 5 | ||
| 6 | more info at http://ru.wikipedia.org/wiki/%D0%A1%D0%9C_%D0%AD%D0%92%D0%9C | |
| 7 | and http://sapr.lti-gti.ru/index.php?id=66 | |
| 8 | ||
| 9 | 9 | 26/04/2011 Skeleton driver. |
| 10 | 10 | |
| 11 | 11 | ****************************************************************************/ |
| r11489 | r11490 | |
| 26 | 26 | DECLARE_READ8_MEMBER( term_r ); |
| 27 | 27 | DECLARE_WRITE8_MEMBER( term_ready_w ); |
| 28 | 28 | DECLARE_WRITE8_MEMBER( kbd_put ); |
| 29 | ||
| 29 | ||
| 30 | 30 | UINT8 m_key_ready; |
| 31 | 31 | UINT8 m_term_data; |
| 32 | 32 | }; |
| r11489 | r11490 | |
| 71 | 71 | INPUT_PORTS_END |
| 72 | 72 | |
| 73 | 73 | |
| 74 | static MACHINE_RESET(cm1800) | |
| 75 | { | |
| 74 | static MACHINE_RESET(cm1800) | |
| 75 | { | |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | static GENERIC_TERMINAL_INTERFACE( cm1800_terminal_intf ) |
| r11489 | r11490 | |
| 84 | 84 | /* basic machine hardware */ |
| 85 | 85 | MCFG_CPU_ADD("maincpu",I8080, XTAL_2MHz) |
| 86 | 86 | MCFG_CPU_PROGRAM_MAP(cm1800_mem) |
| 87 | MCFG_CPU_IO_MAP(cm1800_io) | |
| 87 | MCFG_CPU_IO_MAP(cm1800_io) | |
| 88 | 88 | |
| 89 | 89 | MCFG_MACHINE_RESET(cm1800) |
| 90 | ||
| 90 | ||
| 91 | 91 | /* video hardware */ |
| 92 | 92 | MCFG_FRAGMENT_ADD( generic_terminal ) |
| 93 | 93 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG,cm1800_terminal_intf) |
| r11489 | r11490 | |
|---|---|---|
| 101 | 101 | { |
| 102 | 102 | /* |
| 103 | 103 | |
| 104 | ||
| 104 | bit description | |
| 105 | 105 | |
| 106 | PA0 keyboard data 0 | |
| 107 | PA1 keyboard data 1 | |
| 108 | PA2 keyboard data 2 | |
| 109 | PA3 keyboard data 3 | |
| 110 | PA4 keyboard data 4 | |
| 111 | PA5 keyboard data 5 | |
| 112 | PA6 keyboard data 6 | |
| 113 | PA7 reg out | |
| 106 | PA0 keyboard data 0 | |
| 107 | PA1 keyboard data 1 | |
| 108 | PA2 keyboard data 2 | |
| 109 | PA3 keyboard data 3 | |
| 110 | PA4 keyboard data 4 | |
| 111 | PA5 keyboard data 5 | |
| 112 | PA6 keyboard data 6 | |
| 113 | PA7 reg out | |
| 114 | 114 | |
| 115 | ||
| 115 | */ | |
| 116 | 116 | |
| 117 | 117 | switch (m_ls145_p) |
| 118 | 118 | { |
| r11489 | r11490 | |
| 127 | 127 | { |
| 128 | 128 | /* |
| 129 | 129 | |
| 130 | ||
| 130 | bit description | |
| 131 | 131 | |
| 132 | PA0 LED segment A | |
| 133 | PA1 LED segment B | |
| 134 | PA2 LED segment C | |
| 135 | PA3 LED segment D | |
| 136 | PA4 LED segment E | |
| 137 | PA5 LED segment F | |
| 138 | PA6 LED segment G | |
| 139 | PA7 | |
| 132 | PA0 LED segment A | |
| 133 | PA1 LED segment B | |
| 134 | PA2 LED segment C | |
| 135 | PA3 LED segment D | |
| 136 | PA4 LED segment E | |
| 137 | PA5 LED segment F | |
| 138 | PA6 LED segment G | |
| 139 | PA7 | |
| 140 | 140 | |
| 141 | */ | |
| 142 | ||
| 141 | */ | |
| 142 | ||
| 143 | 143 | m_segment = data; |
| 144 | 144 | m_led_refresh_timer->adjust(attotime::from_usec(70)); |
| 145 | 145 | } |
| r11489 | r11490 | |
| 148 | 148 | { |
| 149 | 149 | /* |
| 150 | 150 | |
| 151 | ||
| 151 | bit description | |
| 152 | 152 | |
| 153 | PB0 reg out | |
| 154 | PB1 | |
| 155 | PB2 | |
| 156 | PB3 | |
| 157 | PB4 | |
| 158 | PB5 | |
| 159 | PB6 | |
| 160 | PB7 | |
| 153 | PB0 reg out | |
| 154 | PB1 | |
| 155 | PB2 | |
| 156 | PB3 | |
| 157 | PB4 | |
| 158 | PB5 | |
| 159 | PB6 | |
| 160 | PB7 | |
| 161 | 161 | |
| 162 | ||
| 162 | */ | |
| 163 | 163 | |
| 164 | 164 | return 0; |
| 165 | 165 | } |
| r11489 | r11490 | |
| 168 | 168 | { |
| 169 | 169 | /* |
| 170 | 170 | |
| 171 | ||
| 171 | bit description | |
| 172 | 172 | |
| 173 | PB0 | |
| 174 | PB1 LS145 P0 | |
| 175 | PB2 LS145 P1 | |
| 176 | PB3 LS145 P2 | |
| 177 | PB4 LS145 P3 | |
| 178 | PB5 reg in | |
| 179 | PB6 reg in | |
| 180 | PB7 led output enable | |
| 173 | PB0 | |
| 174 | PB1 LS145 P0 | |
| 175 | PB2 LS145 P1 | |
| 176 | PB3 LS145 P2 | |
| 177 | PB4 LS145 P3 | |
| 178 | PB5 reg in | |
| 179 | PB6 reg in | |
| 180 | PB7 led output enable | |
| 181 | 181 | |
| 182 | ||
| 182 | */ | |
| 183 | 183 | |
| 184 | 184 | m_ls145_p = (data >> 1) & 0x0f; |
| 185 | 185 | } |
| r11489 | r11490 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | 05/11/2009 Skeleton driver. |
| 6 | 6 | |
| 7 | TODO: | |
| 8 | - RTC check still fails | |
| 7 | TODO: | |
| 8 | - RTC check still fails | |
| 9 | 9 | |
| 10 | 000061D0: 61FF FFFF F24E bsr $5420; (2+) | |
| 11 | 000061D6: 4640 not.w D0 | |
| 12 | 000061D8: 6704 beq $61de | |
| 13 | 000061DA: B440 cmp.w D0, D2 | |
| 14 | 000061DC: 6704 beq $61e2 <---------------- D0 and D2 must be equal there | |
| 15 | 000061DE: 70FF moveq #-$1, D0 | |
| 16 | 000061E0: 6002 bra $61e4 | |
| 17 | 000061E2: 4280 clr.l D0 | |
| 18 | 000061E4: 4CEE 0C04 FFF4 movem.l (-$c,A6), D2/A2-A3 | |
| 19 | 000061EA: 4E5E unlk A6 | |
| 20 | 000061EC: 4E75 rts | |
| 10 | 000061D0: 61FF FFFF F24E bsr $5420; (2+) | |
| 11 | 000061D6: 4640 not.w D0 | |
| 12 | 000061D8: 6704 beq $61de | |
| 13 | 000061DA: B440 cmp.w D0, D2 | |
| 14 | 000061DC: 6704 beq $61e2 <---------------- D0 and D2 must be equal there | |
| 15 | 000061DE: 70FF moveq #-$1, D0 | |
| 16 | 000061E0: 6002 bra $61e4 | |
| 17 | 000061E2: 4280 clr.l D0 | |
| 18 | 000061E4: 4CEE 0C04 FFF4 movem.l (-$c,A6), D2/A2-A3 | |
| 19 | 000061EA: 4E5E unlk A6 | |
| 20 | 000061EC: 4E75 rts | |
| 21 | 21 | |
| 22 | ||
| 22 | DASM notes: | |
| 23 | 23 | - Jumping to 0x21ee means that the system POST failed |
| 24 | 24 | - 0x258c: ROM test (check with 0x1a) |
| 25 | 25 | - currently fails at 0xfee sub-routine (jumping it starts the MO disk check) |
| r11489 | r11490 | |
|---|---|---|
| 86 | 86 | |
| 87 | 87 | - ERROR repeats forever after entering incorrect command |
| 88 | 88 | |
| 89 | C26D: bcs $C2AA | |
| 90 | C26F: sta $53 | |
| 91 | C271: lda $C0EE,x | |
| 92 | C274: bcc $C29F | |
| 93 | C29F: sta $52 | |
| 94 | C2A1: sty $03 | |
| 95 | C2A3: ldx $04 | |
| 96 | C2A5: jmp ($0052) | |
| 97 | F251: ora $0C0D <---- Table of Base Address Value for Mnemonics, should not jump here!! | |
| 89 | C26D: bcs $C2AA | |
| 90 | C26F: sta $53 | |
| 91 | C271: lda $C0EE,x | |
| 92 | C274: bcc $C29F | |
| 93 | C29F: sta $52 | |
| 94 | C2A1: sty $03 | |
| 95 | C2A3: ldx $04 | |
| 96 | C2A5: jmp ($0052) | |
| 97 | F251: ora $0C0D <---- Table of Base Address Value for Mnemonics, should not jump here!! | |
| 98 | 98 | |
| 99 | 99 | - connect to softwarelist |
| 100 | 100 | - e000 EPROM switching |
| r11489 | r11490 | |
|---|---|---|
| 336 | 336 | |
| 337 | 337 | /* video hardware */ |
| 338 | 338 | MCFG_FRAGMENT_ADD( pcvideo_cga ) |
| 339 | ||
| 339 | ||
| 340 | 340 | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", ibm_isa8_cards, "com") |
| 341 | 341 | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", ibm_isa8_cards, "fdc") |
| 342 | 342 | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", ibm_isa8_cards, "hdc") |
| r11489 | r11490 | |
| 374 | 374 | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", ibm_isa8_cards, NULL) |
| 375 | 375 | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", ibm_isa8_cards, NULL) |
| 376 | 376 | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", ibm_isa8_cards, NULL) |
| 377 | ||
| 377 | ||
| 378 | 378 | /* keyboard */ |
| 379 | 379 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |
| 380 | 380 |
| r11489 | r11490 | |
|---|---|---|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | virtual void machine_start(); |
| 58 | ||
| 58 | ||
| 59 | 59 | UINT8 m_regs[0x100]; |
| 60 | 60 | |
| 61 | 61 | emu_timer* m_timer0_timer; |
| r11489 | r11490 | |
|---|---|---|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | static ADDRESS_MAP_START( bbca_mem, AS_PROGRAM, 8 ) |
| 100 | ADDRESS_MAP_UNMAP_HIGH | |
| 100 | ADDRESS_MAP_UNMAP_HIGH | |
| 101 | 101 | |
| 102 | 102 | AM_RANGE(0x0000, 0x3fff) AM_READ_BANK("bank1") AM_WRITE(bbc_memorya1_w) /* 0000-3fff Regular Ram */ |
| 103 | 103 | AM_RANGE(0x4000, 0x7fff) AM_READ_BANK("bank3") AM_WRITE(bbc_memorya1_w) /* 4000-7fff Repeat of the Regular Ram */ |
| r11489 | r11490 | |
| 138 | 138 | |
| 139 | 139 | AM_RANGE(0x8000, 0xbfff) AM_READ_BANK("bank4") AM_WRITE(bbc_memoryb4_w) /* 8000-bfff Paged ROM */ |
| 140 | 140 | |
| 141 | AM_RANGE(0xc000, 0xfbff) AM_READ_BANK("bank7") | |
| 141 | AM_RANGE(0xc000, 0xfbff) AM_READ_BANK("bank7") | |
| 142 | 142 | |
| 143 | 143 | AM_RANGE(0xfc00, 0xfdff) AM_READWRITE(bbc_opus_read, bbc_opus_write) /* fc00-fdff OPUS Disc Controller */ |
| 144 | 144 | |
| r11489 | r11490 | |
| 300 | 300 | - "Copy" is mapped to 'F11' |
| 301 | 301 | - "Shift Lock" is mapped to 'F12' */ |
| 302 | 302 | |
| 303 | /* Port Key description Emulated key | |
| 303 | /* Port Key description Emulated key Natural key Shift 1 Shift 2 (Ctrl) */ | |
| 304 | 304 | |
| 305 | 305 | static INPUT_PORTS_START(bbca) |
| 306 | 306 | PORT_START("COL0") /* KEYBOARD COLUMN 0 */ |
| 307 | 307 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_RSHIFT) PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 308 | 308 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 309 | 309 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F0") PORT_CODE(KEYCODE_F10) PORT_CHAR(UCHAR_MAMEKEY(F10)) |
| 310 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') | |
| 310 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') | |
| 311 | 311 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CAPSLOCK") PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK)) |
| 312 | 312 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFTLOCK") PORT_CODE(KEYCODE_LALT) PORT_CHAR(UCHAR_MAMEKEY(F12)) |
| 313 | 313 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("TAB") PORT_CODE(KEYCODE_TAB) PORT_CHAR('\t') |
| r11489 | r11490 | |
| 315 | 315 | |
| 316 | 316 | PORT_START("COL1") /* KEYBOARD COLUMN 1 */ |
| 317 | 317 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CTRL") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) PORT_CHAR(UCHAR_SHIFT_2) |
| 318 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 #") PORT_CODE(KEYCODE_3) PORT_CHAR('3') | |
| 318 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 #") PORT_CODE(KEYCODE_3) PORT_CHAR('3') | |
| 319 | 319 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 320 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 \"") PORT_CODE(KEYCODE_2) PORT_CHAR('2') | |
| 320 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 \"") PORT_CODE(KEYCODE_2) PORT_CHAR('2') | |
| 321 | 321 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 322 | 322 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 323 | 323 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| r11489 | r11490 | |
| 327 | 327 | PORT_DIPNAME(0x01, 0x01, "DIP 8 (Not Used)") |
| 328 | 328 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 329 | 329 | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 330 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) PORT_CHAR('4') | |
| 330 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) PORT_CHAR('4') | |
| 331 | 331 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('E') |
| 332 | 332 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| 333 | 333 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| r11489 | r11490 | |
| 339 | 339 | PORT_DIPNAME(0x01, 0x01, "DIP 7 (Not Used)") |
| 340 | 340 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 341 | 341 | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 342 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) PORT_CHAR('5') | |
| 342 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) PORT_CHAR('5') | |
| 343 | 343 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('T') |
| 344 | 344 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('R') |
| 345 | 345 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| r11489 | r11490 | |
| 352 | 352 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 353 | 353 | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 354 | 354 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F4)) |
| 355 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 \\") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') | |
| 356 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') | |
| 355 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 \\") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') | |
| 356 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') | |
| 357 | 357 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 358 | 358 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 359 | 359 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| r11489 | r11490 | |
|---|---|---|
| 492 | 492 | $(MAME_DRIVERS)/vectrex.o \ |
| 493 | 493 | $(MAME_VIDEO)/vectrex.o \ |
| 494 | 494 | $(MAME_MACHINE)/vectrex.o \ |
| 495 | $(MAME_VIDEO)/smsvdp.o \ | |
| 496 | $(MAME_MACHINE)/segasms.o \ | |
| 497 | $(MAME_DRIVERS)/segasms.o \ | |
| 498 | $(MAME_DRIVERS)/sg1000.o \ | |
| 499 | $(MAME_DRIVERS)/dc.o \ | |
| 500 | $(MAME_MACHINE)/dccons.o \ | |
| 495 | $(MAME_VIDEO)/smsvdp.o \ | |
| 496 | $(MAME_MACHINE)/segasms.o \ | |
| 497 | $(MAME_DRIVERS)/segasms.o \ | |
| 498 | $(MAME_DRIVERS)/sg1000.o \ | |
| 499 | $(MAME_DRIVERS)/dc.o \ | |
| 500 | $(MAME_MACHINE)/dccons.o \ | |
| 501 | 501 | $(MAME_MACHINE)/gdrom.o \ |
| 502 | 502 | $(MAME_DRIVERS)/a310.o \ |
| 503 | 503 | $(MAME_DRIVERS)/a7000.o \ |
| r11489 | r11490 | |
| 776 | 776 | |
| 777 | 777 | $(MESSOBJ)/cccp.a: \ |
| 778 | 778 | $(MESS_DRIVERS)/argo.o \ |
| 779 | $(MESS_DRIVERS)/cm1800.o | |
| 779 | $(MESS_DRIVERS)/cm1800.o | |
| 780 | 780 | $(MESS_VIDEO)/lviv.o \ |
| 781 | 781 | $(MESS_DRIVERS)/lviv.o \ |
| 782 | 782 | $(MESS_MACHINE)/lviv.o \ |
| r11489 | r11490 | |
| 812 | 812 | $(MESS_DRIVERS)/coleco.o \ |
| 813 | 813 | $(MESS_MACHINE)/coleco.o \ |
| 814 | 814 | $(MESS_DRIVERS)/adam.o \ |
| 815 | ||
| 815 | ||
| 816 | 816 | $(MESSOBJ)/cromemco.a: \ |
| 817 | 817 | $(MESS_DRIVERS)/c10.o \ |
| 818 | 818 | |
| r11489 | r11490 | |
| 1164 | 1164 | $(MESSOBJ)/netronic.a: \ |
| 1165 | 1165 | $(MESS_DRIVERS)/elf.o \ |
| 1166 | 1166 | $(MESS_DRIVERS)/exp85.o \ |
| 1167 | ||
| 1167 | ||
| 1168 | 1168 | $(MESSOBJ)/next.a: \ |
| 1169 | 1169 | $(MESS_DRIVERS)/next.o \ |
| 1170 | 1170 | |
| r11489 | r11490 | |
| 1337 | 1337 | $(MESS_VIDEO)/mbc55x.o \ |
| 1338 | 1338 | |
| 1339 | 1339 | $(MESSOBJ)/sega.a: \ |
| 1340 | $(MESS_DRIVERS)/sg1000.o | |
| 1340 | $(MESS_DRIVERS)/sg1000.o | |
| 1341 | 1341 | |
| 1342 | 1342 | $(MESSOBJ)/sgi.a: \ |
| 1343 | 1343 | $(MESS_MACHINE)/sgi.o \ |
| Previous | 15994 Revisions | Next |