?? growl.c
字號:
/******************************************************************************//* *//* GROWL/RUNARK (C) 1990 TAITO CORPORATION *//* *//******************************************************************************/#include "gameinc.h"#include "growl.h"#include "tc100scn.h"#include "tc200obj.h"#include "tc220ioc.h"#include "sasound.h" // sample support routines#include "taitosnd.h"#ifdef RAINE_DEBUG#include "debug.h"#endifstatic struct DIR_INFO growl_dirs[] ={ { "growl", }, { NULL, },};static struct ROM_INFO growl_roms[] ={ { "growl_04.rom", 0x00100000, 0x2d97edf2, 0, 0, 0, }, { "growl_02.rom", 0x00100000, 0x15a21506, 0, 0, 0, }, { "growl_03.rom", 0x00100000, 0x1a0d8951, 0, 0, 0, }, { "growl_01.rom", 0x00100000, 0x3434ce80, 0, 0, 0, }, { "growl_05.rom", 0x00080000, 0xe29c0828, 0, 0, 0, }, { "growl_08.rom", 0x00040000, 0xaa35dd9e, 0, 0, 0, }, { "growl_10.rom", 0x00040000, 0xca81a20b, 0, 0, 0, }, { "growl_11.rom", 0x00040000, 0xee3bd6d5, 0, 0, 0, }, { "growl_12.rom", 0x00010000, 0xbb6ed668, 0, 0, 0, }, { "growl_14.rom", 0x00040000, 0xb6c24ec7, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO growl_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x032384, 0x04, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x032384, 0x08, BIT_ACTIVE_0 }, { KB_DEF_TILT, MSG_TILT, 0x032384, 0x01, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x032384, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x032380, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P1_UP, MSG_P1_UP, 0x032380, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P1_DOWN, MSG_P1_DOWN, 0x032380, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x032380, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x032380, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x032380, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_B2, MSG_P1_B2, 0x032380, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P1_B3, MSG_P1_B3, 0x032380, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x032382, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_UP, MSG_P2_UP, 0x032382, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P2_DOWN, MSG_P2_DOWN, 0x032382, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P2_LEFT, MSG_P2_LEFT, 0x032382, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P2_RIGHT, MSG_P2_RIGHT, 0x032382, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P2_B1, MSG_P2_B1, 0x032382, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P2_B2, MSG_P2_B2, 0x032382, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_B3, MSG_P2_B3, 0x032382, 0x40, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct DSW_DATA dsw_data_growl_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_3COIN_1PLAY, 0x00, 0x00 }, { MSG_COIN2, 0xC0, 0x04 }, { MSG_1COIN_1PLAY, 0xC0, 0x00 }, { MSG_1COIN_2PLAY, 0x80, 0x00 }, { MSG_2COIN_1PLAY, 0x40, 0x00 }, { MSG_3COIN_1PLAY, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_DATA dsw_data_growl_1[] ={ { MSG_DIFFICULTY, 0x03, 0x04 }, { MSG_NORMAL, 0x03, 0x00 }, { MSG_EASY, 0x02, 0x00 }, { MSG_HARD, 0x01, 0x00 }, { MSG_HARDEST, 0x00, 0x00 }, { "Game Type", 0x30, 0x04 }, { "1 Credit/2P", 0x30, 0x00 }, { "4 Credits/4P", 0x20, 0x00 }, { "1 Credit/4P", 0x10, 0x00 }, { "2 Credits/4P", 0x00, 0x00 }, { "Final Stage Cont", 0x40, 0x02 }, { MSG_OFF, 0x40, 0x00 }, { MSG_ON, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO growl_dsw[] ={ { 0x032100, 0xFF, dsw_data_growl_0 }, { 0x032102, 0xFF, dsw_data_growl_1 }, { 0, 0, NULL, },};static struct ROMSW_DATA romsw_data_growl_0[] ={ { "Taito Japan (Runark)", 0x01 }, { "Taito America (Growl)", 0x02 }, { "Taito Worldwide (Growl)", 0x03 }, { NULL, 0 },};static struct ROMSW_INFO growl_romsw[] ={ { 0x0FFFFF, 0x03, romsw_data_growl_0 }, { 0, 0, NULL },};static struct VIDEO_INFO growl_video ={ DrawGrowl, 320, 224, 32, VIDEO_ROTATE_NORMAL| VIDEO_ROTATABLE,};struct GAME_MAIN game_growl ={ growl_dirs, growl_roms, growl_inputs, growl_dsw, growl_romsw, LoadGrowl, ClearGrowl, &growl_video, ExecuteGrowlFrame, "growl", "Growl", "儖僫乕僋", COMPANY_ID_TAITO, "C74", 1990, taito_ym2610_sound, GAME_BEAT,};static UINT8 *RAM_INPUT;static UINT8 *RAM_VIDEO;static UINT8 *RAM_OBJECT;static UINT8 *RAM_SCROLL;static UINT8 *GFX_BG0;static UINT8 *GFX_BG0_SOLID;static UINT8 *GFX_SPR;static UINT8 *GFX_SPR_SOLID;static int BadReadWord(UINT32 address){#ifdef RAINE_DEBUG print_debug("Rw(%06x) [%06x]\n",address,s68000context.pc);#endif return(0xFFFF);}void LoadGrowl(void){ int ta,tb; if(!(RAM=AllocateMem(0x100000))) return; if(!(GFX=AllocateMem(0x600000))) return; GFX_BG0 = GFX+0x000000; GFX_SPR = GFX+0x200000; tb=0; if(!load_rom("growl_01.rom", RAM, 0x100000)) return; for(ta=0;ta<0x100000;ta+=2){ GFX[tb+0]=RAM[ta+1]>>4; GFX[tb+1]=RAM[ta+1]&15; GFX[tb+2]=RAM[ta+0]>>4; GFX[tb+3]=RAM[ta+0]&15; tb+=4; } if(!load_rom("growl_03.rom", RAM, 0x100000)) return; for(ta=0;ta<0x100000;ta++){ GFX[tb++]=RAM[ta]&15; GFX[tb++]=RAM[ta]>>4; } if(!load_rom("growl_02.rom", RAM, 0x100000)) return; for(ta=0;ta<0x100000;ta++){ GFX[tb++]=RAM[ta]&15; GFX[tb++]=RAM[ta]>>4; } RAMSize=0x40000+0x10000; if(!(RAM=AllocateMem(RAMSize))) return; if(!(ROM=AllocateMem(0x100000))) return; if(!load_rom("growl_10.rom", RAM, 0x40000)) return; for(ta=0;ta<0x40000;ta++){ ROM[ta+ta]=RAM[ta]; } if(!load_rom("growl_08.rom", RAM, 0x40000)) return; for(ta=0;ta<0x40000;ta++){ ROM[ta+ta+1]=RAM[ta]; } if(!load_rom("growl_11.rom", RAM, 0x40000)) return; for(ta=0;ta<0x40000;ta++){ ROM[ta+ta+0x80000]=RAM[ta]; } if(!load_rom("growl_14.rom", RAM, 0x40000)) return; for(ta=0;ta<0x40000;ta++){ ROM[ta+ta+0x80001]=RAM[ta]; } /*-----[Sound Setup]-----*/ Z80ROM=RAM+0x40000; if(!load_rom("growl_12.rom", Z80ROM, 0x10000)) return; // Z80 SOUND ROM if(!(PCMROM=AllocateMem(0x100000))) return; if(!load_rom("growl_04.rom",PCMROM,0x100000)) return; // ADPCM A rom YM2610SetBuffers(PCMROM, PCMROM, 0x100000, 0x100000); AddTaitoYM2610(0x01A9, 0x0155, 0x10000); /*-----------------------*/ RAM_VIDEO = RAM+0x10000; RAM_OBJECT = RAM+0x20000; RAM_SCROLL = RAM+0x32000;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -