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

Function ProDOS_PutIndexBlock

source/ProDOS_FileSystem.h:347–356  ·  view source on GitHub ↗

000:lo0 lo1 lo2 ... 100:hi0 hi1 hi2 ... */ ------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

345 */
346 // ------------------------------------------------------------------------
347 inline void ProDOS_PutIndexBlock ( uint8_t *pDiskBytes, int offset, int index, int block )
348 {
349#if 0
350 std::string message;
351 message = StrFormat( "File Bitmap @ Block $%04X: $%02X: Block $%04X\n", offset/PRODOS_BLOCK_SIZE, index, block );
352 OutputDebugStringA( message.c_str() );
353#endif
354 pDiskBytes[ offset + index + 0 ] = (block >> 0) & 0xFF;
355 pDiskBytes[ offset + index + 256 ] = (block >> 8) & 0xFF;
356 }
357
358// --- ProDOS Directory Functions ---
359

Callers 1

Util_ProDOS_AddFileFunction · 0.85

Calls 1

StrFormatFunction · 0.85

Tested by

no test coverage detected