⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lsystem.c

📁 著名ARC模拟器源码,包括多个平台
💻 C
📖 第 1 页 / 共 5 页
字号:
/******************************************************************************//*                                                                            *//*              TAITO L-SYSTEM (C) 1988-1990 TAITO CORPORATION                *//*                                                                            *//*              Z80+YM2203 or Z80+Z80+YM2610 or Z80+Z80+YM2203                *//*                                                                            *//******************************************************************************/#include "gameinc.h"#include "lsystem.h"#include "tc220ioc.h"#include "taitosnd.h"#include "2203intf.h"#include "decode.h"#ifdef RAINE_DEBUG#include "debug.h"#endif#include "savegame.h"#include "sasound.h"		// sample support routines/************************   AMERICAN HORSESHOES ************************/static struct DIR_INFO american_horseshoes_dirs[] ={   { "american_horseshoes", },   { "amhorse", },   { "horshoes", },   { NULL, },};static struct ROM_INFO american_horseshoes_roms[] ={   {   "c47-01.bin", 0x00020000, 0x031c73d8, 0, 0, 0, },   {   "c47-02.bin", 0x00020000, 0x35f96526, 0, 0, 0, },   {   "c47-03.bin", 0x00020000, 0x37e15b20, 0, 0, 0, },   {   "c47-04.bin", 0x00020000, 0xaeac7121, 0, 0, 0, },   {   "c47-05.bin", 0x00020000, 0xb2a3dafe, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct INPUT_INFO american_horseshoes_inputs[] ={   { KB_DEF_COIN1,        MSG_COIN1,               0x02C200, 0x02, BIT_ACTIVE_0 },   { KB_DEF_COIN2,        MSG_COIN2,               0x02C201, 0x02, BIT_ACTIVE_0 },   { KB_DEF_TILT,         MSG_TILT,                0x02C201, 0x01, BIT_ACTIVE_0 },   { KB_DEF_SERVICE,      MSG_SERVICE,             0x02C200, 0x01, BIT_ACTIVE_0 },   { KB_DEF_P1_UP,        MSG_P1_UP,               0x02C208, 0xFF, BIT_ACTIVE_1 },   { KB_DEF_P1_DOWN,      MSG_P1_DOWN,             0x02C209, 0xFF, BIT_ACTIVE_1 },   { KB_DEF_P1_LEFT,      MSG_P1_LEFT,             0x02C20A, 0xFF, BIT_ACTIVE_1 },   { KB_DEF_P1_RIGHT,     MSG_P1_RIGHT,            0x02C20B, 0xFF, BIT_ACTIVE_1 },   { KB_DEF_P1_B1,        MSG_P1_B1,               0x02C200, 0x80, BIT_ACTIVE_0 },   { KB_DEF_P1_B2,        MSG_P1_B2,               0x02C201, 0x80, BIT_ACTIVE_0 },   { 0,                   NULL,                    0,        0,    0            },};static struct DSW_DATA dsw_data_american_horseshoes_0[] ={   { MSG_CABINET,             0x01, 0x02 },   { MSG_TABLE,               0x01, 0x00 },   { MSG_UPRIGHT,             0x00, 0x00 },   { MSG_SCREEN,              0x02, 0x02 },   { MSG_NORMAL,              0x02, 0x00 },   { MSG_INVERT,              0x00, 0x00 },   { MSG_TEST_MODE,           0x04, 0x02 },   { MSG_OFF,                 0x04, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { MSG_DEMO_SOUND,          0x08, 0x02 },   { MSG_ON,                  0x08, 0x00 },   { MSG_OFF,                 0x00, 0x00 },   { MSG_COIN1,               0x30, 0x04 },   { MSG_1COIN_1PLAY,         0x30, 0x00 },   { MSG_2COIN_1PLAY,         0x20, 0x00 },   { MSG_3COIN_1PLAY,         0x10, 0x00 },   { MSG_4COIN_1PLAY,         0x00, 0x00 },   { MSG_DSWA_BIT7,           0x40, 0x02 },   { MSG_OFF,                 0x40, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { MSG_DSWA_BIT8,           0x80, 0x02 },   { MSG_OFF,                 0x80, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_DATA dsw_data_american_horseshoes_1[] ={   { MSG_DIFFICULTY,          0x03, 0x04 },   { MSG_NORMAL,              0x03, 0x00 },   { MSG_EASY,                0x02, 0x00 },   { MSG_HARD,                0x01, 0x00 },   { MSG_HARDEST,             0x00, 0x00 },   { "Time",                  0x04, 0x02 },   { "30 seconds",            0x04, 0x00 },   { "20 seconds",            0x00, 0x00 },   { MSG_DSWA_BIT4,           0x08, 0x02 },   { MSG_OFF,                 0x08, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { "Innings",               0x10, 0x02 },   { "3 per Credit",          0x10, 0x00 },   { "9 per Credit",          0x00, 0x00 },   { MSG_DSWA_BIT6,           0x20, 0x02 },   { MSG_OFF,                 0x20, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { MSG_DSWA_BIT7,           0x40, 0x02 },   { MSG_OFF,                 0x40, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { MSG_DSWA_BIT8,           0x80, 0x02 },   { MSG_OFF,                 0x80, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO american_horseshoes_dsw[] ={   { 0x02C202, 0xFF, dsw_data_american_horseshoes_0 },   { 0x02C203, 0xFF, dsw_data_american_horseshoes_1 },   { 0,        0,    NULL,      },};static struct VIDEO_INFO lsystem_video ={   DrawLSystem,   320,   224,   32,   VIDEO_ROTATE_NORMAL |   VIDEO_ROTATABLE,};static struct VIDEO_INFO l_system_270_video ={   DrawLSystem,   320,   224,   32,   VIDEO_ROTATE_270 |   VIDEO_ROTATABLE,};struct GAME_MAIN game_american_horseshoes ={   american_horseshoes_dirs,   american_horseshoes_roms,   american_horseshoes_inputs,   american_horseshoes_dsw,   NULL,   load_american_horseshoes,   clear_american_horseshoes,   &l_system_270_video,   ExecuteLSystemFrame,   "horshoes",   "American Horseshoes",   "傾儊儕僇儞儂乕僗僔儏乕",   COMPANY_ID_TAITO,   "C47",   1990,   taito_ym2203_sound,   GAME_SPORTS | GAME_NOT_WORKING,};/***************************   CHAMPION WRESTLER WORLD ***************************/static struct DIR_INFO champion_wrestler_dirs[] ={   { "champion_wrestler", },   { "champwr", },   { NULL, },};static struct ROM_INFO champion_wrestler_roms[] ={   {   "c01-08.rom", 0x00010000, 0x810efff8, 0, 0, 0, },   {   "c01-02.rom", 0x00080000, 0x1e0476c4, 0, 0, 0, },   {   "c01-03.rom", 0x00080000, 0x2a142dbc, 0, 0, 0, },   {   "c01-04.rom", 0x00020000, 0x358bd076, 0, 0, 0, },   {   "c01-05.rom", 0x00020000, 0x22efad4a, 0, 0, 0, },   {   "c01-07.rom", 0x00020000, 0x5117c98f, 0, 0, 0, },   {   "c01-01.rom", 0x00080000, 0xf302e6e9, 0, 0, 0, },   {   "c01-13.rom", 0x00020000, 0x7ef47525, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct INPUT_INFO champion_wrestler_inputs[] ={   { KB_DEF_COIN1,        MSG_COIN1,               0x02C206, 0x02, BIT_ACTIVE_0 },   { KB_DEF_COIN2,        MSG_COIN2,               0x02C206, 0x01, BIT_ACTIVE_0 },   { KB_DEF_TILT,         MSG_TILT,                0x02C204, 0x40, BIT_ACTIVE_0 },   { KB_DEF_SERVICE,      MSG_SERVICE,             0x02C204, 0x80, BIT_ACTIVE_0 },   { KB_DEF_P1_START,     MSG_P1_START,            0x02C204, 0x04, BIT_ACTIVE_0 },   { KB_DEF_P1_UP,        MSG_P1_UP,               0x02C20E, 0x80, BIT_ACTIVE_0 },   { KB_DEF_P1_DOWN,      MSG_P1_DOWN,             0x02C20E, 0x40, BIT_ACTIVE_0 },   { KB_DEF_P1_LEFT,      MSG_P1_LEFT,             0x02C20E, 0x20, BIT_ACTIVE_0 },   { KB_DEF_P1_RIGHT,     MSG_P1_RIGHT,            0x02C20E, 0x10, BIT_ACTIVE_0 },   { KB_DEF_P1_B1,        MSG_P1_B1,               0x02C204, 0x02, BIT_ACTIVE_0 },   { KB_DEF_P1_B2,        MSG_P1_B2,               0x02C204, 0x01, BIT_ACTIVE_0 },   { KB_DEF_P2_START,     MSG_P2_START,            0x02C204, 0x08, BIT_ACTIVE_0 },   { KB_DEF_P2_UP,        MSG_P2_UP,               0x02C20E, 0x08, BIT_ACTIVE_0 },   { KB_DEF_P2_DOWN,      MSG_P2_DOWN,             0x02C20E, 0x04, BIT_ACTIVE_0 },   { KB_DEF_P2_LEFT,      MSG_P2_LEFT,             0x02C20E, 0x02, BIT_ACTIVE_0 },   { KB_DEF_P2_RIGHT,     MSG_P2_RIGHT,            0x02C20E, 0x01, BIT_ACTIVE_0 },   { KB_DEF_P2_B1,        MSG_P2_B1,               0x02C204, 0x20, BIT_ACTIVE_0 },   { KB_DEF_P2_B2,        MSG_P2_B2,               0x02C204, 0x10, BIT_ACTIVE_0 },   { 0,                   NULL,                    0,        0,    0            },};static struct DSW_DATA dsw_data_champion_wrestler_0[] ={   { MSG_SCREEN,              0x02, 0x02 },   { MSG_NORMAL,              0x02, 0x00 },   { MSG_INVERT,              0x00, 0x00 },   { MSG_TEST_MODE,           0x04, 0x02 },   { MSG_OFF,                 0x04, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { MSG_DEMO_SOUND,          0x08, 0x02 },   { MSG_ON,                  0x08, 0x00 },   { MSG_OFF,                 0x00, 0x00 },   { MSG_COIN1,               0x30, 0x04 },   { MSG_1COIN_1PLAY,         0x30, 0x00 },   { MSG_2COIN_1PLAY,         0x20, 0x00 },   { MSG_3COIN_1PLAY,         0x10, 0x00 },   { MSG_4COIN_1PLAY,         0x00, 0x00 },   { MSG_COIN2,               0xC0, 0x04 },   { MSG_1COIN_2PLAY,         0xC0, 0x00 },   { MSG_1COIN_3PLAY,         0x80, 0x00 },   { MSG_2COIN_1PLAY,         0x40, 0x00 },   { MSG_2COIN_3PLAY,         0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_DATA dsw_data_champion_wrestler_1[] ={   { MSG_DIFFICULTY,          0x03, 0x04 },   { MSG_NORMAL,              0x03, 0x00 },   { MSG_EASY,                0x02, 0x00 },   { MSG_HARD,                0x01, 0x00 },   { MSG_HARDEST,             0x00, 0x00 },   { "Time",                  0x0C, 0x04 },   { "3 Minutes",             0x0C, 0x00 },   { "2 Minutes",             0x08, 0x00 },   { "4 Minutes",             0x04, 0x00 },   { "5 Minutes",             0x00, 0x00 },   { "1 Minute Lenght",       0x30, 0x04 },   { "50 seconds",            0x30, 0x00 },   { "60 seconds",            0x20, 0x00 },   { "40 seconds",            0x10, 0x00 },   { "30 seconds",            0x00, 0x00 },   { MSG_CONTINUE_PLAY,       0x40, 0x02 },   { MSG_ON,                  0x40, 0x00 },   { MSG_OFF,                 0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO champion_wrestler_dsw[] ={   { 0x02C200, 0xFF, dsw_data_champion_wrestler_0 },   { 0x02C202, 0xFF, dsw_data_champion_wrestler_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_champion_wrestler ={   champion_wrestler_dirs,   champion_wrestler_roms,   champion_wrestler_inputs,   champion_wrestler_dsw,   NULL,   LoadChampionWr,   ClearChampionWr,   &lsystem_video,   ExecuteLSystemFrame,   "champwr",   "Champion Wrestler",   "僠儍儞僺僆儞儗僗儔乕",   COMPANY_ID_TAITO,   "C01",   1989,   taito_ym2203_sound,   GAME_SPORTS,};/************************   CHAMPION WRESTLER US ************************/static struct DIR_INFO champion_wrestler_us_dirs[] ={   { "champion_wrestler_us", },   { "champwru", },   { ROMOF("champwr"), },   { CLONEOF("champwr"), },   { NULL, },};static struct ROM_INFO champion_wrestler_us_roms[] ={   {   "c01-08.rom", 0x00010000, 0x810EFFF8, 0, 0, 0, },   {   "c01-02.rom", 0x00080000, 0x1E0476C4, 0, 0, 0, },   {   "c01-03.rom", 0x00080000, 0x2A142DBC, 0, 0, 0, },   {   "c01-04.rom", 0x00020000, 0x358BD076, 0, 0, 0, },   {   "c01-05.rom", 0x00020000, 0x22EFAD4A, 0, 0, 0, },   {   "c01-07.rom", 0x00020000, 0x5117C98F, 0, 0, 0, },   {   "c01-01.rom", 0x00080000, 0xF302E6E9, 0, 0, 0, },   {   "c01-12.rom", 0x00020000, 0x09F345B3, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_champion_wrestler_us_0[] ={   { MSG_SCREEN,              0x02, 0x02 },   { MSG_NORMAL,              0x02, 0x00 },   { MSG_INVERT,              0x00, 0x00 },   { MSG_TEST_MODE,           0x04, 0x02 },   { MSG_OFF,                 0x04, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { MSG_DEMO_SOUND,          0x08, 0x02 },   { MSG_ON,                  0x08, 0x00 },   { MSG_OFF,                 0x00, 0x00 },   { MSG_COIN1,               0x30, 0x04 },   { MSG_COIN_SLOTS,          0x30, 0x04 },   { MSG_1COIN_1PLAY,         0x30, 0x00 },   { MSG_2COIN_1PLAY,         0x20, 0x00 },   { MSG_3COIN_1PLAY,         0x10, 0x00 },   { MSG_4COIN_1PLAY,         0x00, 0x00 },   { "Continue cost",         0xC0, 0x04 },   { "Same as play",          0xC0, 0x00 },   { "1 extra coin",          0x80, 0x00 },   { "2 extra coins",         0x40, 0x00 },   { "3 extra coins",         0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO champion_wrestler_us_dsw[] ={   { 0x02C200, 0xFF, dsw_data_champion_wrestler_us_0 },   { 0x02C202, 0xFF, dsw_data_champion_wrestler_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_champion_wrestler_us ={   champion_wrestler_us_dirs,   champion_wrestler_us_roms,   champion_wrestler_inputs,   champion_wrestler_us_dsw,   NULL,   LoadChampionWr,   ClearChampionWr,   &lsystem_video,   ExecuteLSystemFrame,   "champwru",   "Champion Wrestler (US)",   "鈆忖怍鈙釯怍忸釾怆黐 (US)",   COMPANY_ID_TAITO,   "C01",   1989,   taito_ym2203_sound,   GAME_SPORTS,};/***************************   CHAMPION WRESTLER JAPAN ***************************/static struct DIR_INFO champion_wrestler_jp_dirs[] ={   { "champion_wrestler_jp", },

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -