static allocator for diskii raw disk buffer

This commit is contained in:
Jorj Bauer 2018-01-10 08:14:38 -05:00
parent 3890fc3dbd
commit 936a4d0484
2 changed files with 1 additions and 3 deletions

View File

@ -22,7 +22,6 @@
DiskII::DiskII(AppleMMU *mmu)
{
this->trackBuffer = new LRingBuffer(NIBTRACKSIZE);
this->rawTrackBuffer = (uint8_t *)malloc(4096);
this->mmu = mmu;
@ -46,7 +45,6 @@ DiskII::DiskII(AppleMMU *mmu)
DiskII::~DiskII()
{
delete this->trackBuffer; this->trackBuffer = NULL;
free(this->rawTrackBuffer); this->rawTrackBuffer = NULL;
}
bool DiskII::Serialize(int8_t fd)

View File

@ -56,7 +56,7 @@ class DiskII : public Slot {
volatile bool trackDirty; // does this track need flushing to disk?
uint8_t readWriteLatch;
LRingBuffer *trackBuffer; // nibblized data
uint8_t *rawTrackBuffer; // not nibblized data
uint8_t rawTrackBuffer[4096]; // not nibblized data
bool writeMode;
bool writeProt;