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

📄 toaplan1.c

📁 十七种模拟器源代码 非常有用的作课程设计不可缺少的
💻 C
📖 第 1 页 / 共 5 页
字号:
struct GAME_MAIN game_vimana_alt ={   vimana_alt_dirs,   vimana_alt_roms,   vimana_inputs,   vimana_dsw,   NULL,   load_vimana,   clear_vimana,   &vimana_video,   ExecuteToaplan1Frame,   "vimana2",   "Vimana (alternate)",   NULL,   COMPANY_ID_TOAPLAN,   "TP019",   1991,   NULL,   GAME_SHOOT,};static struct DIR_INFO outzone_dirs[] ={   { "outzone", },   { NULL, },};static struct ROM_INFO outzone_roms[] ={   {     "rom7.bin", 0x00020000, 0x936e25d8, REGION_ROM1, 0x000000, LOAD_8_16,   },   {     "rom8.bin", 0x00020000, 0xd19b3ecf, REGION_ROM1, 0x000001, LOAD_8_16,   },   {     "rom5.bin", 0x00080000, 0xc64ec7b6, REGION_GFX1, 0x000000, LOAD_NORMAL, },   {     "rom6.bin", 0x00080000, 0x64b6c5ac, REGION_GFX1, 0x080000, LOAD_NORMAL, },   {     "rom2.bin", 0x00020000, 0x6bb72d16, REGION_GFX2, 0x000000, LOAD_NORMAL, },   {     "rom1.bin", 0x00020000, 0x0934782d, REGION_GFX2, 0x020000, LOAD_NORMAL, },   {     "rom3.bin", 0x00020000, 0xec903c07, REGION_GFX2, 0x040000, LOAD_NORMAL, },   {     "rom4.bin", 0x00020000, 0x50cbf1a8, REGION_GFX2, 0x060000, LOAD_NORMAL, },   {     "rom9.bin", 0x00008000, 0x73d8e235, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_outzone_2[] ={   { "Language",              0x0F, 0x10 },   { "0",                     0x00, 0x00 },   { "1",                     0x01, 0x00 },   { "2",                     0x02, 0x00 },   { "3",                     0x03, 0x00 },   { "4",                     0x04, 0x00 },   { "5",                     0x05, 0x00 },   { "6",                     0x06, 0x00 },   { "7",                     0x07, 0x00 },   { "8",                     0x08, 0x00 },   { "9",                     0x09, 0x00 },   { "A",                     0x0A, 0x00 },   { "B",                     0x0B, 0x00 },   { "C",                     0x0C, 0x00 },   { "D",                     0x0D, 0x00 },   { "E",                     0x0E, 0x00 },   { "F",                     0x0F, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO outzone_dsw[] ={   { 0x023000, 0x00, dsw_data_hellfire_0 },   { 0x023001, 0x00, dsw_data_default_1 },   { 0x023002, 0x00, dsw_data_outzone_2 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_outzone ={   outzone_dirs,   outzone_roms,   vimana_inputs,   outzone_dsw,   NULL,   load_outzone,   clear_outzone,   &outzone_video,   ExecuteToaplan1Frame_Sound,   "outzone",   "Outzone",   NULL,   COMPANY_ID_TOAPLAN,   "TP018",   1990,   toaplan1_sound,   GAME_SHOOT,};static struct DIR_INFO rally_bike_dirs[] ={   { "rally_bike", },   { "rallybik", },   { "rallyb", },   { NULL, },};static struct ROM_INFO rally_bike_roms[] ={   {    "rb_02.bin", 0x00008000, 0x383386d7, REGION_ROM1, 0x000000, LOAD_8_16,   },   {    "rb_01.bin", 0x00008000, 0x7602f6a7, REGION_ROM1, 0x000001, LOAD_8_16,   },   {    "rb_04.bin", 0x00020000, 0xe9b005b1, REGION_ROM1, 0x040000, LOAD_8_16,   },   {    "rb_03.bin", 0x00020000, 0x555344ce, REGION_ROM1, 0x040001, LOAD_8_16,   },   {    "rb_09.bin", 0x00020000, 0x1dc7b010, REGION_GFX1, 0x000000, LOAD_NORMAL, },   {    "rb_08.bin", 0x00020000, 0xfab661ba, REGION_GFX1, 0x020000, LOAD_NORMAL, },   {    "rb_07.bin", 0x00020000, 0xcd3748b4, REGION_GFX1, 0x040000, LOAD_NORMAL, },   {    "rb_06.bin", 0x00020000, 0x144b085c, REGION_GFX1, 0x060000, LOAD_NORMAL, },   {    "rb_11.bin", 0x00010000, 0x0d56e8bb, REGION_GFX2, 0x000000, LOAD_NORMAL, },   {    "rb_10.bin", 0x00010000, 0xdbb7c57e, REGION_GFX2, 0x010000, LOAD_NORMAL, },   {    "rb_12.bin", 0x00010000, 0xcf5aae4e, REGION_GFX2, 0x020000, LOAD_NORMAL, },   {    "rb_13.bin", 0x00010000, 0x1683b07c, REGION_GFX2, 0x030000, LOAD_NORMAL, },   {    "rb_05.bin", 0x00004000, 0x10814601, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_rally_bike_2[] ={   { "Language",              0x0F, 0x10 },   { "0",                     0x00, 0x00 },   { "1",                     0x01, 0x00 },   { "2",                     0x02, 0x00 },   { "3",                     0x03, 0x00 },   { "4",                     0x04, 0x00 },   { "5",                     0x05, 0x00 },   { "6",                     0x06, 0x00 },   { "7",                     0x07, 0x00 },   { "8",                     0x08, 0x00 },   { "9",                     0x09, 0x00 },   { "A",                     0x0A, 0x00 },   { "B",                     0x0B, 0x00 },   { "C",                     0x0C, 0x00 },   { "D",                     0x0D, 0x00 },   { "E",                     0x0E, 0x00 },   { "F",                     0x0F, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO rally_bike_dsw[] ={   { 0x023000, 0x00, dsw_data_rally_bike_0 },   { 0x023001, 0x00, dsw_data_rally_bike_1 },   { 0x023002, 0x00, dsw_data_rally_bike_2 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_rally_bike ={   rally_bike_dirs,   rally_bike_roms,   vimana_inputs,   rally_bike_dsw,   NULL,   load_rally_bike,   clear_rally_bike,   &rally_bike_video,   ExecuteToaplan1Frame_Sound,   "rallybik",   "Rally Bike",   NULL,   COMPANY_ID_TOAPLAN,   "TP012",   1988,   toaplan1_sound,   GAME_RACE | GAME_NOT_WORKING,};static struct DIR_INFO zero_wing_dirs[] ={   { "zero_wing", },   { "zerowing", },   { NULL, },};static struct ROM_INFO zero_wing_roms[] ={   {   "o15-11.rom", 0x00008000, 0x6ff2b9a0, REGION_ROM1, 0x000000, LOAD_8_16,   },   {   "o15-12.rom", 0x00008000, 0x9773e60b, REGION_ROM1, 0x000001, LOAD_8_16,   },   {   "o15-09.rom", 0x00020000, 0x13764e95, REGION_ROM1, 0x040000, LOAD_8_16,   },   {   "o15-10.rom", 0x00020000, 0x351ba71a, REGION_ROM1, 0x040001, LOAD_8_16,   },   {   "o15-05.rom", 0x00020000, 0x4e5dd246, REGION_GFX1, 0x000000, LOAD_NORMAL, },   {   "o15-06.rom", 0x00020000, 0xc8c6d428, REGION_GFX1, 0x020000, LOAD_NORMAL, },   {   "o15-07.rom", 0x00020000, 0xefc40e99, REGION_GFX1, 0x040000, LOAD_NORMAL, },   {   "o15-08.rom", 0x00020000, 0x1b019eab, REGION_GFX1, 0x060000, LOAD_NORMAL, },   {   "o15-03.rom", 0x00020000, 0x7f245fd3, REGION_GFX2, 0x000000, LOAD_NORMAL, },   {   "o15-04.rom", 0x00020000, 0x0b1a1289, REGION_GFX2, 0x020000, LOAD_NORMAL, },   {   "o15-01.rom", 0x00020000, 0x70570e43, REGION_GFX2, 0x040000, LOAD_NORMAL, },   {   "o15-02.rom", 0x00020000, 0x724b487f, REGION_GFX2, 0x060000, LOAD_NORMAL, },   {   "o15-13.rom", 0x00008000, 0xe7b72383, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_zero_wing_2[] ={   { "Language",              0x0F, 0x10 },   { "0",                     0x00, 0x00 },   { "1",                     0x01, 0x00 },   { "2",                     0x02, 0x00 },   { "3",                     0x03, 0x00 },   { "4",                     0x04, 0x00 },   { "5",                     0x05, 0x00 },   { "6",                     0x06, 0x00 },   { "7",                     0x07, 0x00 },   { "8",                     0x08, 0x00 },   { "9",                     0x09, 0x00 },   { "A",                     0x0A, 0x00 },   { "B",                     0x0B, 0x00 },   { "C",                     0x0C, 0x00 },   { "D",                     0x0D, 0x00 },   { "E",                     0x0E, 0x00 },   { "F",                     0x0F, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO zero_wing_dsw[] ={   { 0x023000, 0x00, dsw_data_rally_bike_0 },   { 0x023001, 0x00, dsw_data_default_1 },   { 0x023002, 0x00, dsw_data_zero_wing_2 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_zero_wing ={   zero_wing_dirs,   zero_wing_roms,   vimana_inputs,   zero_wing_dsw,   NULL,   load_zero_wing,   clear_zero_wing,   &toaplan1_video,   ExecuteToaplan1Frame_Sound,   "zerowing",   "Zero Wing",   NULL,   COMPANY_ID_TOAPLAN,   "TP015",   1989,   toaplan1_sound,   GAME_SHOOT,};static struct DIR_INFO demons_world_dirs[] ={   { "demons_world", },   { "demonwld", },   { NULL, },};static struct ROM_INFO demons_world_roms[] ={   {        "rom10", 0x00020000, 0x036ee46c, REGION_ROM1, 0x000000, LOAD_8_16,   },   {        "rom09", 0x00020000, 0xbed746e3, REGION_ROM1, 0x000001, LOAD_8_16,   },   {        "rom05", 0x00020000, 0x6506c982, REGION_GFX1, 0x000000, LOAD_NORMAL, },   {        "rom07", 0x00020000, 0xa3a0d993, REGION_GFX1, 0x020000, LOAD_NORMAL, },   {        "rom06", 0x00020000, 0x4fc5e5f3, REGION_GFX1, 0x040000, LOAD_NORMAL, },   {        "rom08", 0x00020000, 0xeb53ab09, REGION_GFX1, 0x060000, LOAD_NORMAL, },   {        "rom01", 0x00020000, 0x1b3724e9, REGION_GFX2, 0x000000, LOAD_NORMAL, },   {        "rom02", 0x00020000, 0x7b20a44d, REGION_GFX2, 0x020000, LOAD_NORMAL, },   {        "rom03", 0x00020000, 0x2cacdcd0, REGION_GFX2, 0x040000, LOAD_NORMAL, },   {        "rom04", 0x00020000, 0x76fd3201, REGION_GFX2, 0x060000, LOAD_NORMAL, },   {        "rom11", 0x00008000, 0x397eca1b, 0, 0, 0, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_demons_world_2[] ={   { "Language",              0x0F, 0x10 },   { "0",                     0x00, 0x00 },   { "1",                     0x01, 0x00 },   { "2",                     0x02, 0x00 },   { "3",                     0x03, 0x00 },   { "4",                     0x04, 0x00 },   { "5",                     0x05, 0x00 },   { "6",                     0x06, 0x00 },   { "7",                     0x07, 0x00 },   { "8",                     0x08, 0x00 },   { "9",                     0x09, 0x00 },   { "A",                     0x0A, 0x00 },   { "B",                     0x0B, 0x00 },   { "C",                     0x0C, 0x00 },   { "D",                     0x0D, 0x00 },   { "E",                     0x0E, 0x00 },   { "F",                     0x0F, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO demons_world_dsw[] ={   { 0x023000, 0x00, dsw_data_hellfire_0 },   { 0x023001, 0x00, dsw_data_default_1 },   { 0x023002, 0x00, dsw_data_demons_world_2 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_demons_world ={   demons_world_dirs,   demons_world_roms,   vimana_inputs,   demons_world_dsw,   NULL,   load_demons_world,   clear_demons_world,   &toaplan1_video,   ExecuteToaplan1Frame_Sound,   "demonwld",   "Demon's World",   NULL,   COMPANY_ID_TOAPLAN,   "TP016",   1989,   toaplan1_sound,   GAME_SHOOT | GAME_NOT_WORKING,};static struct DIR_INFO fire_shark_dirs[] ={   { "fire_shark", },   { "fireshrk", },   { NULL, },};static struct ROM_INFO fire_shark_roms[] ={   {        "9.bin", 0x00008000, 0xf0c70e6f, REGION_ROM1, 0x000000, LOAD_8_16,   },   {       "10.bin", 0x00008000, 0x9d253d77, REGION_ROM1, 0x000001, LOAD_8_16,   },   {       "11.bin", 0x00020000, 0x6beac378, REGION_ROM1, 0x040000, LOAD_8_16,   },   {       "12.bin", 0x00020000, 0x6adb6eb5, REGION_ROM1, 0x040001, LOAD_8_16,   },   {   "o17_05.bin", 0x00020000, 0x565315f8, REGION_GFX1, 0x000000, LOAD_NORMAL, },   {   "o17_06.bin", 0x00020000, 0x95262d4c, REGION_GFX1, 0x020000, LOAD_NORMAL, },   {   "o17_07.bin", 0x00020000, 0x4c4b735c, REGION_GFX1, 0x040000, LOAD_NORMAL, },   {   "o17_08.bin", 0x00020000, 0x95c6586c, REGION_GFX1, 0x060000, LOAD_NORMAL, },   {   "o17_01.bin", 0x00020000, 0xea12e491, REGION_GFX2, 0x000000, LOAD_NORMAL, },   {   "o17_02.bin", 0x00020000, 0x32a13a9f, REGION_GFX2, 0x020000, LOAD_NORMAL, },   {   "o17_03.bin", 0x00020000, 0x68723dc9, REGION_GFX2, 0x040000, LOAD_NORMAL, },   {   "o17_04.bin", 0x00020000, 0xfe0ecb13, REGION_GFX2, 0x060000, LOAD_NORMAL, },   {           NULL,          0,          0, 0, 0, 0, },};static struct DSW_DATA dsw_data_fire_shark_2[] ={   { "Language",              0x0F, 0x10 },   { "0",                     0x00, 0x00 },   { "1",                     0x01, 0x00 },   { "2",                     0x02, 0x00 },   { "3",                     0x03, 0x00 },   { "4",                     0x04, 0x00 },   { "5",                     0x05, 0x00 },   { "6",                     0x06, 0x00 },   { "7",                     0x07, 0x00 },   { "8",                     0x08, 0x00 },   { "9",                     0x09, 0x00 },   { "A",                     0x0A, 0x00 },   { "B",                     0x0B, 0x00 },   { "C",                     0x0C, 0x00 },   { "D",                     0x0D, 0x00 },   { "E",                     0x0E, 0x00 },   { "F",                     0x0F, 0x00 },   { NULL,                    0,    0,   },};static struct DSW_INFO fire_shark_dsw[] ={   { 0x023000, 0x00, dsw_data_hellfire_0 },   { 0x023001, 0x00, dsw_data_fire_shark_1 },   { 0x023002, 0x00, dsw_data_fire_shark_2 },   { 0,        0,    NULL,      },};struct GAME_MAIN game_fire_shark ={   fire_shark_dirs,   fire_shark_roms,   vimana_inputs,   fire_shark_dsw,   NULL,   load_fire_shark,   clear_fire_shark,   &toaplan1_r270_video,   ExecuteToaplan1Frame,   "fireshrk",   "Fire Shark",   NULL,   COMPANY_ID_TOAPLAN,   "TP017",   1990,   NULL,   GAME_SHOOT | GAME_NOT_WORKING,};static struct DIR_INFO same_same_same_dirs[] ={   { "same_same_same", },   { "same3", },   { "samesame", },   { ROMOF("fireshrk"), },   { CLONEOF("fireshrk"), },   { NULL, },};static struct ROM_INFO same_same_same_roms[] ={   {   "o17_09.bin", 0x00008000, 0x3f69e437, REGION_ROM1, 0x000000, LOAD_8_16,   },   {   "o17_10.bin", 0x00008000, 0x4e723e0a, REGION_ROM1, 0x000001, LOAD_8_16,   },   {   "o17_11.bin", 0x00020000, 0xbe07d101, REGION_ROM1, 0x040000, LOAD_8_16,   },   {   "o17_12.bin", 0x00020000, 0xef698811, REGION_ROM1, 0x040001, LOAD_8_16,   },   {   "o17_05.bin", 0x00020000, 0x565315f8, REGION_GFX1, 0x000000, LOAD_NORMAL, },   {   "o17_06.bin", 0x00020000, 0x95262d4c, REGION_GFX1, 0x020000, LOAD_NORMAL, },   {   "o17_07.bin", 0x00020000, 0x4c4b735c, REGION_GFX1, 0x040000, LOAD_NORMAL, },   {   "o17_08.bin", 0x00020000, 0x95c6586c, REGION_GFX1, 0x060000, LOAD_NORMAL, },   {   "o17_01.bin", 0x00020000, 0xea12e491, REGION_GFX2, 0x000000, LOAD_NORMAL, },   {   "o17_02.bin", 0x00020000, 0x32a13a9f, REGION_GFX2, 0x020000, LOAD_NORMAL, },

⌨️ 快捷键说明

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