示例#1
0
static UI_CALLBACK(activate_monitor)
{
    int v;
    resources_get_int("MonitorServer", &v);

    if (v == 0) {
#ifdef HAVE_FULLSCREEN
        fullscreen_suspend(0);
#endif
        vsync_suspend_speed_eval();
        ui_dispatch_events();               /* popdown the menu */
        ui_autorepeat_on();

#ifdef HAVE_MOUSE
        ui_restore_mouse();
#endif
        if (!ui_emulation_is_paused()) {
            monitor_startup_trap();
        } else {
            monitor_startup(e_default_space);
#ifdef HAVE_FULLSCREEN
            fullscreen_resume();
#endif
        }
    }
}
示例#2
0
static TUI_MENU_CALLBACK(monitor_callback)
{
    if (been_activated) {
        monitor_startup(e_default_space);
    }

    return NULL;
}
示例#3
0
static UI_CALLBACK(activate_monitor)
{
#ifdef HAVE_FULLSCREEN
    fullscreen_suspend(0);
#endif
    vsync_suspend_speed_eval();
    ui_dispatch_events();               /* popdown the menu */
    ui_autorepeat_on();

#ifdef HAVE_MOUSE
    ui_restore_mouse();
#endif
    if (!ui_emulation_is_paused())
        monitor_startup_trap();
    else
        monitor_startup();
}
示例#4
0
/* Inlining this fuction makes no sense and would only bloat the code.  */
static void drive_jam(drive_context_t *drv)
{
    unsigned int tmp;
    char *dname = "  Drive";
    drivecpu_context_t *cpu;

    cpu = drv->cpu;

    switch (drv->drive->type) {
        case DRIVE_TYPE_1540:
            dname = "  1540";
            break;
        case DRIVE_TYPE_1541:
            dname = "  1541";
            break;
        case DRIVE_TYPE_1541II:
            dname = "1541-II";
            break;
        case DRIVE_TYPE_1551:
            dname = "  1551";
            break;
        case DRIVE_TYPE_1570:
            dname = "  1570";
            break;
        case DRIVE_TYPE_1571:
            dname = "  1571";
            break;
        case DRIVE_TYPE_1571CR:
            dname = "  1571CR";
            break;
        case DRIVE_TYPE_1581:
            dname = "  1581";
            break;
        case DRIVE_TYPE_2031:
            dname = "  2031";
            break;
        case DRIVE_TYPE_1001:
            dname = "  1001";
            break;
        case DRIVE_TYPE_2040:
            dname = "  2040";
            break;
        case DRIVE_TYPE_3040:
            dname = "  3040";
            break;
        case DRIVE_TYPE_4040:
            dname = "  4040";
            break;
        case DRIVE_TYPE_8050:
            dname = "  8050";
            break;
        case DRIVE_TYPE_8250:
            dname = "  8250";
            break;
    }

    tmp = machine_jam("%s CPU: JAM at $%04X  ", dname, (int)reg_pc);
    switch (tmp) {
        case JAM_RESET:
            reg_pc = 0xeaa0;
            drivecpu_set_bank_base((void *)drv);
            machine_trigger_reset(MACHINE_RESET_MODE_SOFT);
            break;
        case JAM_HARD_RESET:
            reg_pc = 0xeaa0;
            drivecpu_set_bank_base((void *)drv);
            machine_trigger_reset(MACHINE_RESET_MODE_HARD);
            break;
        case JAM_MONITOR:
            monitor_startup(drv->cpu->monspace);
            break;
        default:
            CLK++;
    }
}