?? chasehq.c
字號:
/******************************************************************************//* *//* CHASE HQ (C) 1988 TAITO CORPORATION *//* *//******************************************************************************/#include "gameinc.h"#include "chasehq.h"#include "tc100scn.h"#include "tc110pcr.h"#include "tc150rod.h"#include "tc220ioc.h"#include "sasound.h" // sample support routines#include "taitosnd.h"#ifdef RAINE_DEBUG#include "debug.h"#endifstatic struct DIR_INFO chase_hq_dirs[] ={ { "chase_hq", }, { "chasehq", }, { NULL, },};static struct ROM_INFO chase_hq_roms[] ={ { "b52-m28.rom", 0x00080000, 0x963bc82b, 0, 0, 0, }, { "b52-m29.rom", 0x00080000, 0x8366d27c, 0, 0, 0, }, { "b52-m30.rom", 0x00080000, 0x1b8cc647, 0, 0, 0, }, { "b52-m31.rom", 0x00080000, 0xf1998e20, 0, 0, 0, }, { "b52-m32.rom", 0x00080000, 0x8620780c, 0, 0, 0, }, { "b52-m33.rom", 0x00080000, 0xe6f4b8c4, 0, 0, 0, }, { "b52-m34.rom", 0x00080000, 0x7d8dce36, 0, 0, 0, }, { "b52-m35.rom", 0x00080000, 0x78eeec0d, 0, 0, 0, }, { "b52-m36.rom", 0x00080000, 0x61e89e91, 0, 0, 0, }, { "b52-m37.rom", 0x00080000, 0xf02e47b9, 0, 0, 0, }, { "b52-m38.fix", 0x00080000, 0x5b5bf7f6, 0, 0, 0, }, { "b52-50.rom", 0x00010000, 0xc189781c, 0, 0, 0, }, { "b52-51.rom", 0x00010000, 0x30cc1f79, 0, 0, 0, }, { "b52-129.rom", 0x00020000, 0x0eaebc08, 0, 0, 0, }, { "b52-130.rom", 0x00020000, 0x4e7beb46, 0, 0, 0, }, { "b52-131.rom", 0x00020000, 0xaa945d83, 0, 0, 0, }, { "b52-132.rom", 0x00010000, 0xa2f54789, 0, 0, 0, }, { "b52-133.rom", 0x00010000, 0x12232f95, 0, 0, 0, }, { "b52-136.rom", 0x00020000, 0x2f414df0, 0, 0, 0, }, { "b52-137.rom", 0x00010000, 0x37abb74a, 0, 0, 0, }, { "b52-m113.rom", 0x00080000, 0x2c6a3a05, 0, 0, 0, }, { "b52-m114.rom", 0x00080000, 0x3a73d6b1, 0, 0, 0, }, { "b52-m115.rom", 0x00080000, 0x4e117e93, 0, 0, 0, }, { "b52-m116.rom", 0x00080000, 0xad46983c, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO chase_hq_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x022804, 0x04, BIT_ACTIVE_1 }, { KB_DEF_COIN2, MSG_COIN2, 0x022804, 0x08, BIT_ACTIVE_1 }, { KB_DEF_TILT, MSG_TILT, 0x022806, 0x02, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x022804, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x022806, 0x08, BIT_ACTIVE_0 },// Fake wheel addresses, used for keyboard support { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x022818, 0x7F, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x02281A, 0x7F, BIT_ACTIVE_0 }, // Fake pedal addresses, used for keyboard support - Unsure if adresses are really unused { KB_DEF_P1_B1, "Accelerator", 0x022807, 0xFF, BIT_ACTIVE_1 }, { KB_DEF_P1_B2, "Brake", 0x022809, 0xFF, BIT_ACTIVE_1 }, { KB_DEF_P1_B3, "Gear Change", 0x022820, 0xFF, BIT_ACTIVE_1 }, { KB_DEF_P1_B4, "Turbo", 0x022806, 0x01, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct DSW_DATA dsw_data_chase_hq_0[] ={/* User is not allowed to select cabinet type. Dipswitches are locked at the only setting with PC compatible controls.*/// { "Cabinet Type", 0x03, 0x04 }, // Motor Enable (?)// { "Upright/Steering Lock", 0x03, 0x00 },// { "Upright No Steer Lock", 0x02, 0x00 },// { "Full Throttle Convrt", 0x01, 0x00 },// { "Full Thrtle Dlx Cnvrt", 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_input_fake[] ={ { "Gear Mode", 0x01, 0x02 }, { "Low while pressed", 0x01, 0x00 }, { "Toggle", 0x00, 0x00 }, { "Wheel", 0x02, 0x02 }, { "Keyboard/Digital", 0x02, 0x00 }, { "PC Steering Wheel", 0x00, 0x00 }, { "Accelerator", 0x04, 0x02 }, { "Keyboard/Digital", 0x04, 0x00 }, { "PC Pedal (analog)", 0x00, 0x00 }, { "Brake", 0x08, 0x02 }, { "Keyboard/Digital", 0x08, 0x00 }, { "PC Pedal (analog)", 0x00, 0x00 }, { NULL, 0, 0, },};struct DSW_DATA dsw_data_chase_hq_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 }, { "60", 0x0C, 0x00 }, { "70", 0x08, 0x00 }, { "65", 0x04, 0x00 }, { "55", 0x00, 0x00 }, { "Start Turbos", 0x10, 0x02 }, { "3", 0x10, 0x00 }, { "5", 0x00, 0x00 }, { "Clear Damage on Cont.", 0x40, 0x02 }, { MSG_OFF, 0x40, 0x00 }, { MSG_ON, 0x00, 0x00 }, { "Continue Play", 0x80, 0x02 }, { MSG_ON, 0x80, 0x00 }, { MSG_OFF, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO chase_hq_dsw[] ={ { 0x022800, 0xFD, dsw_data_chase_hq_0 }, { 0x022802, 0xFF, dsw_data_chase_hq_1 }, { 0x022801, 0xFE, dsw_input_fake }, { 0, 0, NULL, },};static struct VIDEO_INFO chase_hq_video ={ DrawChaseHQ, 320, 240, 32, VIDEO_ROTATE_NORMAL| VIDEO_ROTATABLE,};struct GAME_MAIN game_chase_hq ={ chase_hq_dirs, chase_hq_roms, chase_hq_inputs, chase_hq_dsw, NULL, load_chase_hq, clear_chase_hq, &chase_hq_video, ExecuteChaseHQFrame, "chasehq", "Chase HQ", "僠僃僀僗俫俻 American", COMPANY_ID_TAITO, "B52", 1988, taito_ym2610b_sound, GAME_RACE,};static struct DIR_INFO chase_hq_japanese_dirs[] ={ { "chase_hq_japanese", }, { "chasehqj", }, { ROMOF("chasehq"), }, { CLONEOF("chasehq"), }, { NULL, },};static struct ROM_INFO chase_hq_japanese_roms[] ={ { "b52-m28.rom", 0x00080000, 0x963bc82b, 0, 0, 0, }, { "b52-m29.rom", 0x00080000, 0x8366d27c, 0, 0, 0, }, { "b52-m30.rom", 0x00080000, 0x1b8cc647, 0, 0, 0, }, { "b52-m31.rom", 0x00080000, 0xf1998e20, 0, 0, 0, }, { "b52-m32.rom", 0x00080000, 0x8620780c, 0, 0, 0, }, { "b52-m33.rom", 0x00080000, 0xe6f4b8c4, 0, 0, 0, }, { "b52-m34.rom", 0x00080000, 0x7d8dce36, 0, 0, 0, }, { "b52-m35.rom", 0x00080000, 0x78eeec0d, 0, 0, 0, }, { "b52-m36.rom", 0x00080000, 0x61e89e91, 0, 0, 0, }, { "b52-m37.rom", 0x00080000, 0xf02e47b9, 0, 0, 0, }, { "b52-m38.fix", 0x00080000, 0x5b5bf7f6, 0, 0, 0, }, { "b52-50.rom", 0x00010000, 0xc189781c, 0, 0, 0, }, { "b52-51.rom", 0x00010000, 0x30cc1f79, 0, 0, 0, }, { "b52-129.rom", 0x00020000, 0x0eaebc08, 0, 0, 0, }, { "b52-140", 0x00020000, 0xc1298a4b, 0, 0, 0, }, { "b52-131.rom", 0x00020000, 0xaa945d83, 0, 0, 0, }, { "b52-132.rom", 0x00010000, 0xa2f54789, 0, 0, 0, }, { "b52-133.rom", 0x00010000, 0x12232f95, 0, 0, 0, }, { "b52-139", 0x00020000, 0x997f732e, 0, 0, 0, }, { "b52-134", 0x00010000, 0x91faac7f, 0, 0, 0, }, { "b52-39", 0x00080000, 0xac9cbbd3, 0, 0, 0, }, { "b52-40", 0x00080000, 0xf0551055, 0, 0, 0, }, { "b52-41", 0x00080000, 0x8204880c, 0, 0, 0, }, { "b52-42", 0x00080000, 0x6e617df1, 0, 0, 0, }, { "b52-49", 0x00002000, 0x60dd2ed1, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};struct GAME_MAIN game_chase_hq_japanese ={ chase_hq_japanese_dirs, chase_hq_japanese_roms, chase_hq_inputs, chase_hq_dsw, NULL, load_chase_hq_japanese, clear_chase_hq, &chase_hq_video, ExecuteChaseHQFrame, "chasehqj", "Chase HQ (Japan)", "僠僃僀僗俫俻", COMPANY_ID_TAITO, "B52", 1988, taito_ym2610b_sound, GAME_RACE,};static struct DIR_INFO night_striker_dirs[] ={ { "night_striker", }, { "nightstr", }, { NULL, },};static struct ROM_INFO night_striker_roms[] ={ { "b91-01.bin", 0x00080000, 0x3731d94f, 0, 0, 0, }, { "b91-02.bin", 0x00080000, 0x457c64b8, 0, 0, 0, }, { "b91-03.bin", 0x00080000, 0xcd5fed39, 0, 0, 0, }, { "b91-04.bin", 0x00080000, 0x8ca1970d, 0, 0, 0, }, { "b91-05.bin", 0x00080000, 0x5e72ac90, 0, 0, 0, }, { "b91-06.bin", 0x00080000, 0xa34dc839, 0, 0, 0, }, { "b91-07.bin", 0x00080000, 0x4d8ec6cf, 0, 0, 0, }, { "b91-08.bin", 0x00080000, 0x66f35c34, 0, 0, 0, }, { "b91-09.bin", 0x00080000, 0x5f247ca2, 0, 0, 0, }, { "b91-10.bin", 0x00080000, 0x1d8f05b4, 0, 0, 0, }, { "b91-11.bin", 0x00080000, 0xfff8ce31, 0, 0, 0, }, { "b91-12.bin", 0x00080000, 0xda77c7af, 0, 0, 0, }, { "b91-13.bin", 0x00080000, 0x8c7bf0f5, 0, 0, 0, }, { "b91-14.bin", 0x00080000, 0x6bc314d3, 0, 0, 0, }, { "b91-26.bin", 0x00000400, 0x77682a4f, 0, 0, 0, }, { "b91-27.bin", 0x00000400, 0xa3f8490d, 0, 0, 0, }, { "b91-28.bin", 0x00000400, 0xfa2f840e, 0, 0, 0, }, { "b91-29.bin", 0x00002000, 0xad685be8, 0, 0, 0, }, { "b91-30.bin", 0x00010000, 0x30cc1f79, 0, 0, 0, }, { "b91-31.bin", 0x00010000, 0xc189781c, 0, 0, 0, }, { "b91-32.bin", 0x00000100, 0xfbf81f30, 0, 0, 0, }, { "b91-33.bin", 0x00000100, 0x89719d17, 0, 0, 0, }, { "b91-39.bin", 0x00020000, 0x725b23ae, 0, 0, 0, }, { "b91-40.bin", 0x00020000, 0x81fb364d, 0, 0, 0, }, { "b91-41.bin", 0x00020000, 0x2694bb42, 0, 0, 0, }, { "b91-43.bin", 0x00020000, 0x3e6f727a, 0, 0, 0, }, { "b91-44.bin", 0x00020000, 0x4bc30adf, 0, 0, 0, }, { "b91-45.bin", 0x00020000, 0x7ad63421, 0, 0, 0, }, { "b91-46.bin", 0x00020000, 0xe870be95, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO night_striker_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x022804, 0x20, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x022804, 0x10, BIT_ACTIVE_0 }, { KB_DEF_TILT, MSG_TILT, 0x022804, 0x80, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x022804, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x02280E, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P1_UP, MSG_P1_UP, 0x022910, 0xFF, BIT_ACTIVE_1 }, { KB_DEF_P1_DOWN, MSG_P1_DOWN, 0x022911, 0xFF, BIT_ACTIVE_1 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x022912, 0xFF, BIT_ACTIVE_1 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x022913, 0xFF, BIT_ACTIVE_1 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x02280E, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P1_B2, MSG_P1_B2, 0x02280E, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x02280E, 0x02, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct DSW_DATA dsw_data_night_striker_0[] ={ { MSG_DSWA_BIT1, 0x01, 0x02 }, { MSG_OFF, 0x01, 0x00 }, { MSG_ON, 0x00, 0x00 }, { MSG_DSWA_BIT2, 0x02, 0x02 }, { MSG_OFF, 0x02, 0x00 }, { MSG_ON, 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_DSWA_BIT5, 0x10, 0x02 }, { MSG_OFF, 0x10, 0x00 }, { MSG_ON, 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 night_striker_dsw[] ={ { 0x022800, 0xFF, dsw_data_night_striker_0 }, { 0x022802, 0xFF, dsw_data_default_1 }, { 0, 0, NULL, },};struct GAME_MAIN game_night_striker ={ night_striker_dirs, night_striker_roms, night_striker_inputs, night_striker_dsw, NULL, LoadNightStr, ClearNightStr, &chase_hq_video, ExecuteNightStrFrame, "nightstr", "Night Striker", NULL, COMPANY_ID_TAITO, "b91", 1989, taito_ym2610b_sound, GAME_RACE | GAME_SHOOT | GAME_PARTIALLY_WORKING,};#define OBJ_A_COUNT (0x3EE7)#define OBJ_B_COUNT (0x3E87)static int obj_id,rod_id;static int romset;/*Type#1------- A - Chase HQ- A - Night Striker00000-3FFFF = Object 128x128 [16x16] [19900/80:0332] gfx bank#140000-5FFFF = Object 64x128 [16x16] [0CC80/40:0332] gfx bank#260000-7FFFF = Object 32x128 [16x16] [06640/20:0332] gfx bank#2Type#2------- A - Top Speed- A - Full Throttle
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -