mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Add Micropolis encoder
Has not been tested on a Micropolis machine.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#ifndef ZILOGMCZ_H
|
||||
#define ZILOGMCZ_H
|
||||
#ifndef MICROPOLIS_H
|
||||
#define MICROPOLIS_H
|
||||
|
||||
#include "decoders/decoders.h"
|
||||
#include "encoders/encoders.h"
|
||||
|
||||
#define MICROPOLIS_ENCODED_SECTOR_SIZE (1+2+266+6)
|
||||
|
||||
class Sector;
|
||||
class Fluxmap;
|
||||
|
||||
class MicropolisDecoder : public AbstractDecoder
|
||||
{
|
||||
public:
|
||||
@@ -15,4 +15,16 @@ public:
|
||||
void decodeSectorRecord();
|
||||
};
|
||||
|
||||
class MicropolisEncoder : public AbstractEncoder
|
||||
{
|
||||
public:
|
||||
virtual ~MicropolisEncoder() {}
|
||||
|
||||
std::unique_ptr<Fluxmap> encode(int physicalTrack, int physicalSide, const SectorSet& allSectors);
|
||||
};
|
||||
|
||||
extern FlagGroup micropolisEncoderFlags;
|
||||
|
||||
extern uint8_t micropolisChecksum(const Bytes& bytes);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user