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

📄 crimec.c

📁 十七种模拟器源代码 非常有用的作课程设计不可缺少的
💻 C
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************//*                                                                            *//*                  CRIME CITY (C) 1990 TAITO CORPORATION                     *//*                                                                            *//******************************************************************************/#include "gameinc.h"#include "crimec.h"#include "tc180vcu.h"#include "tc220ioc.h"#include "sasound.h"		// sample support routines#include "taitosnd.h"/**************   CRIME CITY **************/static struct DIR_INFO crime_city_dirs[] ={   { "crime_city", },   { "crimec", },   { NULL, },};static struct ROM_INFO crime_city_roms[] ={   {   "b99-01.ch0", 0x00080000, 0xa19e373a, 0, 0, 0, },   {   "b99-02.ch1", 0x00080000, 0x2a5d4a26, 0, 0, 0, },   {   "b99-03.roa", 0x00080000, 0xdda10df7, 0, 0, 0, },   {       "b99-05", 0x00020000, 0xff7f9a9d, 0, 0, 0, },   {       "b99-06", 0x00020000, 0x1f26aa92, 0, 0, 0, },   {       "b99-07", 0x00020000, 0x26e886e6, 0, 0, 0, },   {       "b99-08", 0x00010000, 0x26135451, 0, 0, 0, },   {       "b99-14", 0x00020000, 0x71c8b4d7, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_crime_city_0[] ={   { "Hiscores",              0x01, 0x02 },   { "Scribble",              0x01, 0x00 },   { "3 characters",          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_COIN2,               0xC0, 0x04 },   { MSG_1COIN_2PLAY,         0xC0, 0x00 },   { MSG_1COIN_3PLAY,         0x80, 0x00 },   { MSG_1COIN_4PLAY,         0x40, 0x00 },   { MSG_1COIN_6PLAY,         0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_DATA dsw_data_crime_city_1[] ={   { MSG_DIFFICULTY,          0x03, 0x04 },   { MSG_EASY,                0x03, 0x00 },   { MSG_NORMAL,              0x02, 0x00 },   { MSG_HARD,                0x01, 0x00 },   { MSG_HARDEST,             0x00, 0x00 },   { "Lives",                 0x30, 0x04 },   { "3",                     0x30, 0x00 },   { "2",                     0x20, 0x00 },   { "1",                     0x10, 0x00 },   { "5",                     0x00, 0x00 },   { MSG_CONTINUE_PLAY,       0xC0, 0x04 },   { MSG_ON,                  0xC0, 0x00 },   { "8 Times",               0x80, 0x00 },   { "5 Times",               0x40, 0x00 },   { MSG_OFF,                 0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO crime_city_dsw[] ={   { 0x000000, 0xFF, dsw_data_crime_city_0 },   { 0x000002, 0xFF, dsw_data_crime_city_1 },   { 0,        0,    NULL,      },};/*static struct ROMSW_DATA romsw_data_crime_city_0[] ={   { "Taito Japan",           0x01 },   { "Taito America",         0x02 },   { "Taito (World)",         0x03 },   { NULL,                    0    },};*//*static struct ROMSW_INFO crime_city_romsw[] ={   { 0x07FFFF, 0x03, romsw_data_crime_city_0 },   { 0,        0,    NULL },};*/struct GAME_MAIN game_crime_city ={   crime_city_dirs,   crime_city_roms,   b_system_inputs,   crime_city_dsw,   NULL,   LoadCrimeCity,   ClearCrimeCity,   &b_system_video,   ExecuteCrimeCityFrame,   "crimec",   "Crime City",   "釴怆釩馇釼鈋釨",   COMPANY_ID_TAITO,   "B99",   1989,   taito_ym2610_sound,   GAME_SHOOT,};/*****************   CRIME CITY US *****************/static struct DIR_INFO crime_city_US_dirs[] ={   { "crime_city_US",   },   { "crimecu",         },   { ROMOF("crimec"),   },   { CLONEOF("crimec"), },   { NULL, },};static struct ROM_INFO crime_city_US_roms[] ={   {   "b99-01.ch0", 0x00080000, 0xa19e373a, 0, 0, 0, },   {   "b99-02.ch1", 0x00080000, 0x2a5d4a26, 0, 0, 0, },   {   "b99-03.roa", 0x00080000, 0xdda10df7, 0, 0, 0, },   {       "b99-05", 0x00020000, 0xff7f9a9d, 0, 0, 0, },   {       "b99-06", 0x00020000, 0x1f26aa92, 0, 0, 0, },   {       "b99-07", 0x00020000, 0x26e886e6, 0, 0, 0, },   {       "b99-08", 0x00010000, 0x26135451, 0, 0, 0, },   {     "b99_14-2", 0x00020000, 0x06cf8441, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_crime_city_US_0[] ={   { "Hiscores",              0x01, 0x02 },   { "Scribble",              0x01, 0x00 },   { "3 characters",          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_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 crime_city_US_dsw[] ={   { 0x000000, 0xFF, dsw_data_crime_city_US_0 },   { 0x000002, 0xFF, dsw_data_crime_city_1 },   { 0,        0,    NULL,      },};/*static struct ROMSW_INFO crime_city_US_romsw[] ={   { 0x07FFFF, 0x02, romsw_data_crime_city_0 },   { 0,        0,    NULL },};*/struct GAME_MAIN game_crime_city_US ={   crime_city_US_dirs,   crime_city_US_roms,   b_system_inputs,   crime_city_US_dsw,   NULL,   LoadCrimeCity,   ClearCrimeCity,   &b_system_video,   ExecuteCrimeCityFrame,   "crimecu",   "Crime City (US)",   "釴怆釩馇釼鈋釨 (US)",   COMPANY_ID_TAITO,   "B99",   1989,   taito_ym2610_sound,   GAME_SHOOT,};/********************   CRIME CITY JAPAN ********************/static struct DIR_INFO crime_city_jp_dirs[] ={   { "crime_city_jp",   },   { "crimecj",         },   { ROMOF("crimec"),   },   { CLONEOF("crimec"), },   { NULL, },};static struct ROM_INFO crime_city_jp_roms[] ={   {   "b99-01.ch0", 0x00080000, 0xa19e373a, 0, 0, 0, },   {   "b99-02.ch1", 0x00080000, 0x2a5d4a26, 0, 0, 0, },   {   "b99-03.roa", 0x00080000, 0xdda10df7, 0, 0, 0, },   {       "b99-05", 0x00020000, 0xff7f9a9d, 0, 0, 0, },   {       "b99-06", 0x00020000, 0x1f26aa92, 0, 0, 0, },   {       "b99-07", 0x00020000, 0x26e886e6, 0, 0, 0, },   {       "b99-08", 0x00010000, 0x26135451, 0, 0, 0, },   {           "15", 0x00020000, 0xe8c1e56d, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_crime_city_jp_0[] ={   { "Hiscores",              0x01, 0x02 },   { "Scribble",              0x01, 0x00 },   { "3 characters",          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_1COIN_2PLAY,         0x20, 0x00 },   { MSG_2COIN_1PLAY,         0x10, 0x00 },   { MSG_2COIN_3PLAY,         0x00, 0x00 },   { MSG_COIN2,               0xC0, 0x04 },   { MSG_1COIN_1PLAY,         0xC0, 0x00 },   { MSG_1COIN_2PLAY,         0x80, 0x00 },   { MSG_2COIN_1PLAY,         0x40, 0x00 },   { MSG_2COIN_3PLAY,         0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO crime_city_jp_dsw[] ={   { 0x000000, 0xFF, dsw_data_crime_city_jp_0 },   { 0x000002, 0xFF, dsw_data_crime_city_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_crime_city_jp ={   crime_city_jp_dirs,   crime_city_jp_roms,   b_system_inputs,   crime_city_jp_dsw,   NULL,   LoadCrimeCity,   ClearCrimeCity,   &b_system_video,   ExecuteCrimeCityFrame,   "crimecj",   "Crime City (Japan)",   "釴怆釩馇釼鈋釨 (Japan)",   COMPANY_ID_TAITO,   "B99",   1989,   taito_ym2610_sound,   GAME_SHOOT,};

⌨️ 快捷键说明

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