mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2026-10-22 00:02:22 +00:00
Add temp zero sector
This commit is contained in:
1 parent
b45276aa45
commit
6a84f16409
2 files changed
+2
-1
No files matched your search
@@ -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
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user