⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 megasys1.c

📁 十七种模拟器源代码 非常有用的作课程设计不可缺少的
💻 C
📖 第 1 页 / 共 5 页
字号:
   {  "astyan6.bin", 0x00010000, 0xeecd4b16, 0, 0, 0, },   {  "astyan7.bin", 0x00020000, 0x319418cc, 0, 0, 0, },   {  "astyan8.bin", 0x00020000, 0x5e5d2a22, 0, 0, 0, },   {  "astyan9.bin", 0x00020000, 0xa10b3f17, 0, 0, 0, },   { "astyan10.bin", 0x00020000, 0x4f704e7a, 0, 0, 0, },   { "astyan11.bin", 0x00020000, 0x5593fec9, 0, 0, 0, },   { "astyan12.bin", 0x00020000, 0xe8b313ec, 0, 0, 0, },   { "astyan13.bin", 0x00020000, 0x5f3496c6, 0, 0, 0, },   { "astyan14.bin", 0x00020000, 0x29a09ec2, 0, 0, 0, },   { "astyan15.bin", 0x00020000, 0x0d316615, 0, 0, 0, },   { "astyan16.bin", 0x00020000, 0xba96e8d9, 0, 0, 0, },   { "astyan17.bin", 0x00020000, 0xbe60ba06, 0, 0, 0, },   { "astyan18.bin", 0x00020000, 0x3668da3d, 0, 0, 0, },   { "astyan19.bin", 0x00020000, 0x98158623, 0, 0, 0, },   { "astyan20.bin", 0x00020000, 0xc1ad9aa0, 0, 0, 0, },   { "astyan21.bin", 0x00020000, 0x0bf498ee, 0, 0, 0, },   { "astyan22.bin", 0x00020000, 0x5f04d9b1, 0, 0, 0, },   { "astyan23.bin", 0x00020000, 0x7bd4d1e7, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};struct GAME_MAIN game_the_lord_of_king ={   the_lord_of_king_dirs,   the_lord_of_king_roms,   megasys_1_inputs,   astyanax_dsw,   NULL,   load_the_lord_of_king,   ClearAstyanax,   &megasys1_video,   ExecuteMegaSystem1Frame,   "lordofk",   "The Lord of King",   "僓丒儘乕僪丒僆僽丒僉儞僌",   COMPANY_ID_JALECO,   NULL,   1988,   jaleco_ym2151_m6295x2_sound,   GAME_BEAT,};static struct DIR_INFO avenging_spirit_dirs[] ={   { "avenging_spirit", },   { "avspirit", },   { NULL, },};static struct ROM_INFO avenging_spirit_roms[] ={   { "spirit09.rom", 0x00020000, 0x0c37edf7, 0, 0, 0, },   { "spirit02.rom", 0x00020000, 0x30213390, 0, 0, 0, },   { "spirit05.rom", 0x00040000, 0xb26a341a, 0, 0, 0, },   { "spirit06.rom", 0x00040000, 0x609f71fe, 0, 0, 0, },   { "spirit01.rom", 0x00020000, 0xd02ec045, 0, 0, 0, },   { "spirit10.rom", 0x00080000, 0x2b1180b3, 0, 0, 0, },   { "spirit11.rom", 0x00080000, 0x7896f6b0, 0, 0, 0, },   { "spirit12.rom", 0x00080000, 0x728335d4, 0, 0, 0, },   { "spirit13.rom", 0x00040000, 0x05bc04d9, 0, 0, 0, },   { "spirit14.rom", 0x00040000, 0x13be9979, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_INFO avenging_spirit_dsw[] ={   { 0x010007, 0xFF, dsw_data_default_0 },   { 0x010006, 0xFF, dsw_data_default_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_avenging_spirit ={   avenging_spirit_dirs,   avenging_spirit_roms,   megasys_1_inputs,   avenging_spirit_dsw,   NULL,   LoadAvengingSpirit,   ClearAvengingSpirit,   &megasys1_video,   ExecuteMegaSystem1Frame,   "avspirit",   "Avenging Spirit",   "僼傽儞僞僘儉 American",   COMPANY_ID_JALECO,   NULL,   1991,   jaleco_ym2151_m6295x2_sound,   GAME_PLATFORM,};static struct DIR_INFO chimera_beast_dirs[] ={   { "chimera_beast", },   { "chimerab", },   { NULL, },};static struct ROM_INFO chimera_beast_roms[] ={   {       "b1.bin", 0x00080000, 0x29c0385e, 0, 0, 0, },   {       "b2.bin", 0x00080000, 0x6e7f1778, 0, 0, 0, },   {     "prg2.bin", 0x00040000, 0x821dbb85, 0, 0, 0, },   {     "prg3.bin", 0x00040000, 0x70f1448f, 0, 0, 0, },   {     "prg7.bin", 0x00010000, 0x83b9982d, 0, 0, 0, },   {     "prg8.bin", 0x00010000, 0xa682b1ca, 0, 0, 0, },   {       "s1.bin", 0x00080000, 0xe4c2ac77, 0, 0, 0, },   {       "s2.bin", 0x00080000, 0xfafb37a5, 0, 0, 0, },   {     "scr3.bin", 0x00020000, 0x5fe38a83, 0, 0, 0, },   {    "voi10.bin", 0x00040000, 0x67498914, 0, 0, 0, },   {    "voi11.bin", 0x00040000, 0x14b3afe6, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_INFO chimera_beast_dsw[] ={   { 0x010007, 0xFF, dsw_data_default_0 },   { 0x010006, 0xFF, dsw_data_default_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_chimera_beast ={   chimera_beast_dirs,   chimera_beast_roms,   megasys_1_inputs,   chimera_beast_dsw,   NULL,   load_chimera_beast,   clear_chimera_beast,   &megasys2_video,   ExecuteMegaSystem2Frame,   "chimerab",   "Chimera Beast",   "僉儊儔價乕僗僩",   COMPANY_ID_JALECO,   NULL,   1993,   jaleco_ym2151_m6295x2_sound,   GAME_SHOOT,};static struct DIR_INFO cybattler_dirs[] ={   { "cybattler", },   { "cybattlr", },   { NULL, },};static struct ROM_INFO cybattler_roms[] ={   {   "cb_m03.rom", 0x00080000, 0x4cd49f58, 0, 0, 0, },   {   "cb_m01.rom", 0x00080000, 0x1109337f, 0, 0, 0, },   {   "cb_m02.rom", 0x00080000, 0x882825db, 0, 0, 0, },   {   "cb_m04.rom", 0x00080000, 0x0c91798e, 0, 0, 0, },   {    "cb_02.rom", 0x00040000, 0x2ed14c50, 0, 0, 0, },   {    "cb_03.rom", 0x00040000, 0xbee20587, 0, 0, 0, },   {    "cb_07.rom", 0x00010000, 0x85d219d7, 0, 0, 0, },   {    "cb_08.rom", 0x00010000, 0xbf7b3558, 0, 0, 0, },   {    "cb_09.rom", 0x00020000, 0x37b1f195, 0, 0, 0, },   {    "cb_10.rom", 0x00040000, 0x8af95eed, 0, 0, 0, },   {    "cb_11.rom", 0x00040000, 0x59d62d1f, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_INFO cybattler_dsw[] ={   { 0x010007, 0xFF, dsw_data_default_0 },   { 0x010006, 0xFF, dsw_data_default_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_cybattler ={   cybattler_dirs,   cybattler_roms,   megasys_1_inputs,   cybattler_dsw,   NULL,   LoadCybattler,   ClearCybattler,   &megasys2_r90_video,   ExecuteMegaSystem2Frame,   "cybattlr",   "Cybattler",   "僒僀僶僩儔乕",   COMPANY_ID_JALECO,   NULL,   1993,   jaleco_ym2151_m6295x2_sound,   GAME_SHOOT,};static struct DIR_INFO earth_defence_force_dirs[] ={   { "earth_defense_force", },   { "earth_defence_force", },   { "edf", },   { NULL, },};static struct ROM_INFO earth_defence_force_roms[] ={   {   "edf_09.rom", 0x00020000, 0x96e38983, 0, 0, 0, },   {   "edf_02.rom", 0x00020000, 0xce93643e, 0, 0, 0, },   {   "edf_05.rom", 0x00040000, 0x105094d1, 0, 0, 0, },   {   "edf_06.rom", 0x00040000, 0x94da2f0c, 0, 0, 0, },   {   "edf_01.rom", 0x00020000, 0x2290ea19, 0, 0, 0, },   {  "edf_m01.rom", 0x00040000, 0x9149286b, 0, 0, 0, },   {  "edf_m02.rom", 0x00040000, 0xfc4281d2, 0, 0, 0, },   {  "edf_m03.rom", 0x00080000, 0xef469449, 0, 0, 0, },   {  "edf_m04.rom", 0x00080000, 0x6744f406, 0, 0, 0, },   {  "edf_m05.rom", 0x00080000, 0x6f47e456, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_INFO earth_defence_force_dsw[] ={   { 0x010007, 0xFF, dsw_data_default_0 },   { 0x010006, 0xFF, dsw_data_default_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_earth_defence_force ={   earth_defence_force_dirs,   earth_defence_force_roms,   megasys_1_inputs,   earth_defence_force_dsw,   NULL,   LoadEarthDefForce,   ClearEarthDefForce,   &megasys1_video,   ExecuteMegaSystem1Frame,   "edf",   "Earth Defence Force",   "俤丏俢丏俥",   COMPANY_ID_JALECO,   NULL,   1991,   jaleco_ym2151_m6295x2_sound,   GAME_SHOOT,};static struct DIR_INFO hachoo_dirs[] ={   { "hachoo", },   { NULL, },};static struct ROM_INFO hachoo_roms[] ={   {  "hacho08.rom", 0x00020000, 0x888a6df1, 0, 0, 0, },   {  "hacho02.rom", 0x00020000, 0x49489c27, 0, 0, 0, },   {  "hacho05.rom", 0x00010000, 0x6271f74f, 0, 0, 0, },   {  "hacho06.rom", 0x00010000, 0xdb9e743c, 0, 0, 0, },   {  "hacho07.rom", 0x00020000, 0x06e6ca7f, 0, 0, 0, },   {  "hacho01.rom", 0x00020000, 0x97fc9515, 0, 0, 0, },   {  "hacho09.rom", 0x00020000, 0xe9f35c90, 0, 0, 0, },   {  "hacho10.rom", 0x00020000, 0x1aeaa188, 0, 0, 0, },   {  "hacho14.rom", 0x00080000, 0x10188483, 0, 0, 0, },   {  "hacho15.rom", 0x00020000, 0xe559347e, 0, 0, 0, },   {  "hacho16.rom", 0x00020000, 0x105fd8b5, 0, 0, 0, },   {  "hacho17.rom", 0x00020000, 0x77f46174, 0, 0, 0, },   {  "hacho18.rom", 0x00020000, 0x0be21111, 0, 0, 0, },   {  "hacho19.rom", 0x00020000, 0x33bc9de3, 0, 0, 0, },   {  "hacho20.rom", 0x00020000, 0x2ae2011e, 0, 0, 0, },   {  "hacho21.rom", 0x00020000, 0x6dcfb8d5, 0, 0, 0, },   {  "hacho22.rom", 0x00020000, 0xccabf0e0, 0, 0, 0, },   {  "hacho23.rom", 0x00020000, 0xff5f77aa, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_INFO hachoo_dsw[] ={   { 0x010007, 0xFF, dsw_data_default_0 },   { 0x010006, 0xFF, dsw_data_default_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_hachoo ={   hachoo_dirs,   hachoo_roms,   megasys_1_inputs,   hachoo_dsw,   NULL,   LoadHachoo,   ClearHachoo,   &megasys1_video,   ExecuteMegaSystem1Frame,   "hachoo",   "Hachoo",   "鱦掦",   COMPANY_ID_JALECO,   NULL,   1989,   jaleco_ym2151_m6295x2_sound,   GAME_BEAT,};static struct DIR_INFO kick_off_dirs[] ={   { "kick_off", },   { "kickoff", },   { NULL, },};static struct ROM_INFO kick_off_roms[] ={   {  "kioff07.rom", 0x00020000, 0xed649919, 0, 0, 0, },   {  "kioff03.rom", 0x00010000, 0x3b01be65, 0, 0, 0, },   {  "kioff05.rom", 0x00020000, 0xe7232103, 0, 0, 0, },   {  "kioff06.rom", 0x00020000, 0xa0b3cb75, 0, 0, 0, },   {  "kioff01.rom", 0x00010000, 0xae6e68a1, 0, 0, 0, },   {  "kioff09.rom", 0x00010000, 0x1770e980, 0, 0, 0, },   {  "kioff10.rom", 0x00020000, 0xfd739fec, 0, 0, 0, },   {  "kioff16.rom", 0x00020000, 0x22c46314, 0, 0, 0, },   {  "kioff17.rom", 0x00020000, 0xf171559e, 0, 0, 0, },   {  "kioff18.rom", 0x00020000, 0xd7909ada, 0, 0, 0, },   {  "kioff19.rom", 0x00010000, 0x1b03bbe4, 0, 0, 0, },   {  "kioff20.rom", 0x00020000, 0x5c28bd2d, 0, 0, 0, },   {  "kioff21.rom", 0x00020000, 0x195940cf, 0, 0, 0, },   {  "kioff26.rom", 0x00020000, 0x2a90df1b, 0, 0, 0, },   {  "kioff27.rom", 0x00020000, 0xca221ae2, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_INFO kick_off_dsw[] ={   { 0x010007, 0xFF, dsw_data_default_0 },   { 0x010006, 0xFF, dsw_data_default_1 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_kick_off ={   kick_off_dirs,   kick_off_roms,   megasys_1_inputs,   kick_off_dsw,   NULL,   LoadKickOff,   ClearKickOff,   &megasys1_video,   ExecuteMegaSystem1Frame,   "kickoff",   "Kick Off",   NULL,   COMPANY_ID_JALECO,   NULL,   1988,   jaleco_ym2151_m6295x2_sound,   GAME_SPORTS | GAME_PARTIALLY_WORKING,};static struct DIR_INFO legend_of_makai_dirs[] ={   { "legend_of_makai", },   { "legend_of_makaj", },   { "lomakai", },   { "lomakaj", },   { NULL, },};static struct ROM_INFO legend_of_makai_roms[] ={   {   "lom_01.rom", 0x00010000, 0x46e85e90, 0, 0, 0, },   {   "lom_05.rom", 0x00020000, 0xd04fc713, 0, 0, 0, },   {   "lom_06.rom", 0x00020000, 0xf33b6eed, 0, 0, 0, },   {   "lom_08.rom", 0x00010000, 0xbdb15e67, 0, 0, 0, },   {   "lom_20.rom", 0x00020000, 0x56a00dc2, 0, 0, 0, },   {   "lom_30.rom", 0x00020000, 0xba6d65b8, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_legend_of_makai_0[] ={   { MSG_COIN1,               0x07, 0x08 },   { MSG_1COIN_1PLAY,         0x07, 0x00 },   { MSG_2COIN_1PLAY,         0x06, 0x00 },   { MSG_1COIN_3PLAY,         0x05, 0x00 },   { MSG_4COIN_1PLAY,         0x04, 0x00 },   { MSG_1COIN_2PLAY,         0x03, 0x00 },   { MSG_3COIN_1PLAY,         0x02, 0x00 },   { MSG_1COIN_4PLAY,         0x01, 0x00 },   { "P1 Freeplay",           0x00, 0x00 },   { MSG_COIN2,               0x38, 0x08 },   { MSG_1COIN_1PLAY,         0x38, 0x00 },   { MSG_2COIN_1PLAY,         0x30, 0x00 },   { MSG_1COIN_3PLAY,         0x28, 0x00 },   { MSG_4COIN_1PLAY,         0x20, 0x00 },   { MSG_1COIN_2PLAY,         0x18, 0x00 },   { MSG_3COIN_1PLAY,         0x10, 0x00 },   { MSG_1COIN_4PLAY,         0x08, 0x00 },   { "P1 Freeplay",           0x00, 0x00 },   { MSG_DEMO_SOUND,          0x40, 0x02 },   { MSG_ON,                  0x40, 0x00 },   { MSG_OFF,                 0x00, 0x00 },   { "Cheat",                 0x80, 0x02 },   { MSG_OFF,                 0x80, 0x00 },   { MSG_ON,                  0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_DATA dsw_data_legend_of_makai_1[] ={   { "Lives",                 0x03, 0x04 },   { "3",                     0x03, 0x00 },   { "4",                     0x02, 0x00 },   { "5",                     0x01, 0x00 },   { "2",                     0x00, 0x00 },   { MSG_DIFFICULTY,          0x30, 0x04 },   { MSG_NORMAL,              0x30, 0x00 },   { MSG_EASY,                0x20, 0x00 },   { MSG_HARD,                0x10, 0x00 },   { MSG_HARDEST,             0x00, 0x00 },   { "Joysticks",             0x40, 0x02 },   { "2",                     0x40, 0x00 },   { "1",                     0x00, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO legend_of_makai_dsw[] ={   { 0x010007, 0xFF, dsw_data_legend_of_makai_0 },   { 0x010006, 0xFF, dsw_data_legend_of_makai_1 },   { 0,        0,    NULL,      },};static struct VIDEO_INFO legend_of_makai_video ={

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -