?? bsystem.c
字號:
/******************************************************************************//* *//* QUIZ SEKAI WA SHOW BY SHOBAI (C) 1993 TAITO CORPORATION *//* *//******************************************************************************/#include "gameinc.h"#include "bsystem.h"#include "tc180vcu.h"#include "tc220ioc.h"#include "taitosnd.h"#include "cat93c46.h"#ifdef RAINE_DEBUG#include "debug.h"#endif#include "sasound.h" // sample support routines#include "savegame.h"static struct DIR_INFO quiz_sekai_wa_show_by_shobai_dirs[] ={ { "quiz_sekai_wa_show_by_shobai", }, { "qzshowby", }, { NULL, },};static struct ROM_INFO quiz_sekai_wa_show_by_shobai_roms[] ={ { "d72-13.bin", 0x00080000, 0xa867759f, REGION_ROM1, 0x000000, LOAD_8_16, }, { "d72-12.bin", 0x00080000, 0x522c09a7, REGION_ROM1, 0x000001, LOAD_8_16, }, { "d72-01.bin", 0x00200000, 0xb82b8830, 0, 0, 0, }, { "d72-02.bin", 0x00200000, 0xbf0da640, 0, 0, 0, }, { "d72-03.bin", 0x00200000, 0x1de257d0, 0, 0, 0, }, { "d72-11.bin", 0x00020000, 0x2ca046e2, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO quiz_sekai_wa_show_by_shobai_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x026003, 0x10, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x026003, 0x20, BIT_ACTIVE_0 }, { KB_DEF_COIN3, MSG_COIN3, 0x026003, 0x40, BIT_ACTIVE_0 }, { KB_DEF_COIN4, MSG_COIN4, 0x026003, 0x80, BIT_ACTIVE_0 }, { KB_DEF_TILT, MSG_TILT, 0x026005, 0x01, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x026005, 0x02, BIT_ACTIVE_0 }, { KB_DEF_TEST, MSG_TEST, 0x026003, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x026005, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x02600F, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P1_B2, MSG_P1_B2, 0x02600F, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_B3, MSG_P1_B3, 0x02600F, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P1_B4, MSG_P1_B4, 0x02600F, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x026005, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_B1, MSG_P2_B1, 0x02600F, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P2_B2, MSG_P2_B2, 0x02600F, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_B3, MSG_P2_B3, 0x02600F, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_B4, MSG_P2_B4, 0x02600F, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P3_START, MSG_P3_START, 0x026005, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P3_B1, MSG_P3_B1, 0x02602F, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P3_B2, MSG_P3_B2, 0x02602F, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P3_B3, MSG_P3_B3, 0x02602F, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P3_B4, MSG_P3_B4, 0x02602F, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P4_START, MSG_P4_START, 0x026005, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P4_B1, MSG_P4_B1, 0x02602F, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P4_B2, MSG_P4_B2, 0x02602F, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P4_B3, MSG_P4_B3, 0x02602F, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P4_B4, MSG_P4_B4, 0x02602F, 0x40, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};struct GAME_MAIN game_quiz_sekai_wa_show_by_shobai ={ quiz_sekai_wa_show_by_shobai_dirs, quiz_sekai_wa_show_by_shobai_roms, quiz_sekai_wa_show_by_shobai_inputs, NULL, NULL, load_quiz_sekai_wa_show_by_shobai, clear_quiz_sekai_wa_show_by_shobai, &b_system_video, execute_quiz_sekai_wa_show_by_shobai_frame, "qzshowby", "Quiz sekai wa show by shobai", "僋僀僘悰奅偼俽倛倧倵丂倐倷丂僔儑乕僶僀", COMPANY_ID_TAITO, "D72", 1993, taito_ym2610_sound, GAME_PUZZLE,};static struct DIR_INFO puzzle_bobble_b_system_dirs[] ={ { "puzzle_bobble_b_system", }, { "puzbobb", }, { "pbobblbs", }, { NULL, },};static struct ROM_INFO puzzle_bobble_b_system_roms[] ={ { "pb-ic18.bin", 0x00040000, 0x5de14f49, REGION_ROM1, 0x000000, LOAD_8_16, }, { "pb-ic2.bin", 0x00040000, 0x2abe07d1, REGION_ROM1, 0x000001, LOAD_8_16, }, { "pb-ic9.bin", 0x00080000, 0x3253aac9, 0, 0, 0, }, { "pb-ic14.bin", 0x00080000, 0x55f90ea4, 0, 0, 0, }, { "pb-ic15.bin", 0x00100000, 0x0840cbc4, 0, 0, 0, }, { "pb-ic27.bin", 0x00020000, 0x26efa4c4, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO puzzle_bobble_b_system_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x026002, 0x10, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x026002, 0x20, BIT_ACTIVE_0 }, { KB_DEF_TILT, MSG_TILT, 0x026004, 0x01, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x026004, 0x02, BIT_ACTIVE_0 }, { KB_DEF_TEST, MSG_TEST, 0x026002, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x026004, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_UP, MSG_P1_UP, 0x02600E, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P1_DOWN, MSG_P1_DOWN, 0x02600E, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x02600E, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x02600E, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x026006, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x026004, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_UP, MSG_P2_UP, 0x02600E, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P2_DOWN, MSG_P2_DOWN, 0x02600E, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_LEFT, MSG_P2_LEFT, 0x02600E, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P2_RIGHT, MSG_P2_RIGHT, 0x02600E, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_B1, MSG_P2_B1, 0x026006, 0x10, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct ROMSW_DATA romsw_data_puzzle_bobble_b_system_0[] ={ { "Puzzle Bobble - Taito Japan", 0x01 }, { "Bubble Buster - Taito America", 0x02 }, { "Bubble Buster - Taito (World)", 0x03 }, { "Puzzle Bobble - Taito (World)", 0x04 }, { NULL, 0 },};static struct ROMSW_INFO puzzle_bobble_b_system_romsw[] ={ { 0x07FFFF, 0x01, romsw_data_puzzle_bobble_b_system_0 }, { 0, 0, NULL },};struct GAME_MAIN game_puzzle_bobble_b_system ={ puzzle_bobble_b_system_dirs, puzzle_bobble_b_system_roms, puzzle_bobble_b_system_inputs, NULL, puzzle_bobble_b_system_romsw, load_puzzle_bobble_b_system, clear_puzzle_bobble_b_system, &b_system_video, execute_puzzle_bobble_b_system_frame, "pbobblbs", "Puzzle Bobble (b system)", NULL, COMPANY_ID_TAITO, NULL, 1994, taito_ym2610_sound, GAME_PUZZLE,};static struct DIR_INFO space_invaders_dx_dirs[] ={ { "space_invaders_dx", }, { "spacedx", }, { NULL, },};static struct ROM_INFO space_invaders_dx_roms[] ={ { "d89-06", 0x00040000, 0x7122751e, REGION_ROM1, 0x000000, LOAD_8_16, }, { "d89-05", 0x00040000, 0xbe1638af, REGION_ROM1, 0x000001, LOAD_8_16, }, { "d89-01", 0x00080000, 0xfffa0660, 0, 0, 0, }, { "d89-02", 0x00080000, 0xc36544b9, 0, 0, 0, }, { "d89-03", 0x00080000, 0x218f31a4, 0, 0, 0, }, { "d89-07", 0x00010000, 0xbd743401, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO space_invaders_dx_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x072002, 0x10, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x072002, 0x20, BIT_ACTIVE_0 }, { KB_DEF_TILT, MSG_TILT, 0x072004, 0x01, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x072004, 0x02, BIT_ACTIVE_0 }, { KB_DEF_TEST, MSG_TEST, 0x072002, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x072004, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_UP, MSG_P1_UP, 0x07200E, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P1_DOWN, MSG_P1_DOWN, 0x07200E, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x07200E, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x07200E, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x072006, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x072004, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_UP, MSG_P2_UP, 0x07200E, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P2_DOWN, MSG_P2_DOWN, 0x07200E, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_LEFT, MSG_P2_LEFT, 0x07200E, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P2_RIGHT, MSG_P2_RIGHT, 0x07200E, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_B1, MSG_P2_B1, 0x072006, 0x10, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct ROMSW_DATA romsw_data_space_invaders_dx_0[] ={ { "Taito Japan", 0x01 }, { "Taito America", 0x02 }, { NULL, 0 },};static struct ROMSW_INFO space_invaders_dx_romsw[] ={ { 0x03FFFF, 0x02, romsw_data_space_invaders_dx_0 }, { 0, 0, NULL },};static struct VIDEO_INFO space_invaders_dx_video ={ draw_space_dx, 320, 224, 32, VIDEO_ROTATE_NORMAL,};struct GAME_MAIN game_space_invaders_dx ={ space_invaders_dx_dirs, space_invaders_dx_roms, space_invaders_dx_inputs, NULL, space_invaders_dx_romsw, load_space_dx, clear_puzzle_bobble_b_system, &space_invaders_dx_video, execute_space_dx_frame, "spacedx", "Space Invaders DX", "僗儁乕僗僀儞儀乕僟乕俢倃", COMPANY_ID_TAITO, "D89", 1994, taito_ym2610_sound, GAME_SHOOT,};static UINT8 *RAM_INPUT;static UINT8 *RAM_VIDEO;static UINT8 *RAM_VIDEO_2;static UINT8 *RAM_COLOUR;static UINT8 *GFX_BG0;static UINT8 *GFX_BG0_SOLID;static UINT8 *GFX_BG2;static UINT8 *GFX_BG2_SOLID;void load_quiz_sekai_wa_show_by_shobai(void){ int ta,tb,tc; if(!(RAM=AllocateMem(0x200000))) return; if(!(GFX=AllocateMem(0x840000))) return; GFX_BG0 = GFX+0x000000; GFX_BG2 = GFX+0x800000; if(!load_rom("d72-02.bin", RAM, 0x200000)) return; tb=0x800000; for(ta=0;ta<0x10000;ta+=2){ tc=RAM[ta+0x40001]; GFX[tb+0]=((tc&0x80)>>7)<<0; GFX[tb+1]=((tc&0x40)>>6)<<0; GFX[tb+2]=((tc&0x20)>>5)<<0; GFX[tb+3]=((tc&0x10)>>4)<<0; GFX[tb+4]=((tc&0x08)>>3)<<0; GFX[tb+5]=((tc&0x04)>>2)<<0; GFX[tb+6]=((tc&0x02)>>1)<<0; GFX[tb+7]=((tc&0x01)>>0)<<0; tc=RAM[ta+0x40000]; GFX[tb+0]|=((tc&0x80)>>7)<<1; GFX[tb+1]|=((tc&0x40)>>6)<<1; GFX[tb+2]|=((tc&0x20)>>5)<<1; GFX[tb+3]|=((tc&0x10)>>4)<<1; GFX[tb+4]|=((tc&0x08)>>3)<<1; GFX[tb+5]|=((tc&0x04)>>2)<<1; GFX[tb+6]|=((tc&0x02)>>1)<<1; GFX[tb+7]|=((tc&0x01)>>0)<<1; tb+=8; } tb=0; for(ta=0;ta<0x200000;ta+=2){ tc=RAM[ta+1]; GFX[tb+0]=((tc&0x80)>>7)<<0; GFX[tb+1]=((tc&0x40)>>6)<<0; GFX[tb+2]=((tc&0x20)>>5)<<0; GFX[tb+3]=((tc&0x10)>>4)<<0; GFX[tb+4]=((tc&0x08)>>3)<<0; GFX[tb+5]=((tc&0x04)>>2)<<0; GFX[tb+6]=((tc&0x02)>>1)<<0; GFX[tb+7]=((tc&0x01)>>0)<<0; tc=RAM[ta]; GFX[tb+0]|=((tc&0x80)>>7)<<1; GFX[tb+1]|=((tc&0x40)>>6)<<1; GFX[tb+2]|=((tc&0x20)>>5)<<1; GFX[tb+3]|=((tc&0x10)>>4)<<1; GFX[tb+4]|=((tc&0x08)>>3)<<1; GFX[tb+5]|=((tc&0x04)>>2)<<1; GFX[tb+6]|=((tc&0x02)>>1)<<1; GFX[tb+7]|=((tc&0x01)>>0)<<1; tb+=16; if((tb&0x7F)==0){tb-=0x78;} else{if((tb&0x7F)==8){tb-=0x08;}} } if(!load_rom("d72-03.bin", RAM, 0x200000)) return; tb=0x800000; for(ta=0;ta<0x10000;ta+=2){ tc=RAM[ta+0x40001]; GFX[tb+0]|=((tc&0x80)>>7)<<2; GFX[tb+1]|=((tc&0x40)>>6)<<2; GFX[tb+2]|=((tc&0x20)>>5)<<2; GFX[tb+3]|=((tc&0x10)>>4)<<2; GFX[tb+4]|=((tc&0x08)>>3)<<2; GFX[tb+5]|=((tc&0x04)>>2)<<2; GFX[tb+6]|=((tc&0x02)>>1)<<2; GFX[tb+7]|=((tc&0x01)>>0)<<2; tc=RAM[ta+0x40000]; GFX[tb+0]|=((tc&0x80)>>7)<<3; GFX[tb+1]|=((tc&0x40)>>6)<<3; GFX[tb+2]|=((tc&0x20)>>5)<<3; GFX[tb+3]|=((tc&0x10)>>4)<<3; GFX[tb+4]|=((tc&0x08)>>3)<<3; GFX[tb+5]|=((tc&0x04)>>2)<<3; GFX[tb+6]|=((tc&0x02)>>1)<<3; GFX[tb+7]|=((tc&0x01)>>0)<<3; tb+=8; } tb=0; for(ta=0;ta<0x200000;ta+=2){ tc=RAM[ta+1]; GFX[tb+0]|=((tc&0x80)>>7)<<2; GFX[tb+1]|=((tc&0x40)>>6)<<2; GFX[tb+2]|=((tc&0x20)>>5)<<2; GFX[tb+3]|=((tc&0x10)>>4)<<2; GFX[tb+4]|=((tc&0x08)>>3)<<2; GFX[tb+5]|=((tc&0x04)>>2)<<2; GFX[tb+6]|=((tc&0x02)>>1)<<2; GFX[tb+7]|=((tc&0x01)>>0)<<2; tc=RAM[ta]; GFX[tb+0]|=((tc&0x80)>>7)<<3; GFX[tb+1]|=((tc&0x40)>>6)<<3; GFX[tb+2]|=((tc&0x20)>>5)<<3; GFX[tb+3]|=((tc&0x10)>>4)<<3; GFX[tb+4]|=((tc&0x08)>>3)<<3; GFX[tb+5]|=((tc&0x04)>>2)<<3; GFX[tb+6]|=((tc&0x02)>>1)<<3; GFX[tb+7]|=((tc&0x01)>>0)<<3; tb+=16; if((tb&0x7F)==0){tb-=0x78;} else{if((tb&0x7F)==8){tb-=0x08;}} } FreeMem(RAM); RAMSize=0x40000+0x20000; if(!(RAM=AllocateMem(0x80000))) return; /*-----[Sound Setup]-----*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -