mirror of
https://github.com/JorjBauer/aiie.git
synced 2025-01-03 15:31:41 +00:00
static allocator for diskii raw disk buffer
This commit is contained in:
parent
3890fc3dbd
commit
936a4d0484
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user