📄 cadash.c
字号:
/******************************************************************************//* *//* CADASH (C) 1988 TAITO CORPORATION *//* *//******************************************************************************/#include "gameinc.h"#include "cadash.h"#include "tc100scn.h"#include "tc110pcr.h"#include "tc002obj.h"#include "tc220ioc.h"#include "taitosnd.h"static struct DIR_INFO cadash_dirs[] ={ { "cadash", }, { NULL, },};static struct ROM_INFO cadash_roms[] ={ { "c21-14", 0x00020000, 0x5daf13fb, REGION_ROM1, 0x000000, LOAD_8_16, }, { "c21-16", 0x00020000, 0xcbaa2e75, REGION_ROM1, 0x000001, LOAD_8_16, }, { "c21-13", 0x00020000, 0x6b9e0ee9, REGION_ROM1, 0x040000, LOAD_8_16, }, { "c21-17", 0x00020000, 0xbf9a578a, REGION_ROM1, 0x040001, LOAD_8_16, }, { "c21-02", 0x00080000, 0x205883b9, REGION_GFX1, 0x000000, LOAD_SWAP_16, }, { "c21-01", 0x00080000, 0x1ff6f39c, REGION_GFX2, 0x000000, LOAD_SWAP_16, }, { "c21-07", 0x00008000, 0xf02292bd, 0, 0, 0, }, { "c21-08", 0x00010000, 0xdca495a0, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO cadash_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x01A00E, 0x01, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x01A00E, 0x02, BIT_ACTIVE_0 }, { KB_DEF_TILT, MSG_TILT, 0x01A00E, 0x20, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x01A00E, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x01A00E, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P1_UP, MSG_P1_UP, 0x01A004, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P1_DOWN, MSG_P1_DOWN, 0x01A004, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x01A004, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x01A004, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x01A004, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P1_B2, MSG_P1_B2, 0x01A004, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x01A00E, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P2_UP, MSG_P2_UP, 0x01A006, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_DOWN, MSG_P2_DOWN, 0x01A006, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P2_LEFT, MSG_P2_LEFT, 0x01A006, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_RIGHT, MSG_P2_RIGHT, 0x01A006, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P2_B1, MSG_P2_B1, 0x01A006, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P2_B2, MSG_P2_B2, 0x01A006, 0x04, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct DSW_DATA dsw_data_cadash_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_COINAGE, 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 }, { "No Extra", 0xC0, 0x00 }, { "Plus 1 Coin", 0x80, 0x00 }, { "Plus 2 Coins", 0x40, 0x00 }, { "Plus 3 Coins", 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_DATA dsw_data_cadash_1[] ={ { MSG_DIFFICULTY, 0x03, 0x04 }, { MSG_NORMAL, 0x03, 0x00 }, { MSG_EASY, 0x02, 0x00 }, { MSG_HARD, 0x01, 0x00 }, { MSG_HARDEST, 0x00, 0x00 }, { "Start Time", 0x0C, 0x04 }, { "7 Mins", 0x0C, 0x00 }, { "8 Mins", 0x08, 0x00 }, { "6 Mins", 0x04, 0x00 }, { "5 Mins", 0x00, 0x00 }, { "Extra Clear Time", 0x30, 0x04 }, { "None", 0x30, 0x00 }, { "+1 Min", 0x20, 0x00 }, { "-1 Min", 0x10, 0x00 }, { "-2 Mins", 0x00, 0x00 }, { "Communication", 0x40, 0x02 }, { MSG_OFF, 0x40, 0x00 }, { MSG_ON, 0x00, 0x00 }, { "Status for Comm", 0x80, 0x02 }, { "Master", 0x80, 0x00 }, { "Slave", 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO cadash_dsw[] ={ { 0x01A000, 0xFF, dsw_data_cadash_0 }, { 0x01A002, 0xFF, dsw_data_cadash_1 }, { 0, 0, NULL, },};static struct ROMSW_DATA romsw_data_cadash_0[] ={ { "Taito America", 0x02 }, { "Taito Japan", 0x03 }, { NULL, 0 },};static struct ROMSW_INFO cadash_romsw[] ={ { 0x07FFFF, 0x03, romsw_data_cadash_0 }, { 0, 0, NULL },};static struct GFX_LAYOUT cadash_gfx_tiles ={ 8,8, RGN_FRAC(1,1), 4, {0,1,2,3}, {STEP8(0,4)}, {STEP8(0,8*4)}, 8*8*4};static struct GFX_LAYOUT cadash_gfx_object ={ 16,16, RGN_FRAC(1,1), 4, {0,1,2,3}, {STEP16(0,4)}, {STEP16(0,16*4)}, 16*16*4};static struct GFX_LIST cadash_gfx[] ={ { REGION_GFX1, &cadash_gfx_tiles, }, { REGION_GFX2, &cadash_gfx_object, }, { 0, NULL, },};static struct VIDEO_INFO cadash_video ={ draw_cadash, 320, 240, 32, VIDEO_ROTATE_NORMAL| VIDEO_ROTATABLE, cadash_gfx,};struct GAME_MAIN game_cadash ={ cadash_dirs, cadash_roms, cadash_inputs, cadash_dsw, cadash_romsw, load_cadash, clear_cadash, &cadash_video, execute_cadash_frame, "cadash", "Cadash (World)", "僇僟僢僔儏 American", COMPANY_ID_TAITO, "C21", 1989, taito_ym2151_sound, GAME_BEAT,};static struct DIR_INFO cadash_french_dirs[] ={ { "cadash_french", }, { "cadashfr", }, { "cadashf", }, { ROMOF("cadash"), }, { CLONEOF("cadash"), }, { NULL, },};static struct ROM_INFO cadash_french_roms[] ={ { "c21-19", 0x00020000, 0x4d70543b, REGION_ROM1, 0x000000, LOAD_8_16, }, { "c21-21", 0x00020000, 0x0e5b9950, REGION_ROM1, 0x000001, LOAD_8_16, }, { "c21-18", 0x00020000, 0x8a19e59b, REGION_ROM1, 0x040000, LOAD_8_16, }, { "c21-20", 0x00020000, 0xb96acfd9, REGION_ROM1, 0x040001, LOAD_8_16, }, { "c21-02", 0x00080000, 0x205883b9, REGION_GFX1, 0x000000, LOAD_SWAP_16, }, { "c21-01", 0x00080000, 0x1ff6f39c, REGION_GFX2, 0x000000, LOAD_SWAP_16, }, { "c21-07", 0x00008000, 0xf02292bd, 0, 0, 0, }, { "c21-08", 0x00010000, 0xdca495a0, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};struct GAME_MAIN game_cadash_french ={ cadash_french_dirs, cadash_french_roms, cadash_inputs, cadash_dsw, cadash_romsw, load_cadash, clear_cadash, &cadash_video, execute_cadash_frame, "cadashf", "Cadash (France)", "僇僟僢僔儏 French", COMPANY_ID_TAITO, "C21", 1989, taito_ym2151_sound, GAME_BEAT,};static struct DIR_INFO cadash_italian_dirs[] ={ { "cadash_italian", }, { "cadashit", }, { "cadashi", }, { ROMOF("cadash"), }, { CLONEOF("cadash"), }, { NULL, },};static struct ROM_INFO cadash_italian_roms[] ={ { "c21-14it", 0x00020000, 0xd1d9e613, REGION_ROM1, 0x000000, LOAD_8_16, }, { "c21-16it", 0x00020000, 0x142256ef, REGION_ROM1, 0x000001, LOAD_8_16, }, { "c21-13it", 0x00020000, 0xc9cf6e30, REGION_ROM1, 0x040000, LOAD_8_16, }, { "c21-17it", 0x00020000, 0x641fc9dd, REGION_ROM1, 0x040001, LOAD_8_16, }, { "c21-02", 0x00080000, 0x205883b9, REGION_GFX1, 0x000000, LOAD_SWAP_16, }, { "c21-01", 0x00080000, 0x1ff6f39c, REGION_GFX2, 0x000000, LOAD_SWAP_16, }, { "c21-07", 0x00008000, 0xf02292bd, 0, 0, 0, }, { "c21-08", 0x00010000, 0xdca495a0, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};struct GAME_MAIN game_cadash_italian ={ cadash_italian_dirs, cadash_italian_roms, cadash_inputs, cadash_dsw, cadash_romsw, load_cadash, clear_cadash, &cadash_video, execute_cadash_frame, "cadashi", "Cadash (Italy)", "僇僟僢僔儏 Italian", COMPANY_ID_TAITO, "C21", 1989, taito_ym2151_sound, GAME_BEAT,};static struct DIR_INFO cadash_japanese_dirs[] ={ { "cadash_japanese", }, { "cadashj", }, { ROMOF("cadash"), }, { CLONEOF("cadash"), }, { NULL, },};static struct ROM_INFO cadash_japanese_roms[] ={ { "c21-04-1.11", 0x00020000, 0xcc22ebe5, REGION_ROM1, 0x000000, LOAD_8_16, },
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -