mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2024-06-15 06:29:34 +00:00
Add temp zero sector
This commit is contained in:
parent
b45276aa45
commit
6a84f16409
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user