Add temp zero sector

This commit is contained in:
michaelangel007 2023-06-12 23:13:05 -07:00
parent b45276aa45
commit 6a84f16409
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
size_t gnDskSize = 0;
uint8_t gaDsk[ DSK_SIZE_32M ];
uint8_t gaTmp[ DSK_SECTOR_SIZE * 2 ];
uint16_t DskGet16( int offset )
{

View File

@ -1432,11 +1432,11 @@ void ProDOS_Init( const char *path )
{
// Zero disk
memset( gaDsk, 0, gnDskSize );
memset( gaTmp, 0, PRODOS_BLOCK_SIZE );
// Copy Boot Sector
// TODO: Use ProDOS 2.4.1 boot sector
// Create blocks for root directory
int nRootDirBlocks = 4;
int iPrevDirBlock = 0;