📄 rastan2.c
字号:
/******************************************************************************//* *//* RASTAN 2/NASTAR WARRIOR (C) 1988 TAITO CORPORATION *//* *//******************************************************************************/#include "gameinc.h"#include "rastan2.h"#include "tc180vcu.h"#include "tc220ioc.h"#include "sasound.h" // sample support routines#include "taitosnd.h"/********** NASTAR **********/static struct DIR_INFO nastar_dirs[] ={ { "nastar", }, { NULL, },};static struct ROM_INFO nastar_roms[] ={ { "b81-01.rom", 0x00080000, 0xb33f796b, 0, 0, 0, }, { "b81-02.rom", 0x00080000, 0x20ec3b86, 0, 0, 0, }, { "b81-03.rom", 0x00080000, 0x551b75e6, 0, 0, 0, }, { "b81-04.rom", 0x00080000, 0xcf734e12, 0, 0, 0, }, { "b81-13.rom", 0x00020000, 0x60d176fb, 0, 0, 0, }, { "b81-08.rom", 0x00020000, 0xd6da9169, 0, 0, 0, }, { "b81-09.rom", 0x00020000, 0x630d34af, 0, 0, 0, }, { "b81-10.rom", 0x00020000, 0x53f34344, 0, 0, 0, }, { "b81-11.rom", 0x00010000, 0x3704bf09, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct DSW_DATA dsw_data_nastar_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_1COIN_4PLAY, 0x40, 0x00 }, { MSG_1COIN_6PLAY, 0x00, 0x00 }, { NULL, 0, 0, },};struct DSW_DATA dsw_data_nastar_1[] ={ { MSG_DIFFICULTY, 0x03, 0x04 }, { MSG_NORMAL, 0x03, 0x00 }, { MSG_EASY, 0x02, 0x00 }, { MSG_HARD, 0x01, 0x00 }, { MSG_HARDEST, 0x00, 0x00 }, { "Extra Life", 0x0C, 0x04 }, { "100k only", 0x0C, 0x00 }, { "150k only", 0x08, 0x00 }, { "200k only", 0x04, 0x00 }, { "250k only", 0x00, 0x00 }, { "Lives", 0x30, 0x04 }, { "3", 0x30, 0x00 }, { "1", 0x20, 0x00 }, { "2", 0x10, 0x00 }, { "5", 0x00, 0x00 }, { MSG_CONTINUE_PLAY, 0x40, 0x02 }, { MSG_ON, 0x40, 0x00 }, { MSG_OFF, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO nastar_dsw[] ={ { 0x000000, 0xFF, dsw_data_nastar_0 }, { 0x000002, 0xFF, dsw_data_nastar_1 }, { 0, 0, NULL, },};/*static struct ROMSW_DATA romsw_data_nastar_0[] ={ { "Taito Japan (Rastan Saga 2)", 0x00 }, { "Taito America (Nastar Warrior)", 0x01 }, { "Taito Japan (World) (Nastar)", 0x02 }, { NULL, 0 },};static struct ROMSW_INFO nastar_romsw[] ={ { 0x03FFFF, 0x02, romsw_data_nastar_0 }, { 0, 0, NULL },};*/struct GAME_MAIN game_nastar ={ nastar_dirs, nastar_roms, b_system_inputs, nastar_dsw, NULL, LoadRastan2, ClearRastan2, &b_system_video, ExecuteRastan2Frame, "nastar", "Nastar", "怆釾鈄怍釺黐釱镼", COMPANY_ID_TAITO, "B81", 1989, taito_ym2610_sound, GAME_BEAT | GAME_PLATFORM,};/***************** RASTAN SAGA 2 *****************/static struct DIR_INFO rastan_saga_2_dirs[] ={ { "rastan_saga_2", }, { "rastan2", }, { "rastsag2", }, { ROMOF("nastar"), }, { CLONEOF("nastar"), }, { NULL, },};static struct ROM_INFO rastan_saga_2_roms[] ={ { "b81-01.rom", 0x00080000, 0xb33f796b, 0, 0, 0, }, { "b81-02.rom", 0x00080000, 0x20ec3b86, 0, 0, 0, }, { "b81-03.rom", 0x00080000, 0x551b75e6, 0, 0, 0, }, { "b81-04.rom", 0x00080000, 0xcf734e12, 0, 0, 0, }, { "b81-07.bin", 0x00020000, 0x8edf17d7, 0, 0, 0, }, { "b81-08.rom", 0x00020000, 0xd6da9169, 0, 0, 0, }, { "b81-09.rom", 0x00020000, 0x630d34af, 0, 0, 0, }, { "b81-10.rom", 0x00020000, 0x53f34344, 0, 0, 0, }, { "b81-11.rom", 0x00010000, 0x3704bf09, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct DSW_DATA dsw_data_rastan_saga_2_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_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 rastan_saga_2_dsw[] ={ { 0x000000, 0xFF, dsw_data_rastan_saga_2_0 }, { 0x000002, 0xFF, dsw_data_nastar_1 }, { 0, 0, NULL, },};struct GAME_MAIN game_rastan_saga_2 ={ rastan_saga_2_dirs, rastan_saga_2_roms, b_system_inputs, rastan_saga_2_dsw, NULL, LoadRastan2, ClearRastan2, &b_system_video, ExecuteRastan2Frame, "rastsag2", "Rastan Saga 2", "怆釾鈄怍釺黐釱镼", COMPANY_ID_TAITO, "B81", 1988, taito_ym2610_sound, GAME_PLATFORM | GAME_BEAT,};/****************** NASTAR WARRIOR ******************/static struct DIR_INFO nastar_warrior_dirs[] ={ { "nastar_warrior", }, { "nastarw", }, { ROMOF("nastar"), }, { CLONEOF("nastar"), }, { NULL, },};static struct ROM_INFO nastar_warrior_roms[] ={ { "b81-01.rom", 0x00080000, 0xb33f796b, 0, 0, 0, }, { "b81-02.rom", 0x00080000, 0x20ec3b86, 0, 0, 0, }, { "b81-03.rom", 0x00080000, 0x551b75e6, 0, 0, 0, }, { "b81-04.rom", 0x00080000, 0xcf734e12, 0, 0, 0, }, { "b81-12.31", 0x00020000, 0xf9d82741, 0, 0, 0, }, { "b81-08.rom", 0x00020000, 0xd6da9169, 0, 0, 0, }, { "b81-09.rom", 0x00020000, 0x630d34af, 0, 0, 0, }, { "b81-10.rom", 0x00020000, 0x53f34344, 0, 0, 0, }, { "b81-11.rom", 0x00010000, 0x3704bf09, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct DSW_DATA dsw_data_nastar_warrior_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_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 nastar_warrior_dsw[] ={ { 0x000000, 0xFF, dsw_data_nastar_warrior_0 }, { 0x000002, 0xFF, dsw_data_nastar_1 }, { 0, 0, NULL, },};struct GAME_MAIN game_nastar_warrior ={ nastar_warrior_dirs, nastar_warrior_roms, b_system_inputs, nastar_warrior_dsw, NULL, LoadRastan2, ClearRastan2, &b_system_video, ExecuteRastan2Frame, "nastarw", "Nastar Warrior", "儔僗僞儞僒乕僈俀", COMPANY_ID_TAITO, "B81", 1989, taito_ym2610_sound, GAME_BEAT | GAME_PLATFORM,};static UINT8 *RAM_INPUT;static UINT8 *RAM_VIDEO;static UINT8 *RAM_VIDEO_2;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -