------------------------------------------------------------------------
| 215 | |
| 216 | // ------------------------------------------------------------------------ |
| 217 | inline int ProDOS_BlockGetDirectoryBlockCount ( uint8_t *pDiskBytes, int nOffset ) |
| 218 | { |
| 219 | int nBlocks = 0; |
| 220 | int nNextBlock = 0; |
| 221 | |
| 222 | do |
| 223 | { |
| 224 | nBlocks++; |
| 225 | nNextBlock = ProDOS_Get16( pDiskBytes, nOffset + 2 ); |
| 226 | nOffset = nNextBlock * PRODOS_BLOCK_SIZE; |
| 227 | } while( nNextBlock ); |
| 228 | |
| 229 | return nBlocks; |
| 230 | } |
| 231 | |
| 232 | // ------------------------------------------------------------------------ |
| 233 | int ProDOS_BlockGetFirstFree ( uint8_t *pDiskBytes, size_t nDiskSize, ProDOS_VolumeHeader_t *pVolume ) |
no test coverage detected