mirror of https://github.com/JorjBauer/aiie.git
static allocator for diskii raw disk buffer
This commit is contained in:
parent
3890fc3dbd
commit
936a4d0484
|
@ -22,7 +22,6 @@
|
||||||
DiskII::DiskII(AppleMMU *mmu)
|
DiskII::DiskII(AppleMMU *mmu)
|
||||||
{
|
{
|
||||||
this->trackBuffer = new LRingBuffer(NIBTRACKSIZE);
|
this->trackBuffer = new LRingBuffer(NIBTRACKSIZE);
|
||||||
this->rawTrackBuffer = (uint8_t *)malloc(4096);
|
|
||||||
|
|
||||||
this->mmu = mmu;
|
this->mmu = mmu;
|
||||||
|
|
||||||
|
@ -46,7 +45,6 @@ DiskII::DiskII(AppleMMU *mmu)
|
||||||
DiskII::~DiskII()
|
DiskII::~DiskII()
|
||||||
{
|
{
|
||||||
delete this->trackBuffer; this->trackBuffer = NULL;
|
delete this->trackBuffer; this->trackBuffer = NULL;
|
||||||
free(this->rawTrackBuffer); this->rawTrackBuffer = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DiskII::Serialize(int8_t fd)
|
bool DiskII::Serialize(int8_t fd)
|
||||||
|
|
|
@ -56,7 +56,7 @@ class DiskII : public Slot {
|
||||||
volatile bool trackDirty; // does this track need flushing to disk?
|
volatile bool trackDirty; // does this track need flushing to disk?
|
||||||
uint8_t readWriteLatch;
|
uint8_t readWriteLatch;
|
||||||
LRingBuffer *trackBuffer; // nibblized data
|
LRingBuffer *trackBuffer; // nibblized data
|
||||||
uint8_t *rawTrackBuffer; // not nibblized data
|
uint8_t rawTrackBuffer[4096]; // not nibblized data
|
||||||
|
|
||||||
bool writeMode;
|
bool writeMode;
|
||||||
bool writeProt;
|
bool writeProt;
|
||||||
|
|
Loading…
Reference in New Issue