Add temp zero sector

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

No files matched your search

+1
View File
@@ -25,6 +25,7 @@
size_t gnDskSize = 0; size_t gnDskSize = 0;
uint8_t gaDsk[ DSK_SIZE_32M ]; uint8_t gaDsk[ DSK_SIZE_32M ];
uint8_t gaTmp[ DSK_SECTOR_SIZE * 2 ];
uint16_t DskGet16( int offset ) uint16_t DskGet16( int offset )
{ {
+1 -1
View File
@@ -1432,11 +1432,11 @@ void ProDOS_Init( const char *path )
{ {
// Zero disk // Zero disk
memset( gaDsk, 0, gnDskSize ); memset( gaDsk, 0, gnDskSize );
memset( gaTmp, 0, PRODOS_BLOCK_SIZE );
// Copy Boot Sector // Copy Boot Sector
// TODO: Use ProDOS 2.4.1 boot sector // TODO: Use ProDOS 2.4.1 boot sector
// Create blocks for root directory // Create blocks for root directory
int nRootDirBlocks = 4; int nRootDirBlocks = 4;
int iPrevDirBlock = 0; int iPrevDirBlock = 0;