static void laser_put_track(void) { /* drive selected and image file ok? */ if( laser_drive >= 0 && laser_file() != NULL ) { int size, offs; offs = TRKSIZE_VZ * laser_track_x2[laser_drive]/2; image_fseek(laser_file(), offs + laser_fdc_start, SEEK_SET); size = image_fwrite(laser_file(), &laser_fdc_data[laser_fdc_start], laser_fdc_write); logerror("put track @$%05X+$%X $%04X/$%04X bytes\n", offs, laser_fdc_start, size, laser_fdc_write); } }
void vtech2_state::laser_put_track() { device_image_interface *image = dynamic_cast<device_image_interface *>(laser_file()); /* drive selected and image file ok? */ if( m_laser_drive >= 0 && laser_file() != NULL ) { int size, offs; offs = TRKSIZE_VZ * m_laser_track_x2[m_laser_drive]/2; image->fseek(offs + m_laser_fdc_start, SEEK_SET); size = image->fwrite(&m_laser_fdc_data[m_laser_fdc_start], m_laser_fdc_write); logerror("put track @$%05X+$%X $%04X/$%04X bytes\n", offs, m_laser_fdc_start, size, m_laser_fdc_write); } }
static void laser_put_track(running_machine &machine) { vtech2_state *state = machine.driver_data<vtech2_state>(); device_image_interface *image = dynamic_cast<device_image_interface *>(laser_file(machine)); /* drive selected and image file ok? */ if( state->m_laser_drive >= 0 && laser_file(machine) != NULL ) { int size, offs; offs = TRKSIZE_VZ * state->m_laser_track_x2[state->m_laser_drive]/2; image->fseek(offs + state->m_laser_fdc_start, SEEK_SET); size = image->fwrite(&state->m_laser_fdc_data[state->m_laser_fdc_start], state->m_laser_fdc_write); logerror("put track @$%05X+$%X $%04X/$%04X bytes\n", offs, state->m_laser_fdc_start, size, state->m_laser_fdc_write); } }
static void laser_get_track(void) { sprintf(laser_frame_message, "#%d get track %02d", laser_drive, laser_track_x2[laser_drive]/2); laser_frame_time = 30; /* drive selected or and image file ok? */ if( laser_drive >= 0 && laser_file() != NULL ) { int size, offs; size = TRKSIZE_VZ; offs = TRKSIZE_VZ * laser_track_x2[laser_drive]/2; image_fseek(laser_file(), offs, SEEK_SET); size = image_fread(laser_file(), laser_fdc_data, size); logerror("get track @$%05x $%04x bytes\n", offs, size); } laser_fdc_offs = 0; laser_fdc_write = 0; }
void vtech2_state::laser_get_track() { sprintf(m_laser_frame_message, "#%d get track %02d", m_laser_drive, m_laser_track_x2[m_laser_drive]/2); m_laser_frame_time = 30; /* drive selected or and image file ok? */ if( m_laser_drive >= 0 && laser_file() != NULL ) { int size, offs; device_image_interface *image = dynamic_cast<device_image_interface *>(laser_file()); size = TRKSIZE_VZ; offs = TRKSIZE_VZ * m_laser_track_x2[m_laser_drive]/2; image->fseek(offs, SEEK_SET); size = image->fread(m_laser_fdc_data, size); logerror("get track @$%05x $%04x bytes\n", offs, size); } m_laser_fdc_offs = 0; m_laser_fdc_write = 0; }
static void laser_get_track(running_machine &machine) { vtech2_state *state = machine.driver_data<vtech2_state>(); sprintf(state->m_laser_frame_message, "#%d get track %02d", state->m_laser_drive, state->m_laser_track_x2[state->m_laser_drive]/2); state->m_laser_frame_time = 30; /* drive selected or and image file ok? */ if( state->m_laser_drive >= 0 && laser_file(machine) != NULL ) { int size, offs; device_image_interface *image = dynamic_cast<device_image_interface *>(laser_file(machine)); size = TRKSIZE_VZ; offs = TRKSIZE_VZ * state->m_laser_track_x2[state->m_laser_drive]/2; image->fseek(offs, SEEK_SET); size = image->fread(state->m_laser_fdc_data, size); logerror("get track @$%05x $%04x bytes\n", offs, size); } state->m_laser_fdc_offs = 0; state->m_laser_fdc_write = 0; }