MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / AllocTrack

Method AllocTrack

source/Disk.cpp:295–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293//===========================================================================
294
295void Disk2InterfaceCard::AllocTrack(const int drive, const UINT minSize/*=NIBBLES_PER_TRACK*/)
296{
297 FloppyDisk* pFloppy = &m_floppyDrive[drive].m_disk;
298 const UINT maxNibblesPerTrack = ImageGetMaxNibblesPerTrack(m_floppyDrive[drive].m_disk.m_imagehandle);
299 pFloppy->m_trackimage = new BYTE[ MAX(minSize,maxNibblesPerTrack) ];
300}
301
302//===========================================================================
303

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected