static void drive_setup_context_for_drive(drive_context_t *drv, unsigned int dnr) { drv->mynumber = dnr; drv->drive = lib_calloc(1, sizeof(drive_t)); drv->clk_ptr = &drive_clk[dnr]; drivecpu_setup_context(drv); machine_drive_setup_context(drv); }
static void drive_setup_context_for_drive(drive_context_t *drv, unsigned int dnr) { drv->mynumber = dnr; drv->drive = lib_calloc(1, sizeof(drive_t)); drv->clk_ptr = &drive_clk[dnr]; drivecpu_setup_context(drv, 1); /* no need for 65c02, only allocating common stuff */ machine_drive_setup_context(drv); }
static void drive_setup_context_for_drive(drive_context_t *drv, unsigned int dnr) { drv->mynumber = dnr; drv->drive = lib_calloc(1, sizeof(drive_t)); drv->clk_ptr = &drive_clk[dnr]; if (drv->drive->type == DRIVE_TYPE_2000 || drv->drive->type == DRIVE_TYPE_4000) { drivecpu65c02_setup_context(drv, 1); } else { drivecpu_setup_context(drv, 1); } machine_drive_setup_context(drv); }