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

Function DISK_reset

src/disk.cpp:5489–5504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5487}
5488
5489void DISK_reset (void)
5490{
5491 if (savestate_state)
5492 return;
5493
5494 //floppy[0].catweasel = &cwc.drives[0];
5495 disk_hpos = 0;
5496 dskdmaen = 0;
5497 disabled = 0;
5498 memset(&disk_info_data, 0, sizeof disk_info_data);
5499 for (int dr = MAX_FLOPPY_DRIVES - 1; dr >= 0; dr--) {
5500 reset_drive (dr);
5501 }
5502 initial_disk_statusline = true;
5503 setamax ();
5504}
5505
5506static void load_track (int num, int cyl, int dside, int *sectable)
5507{

Callers 1

devices_resetFunction · 0.85

Calls 2

reset_driveFunction · 0.85
setamaxFunction · 0.85

Tested by

no test coverage detected