コード例 #1
0
ファイル: Cpuexec.cs プロジェクト: SimonJGillespie/VRuClinux
 public static void on_vblank()
 {
     switch (Machine.sBoard)
     {
     case "CPS-1":
     case "CPS-1(QSound)":
         CPS.cps1_interrupt();
         break;
     }
 }
コード例 #2
0
        public static byte TILEMAP_FLIPY        = TILE_FLIPY; /* draw the tilemap vertically flipped */
        public static void tilemap_init()
        {
            int i, j;

            switch (Machine.sBoard)
            {
            case "CPS-1":
            case "CPS-1(QSound)":
            case "CPS2":
                CPS.tilemap_init();
                break;

            case "Namco System 1":
                Namcos1.tilemap_init();
                break;

            case "PGM":
                PGM.tilemap_init();
                break;

            case "M72":
                M72.tilemap_init();
                break;

            case "M92":
                M92.tilemap_init();
                break;
            }
            screen_width    = 0x200;
            screen_height   = 0x200;
            priority_bitmap = new byte[0x200, 0x200];
            bb01            = new byte[1, 0x200];
            bbFF            = new byte[0x80, 0x40];
            empty_tile      = new byte[0x400];
            for (i = 0; i < 0x200; i++)
            {
                bb01[0, i] = 0x01;
            }
            for (i = 0; i < 0x80; i++)
            {
                for (j = 0; j < 0x40; j++)
                {
                    bbFF[i, j] = 0xff;
                }
            }
            for (i = 0; i < 0x400; i++)
            {
                empty_tile[i] = 0x0f;
            }
            videovisarea.min_x = 0;
            videovisarea.max_x = 0x1ff;
            videovisarea.min_y = 0;
            videovisarea.max_y = 0x1ff;
        }
コード例 #3
0
ファイル: Machine.cs プロジェクト: beginor/mame.net
        public static void machine_start()
        {
            switch (Machine.sBoard)
            {
            case "CPS-1":
            case "CPS-1(QSound)":
            case "CPS2":
                Palette.palette_init();
                Tilemap.tilemap_init();
                Eeprom.eeprom_init();
                CPS.video_start_cps();
                machine_reset_callback = CPS.machine_reset_cps;
                break;

            case "Neo Geo":
                Neogeo.nvram_handler_load_neogeo();
                Neogeo.machine_start_neogeo();
                Neogeo.video_start_neogeo();
                machine_reset_callback = Neogeo.machine_reset_neogeo;
                break;

            case "Namco System 1":
                Palette.palette_init();
                Tilemap.tilemap_init();
                Namcos1.driver_init();
                Namcos1.video_start_namcos1();
                machine_reset_callback = Namcos1.machine_reset_namcos1;
                break;

            case "IGS011":
                Palette.palette_init();
                IGS011.video_start_igs011();
                machine_reset_callback = IGS011.machine_reset_igs011;
                break;

            case "PGM":
                Palette.palette_init();
                Tilemap.tilemap_init();
                PGM.device_init();
                PGM.video_start_pgm();
                machine_reset_callback = PGM.machine_reset_pgm;
                break;
            }
        }
コード例 #4
0
ファイル: Machine.cs プロジェクト: SimonJGillespie/VRuClinux
        public static void machine_start()
        {
            switch (Machine.sBoard)
            {
            case "CPS-1":
            case "CPS-1(QSound)":
            case "CPS2":
                Palette.palette_init();
                //Tilemap.tilemap_init();
                Eeprom.eeprom_init();
                CPS.video_start_cps();
                machine_reset_callback = CPS.machine_reset_cps;
                break;

                /*case "Neo Geo":
                 *  Neogeo.nvram_handler_load_neogeo();
                 *  Neogeo.machine_start_neogeo();
                 *  Neogeo.video_start_neogeo();
                 *  machine_reset_callback = Neogeo.machine_reset_neogeo;
                 *  break;
                 * case "Namco System 1":
                 *  Palette.palette_init();
                 *  Tilemap.tilemap_init();
                 *  Namcos1.driver_init();
                 *  Namcos1.video_start_namcos1();
                 *  machine_reset_callback = Namcos1.machine_reset_namcos1;
                 *  break;
                 * case "IGS011":
                 *  Palette.palette_init();
                 *  IGS011.video_start_igs011();
                 *  machine_reset_callback = IGS011.machine_reset_igs011;
                 *  break;
                 * case "PGM":
                 *  Palette.palette_init();
                 *  Tilemap.tilemap_init();
                 *  PGM.device_init();
                 *  PGM.video_start_pgm();
                 *  machine_reset_callback = PGM.machine_reset_pgm;
                 *  break;
                 * case "M72":
                 *  Palette.palette_init();
                 *  Tilemap.tilemap_init();
                 *  M72.machine_start_m72();
                 *  M72.video_start_m72();
                 *  machine_reset_callback = M72.machine_reset_m72;
                 *  switch (Machine.sName)
                 *  {
                 *      case "ltswords":
                 *      case "kengo":
                 *      case "kengoa":
                 *          machine_reset_callback = M72.machine_reset_kengo;
                 *          break;
                 *  }
                 *  break;
                 * case "M92":
                 *  Palette.palette_init();
                 *  Tilemap.tilemap_init();
                 *  M92.machine_start_m92();
                 *  M92.video_start_m92();
                 *  machine_reset_callback = M92.machine_reset_m92;
                 *  break;*/
            }
        }