MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / track_reset

Function track_reset

src/disk.cpp:1041–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041static void track_reset (drive *drv)
1042{
1043 drv->tracklen = FLOPPY_WRITE_LEN * drv->ddhd * 2 * 8;
1044 drv->revolutions = 1;
1045 drv->trackspeed = get_floppy_speed ();
1046 drv->buffered_side = -1;
1047 drv->skipoffset = -1;
1048 drv->tracktiming[0] = 0;
1049 memset (drv->bigmfmbuf, 0xaa, FLOPPY_WRITE_LEN * 2 * drv->ddhd);
1050 updatemfmpos (drv);
1051}
1052
1053static int read_header_ext2 (struct zfile *diskfile, trackid *trackdata, int *num_tracks, int *ddhd)
1054{

Callers 1

disk.cppFile · 0.85

Calls 2

get_floppy_speedFunction · 0.85
updatemfmposFunction · 0.85

Tested by

no test coverage detected