mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Add the Ampro Little Board.
This commit is contained in:
@@ -72,6 +72,7 @@ Here's the table.
|
||||
| IBM PC compatible | 🦄 | | and compatibles (like the Atari ST) |
|
||||
| [Acorn ADFS](acornadfs.html) | 🦖 | | single- and double- sided |
|
||||
| [Acorn DFS](acorndfs.html) | 🦄 | | |
|
||||
| [Ampro Little Board](ampro.html) | 🦄 | | |
|
||||
| [Commodore Amiga](amiga.html) | 🦖 | | |
|
||||
| [Commodore 64 1541](c64.html) | 🦖 | | and probably the other GCR formats |
|
||||
| [Brother 120kB](brother.html) | 🦄 | | |
|
||||
|
||||
@@ -150,6 +150,7 @@ executable('fe-erase', ['src/fe-erase.cc'], include_dire
|
||||
executable('fe-inspect', ['src/fe-inspect.cc'], include_directories: [feinc, fmtinc, decoderinc], link_with: [felib, readerlib, decoderlib, fmtlib])
|
||||
executable('fe-readadfs', ['src/fe-readadfs.cc'], include_directories: [feinc, fmtinc, decoderinc, ibminc], link_with: [felib, readerlib, decoderlib, ibmdecoderlib, fmtlib])
|
||||
executable('fe-readamiga', ['src/fe-readamiga.cc'], include_directories: [feinc, fmtinc, decoderinc, amigainc], link_with: [felib, readerlib, decoderlib, amigadecoderlib, fmtlib])
|
||||
executable('fe-readampro', ['src/fe-readampro.cc'], include_directories: [feinc, fmtinc, decoderinc, ibminc], link_with: [felib, readerlib, decoderlib, ibmdecoderlib, fmtlib])
|
||||
executable('fe-readapple2', ['src/fe-readapple2.cc'], include_directories: [feinc, fmtinc, decoderinc, apple2inc], link_with: [felib, readerlib, decoderlib, apple2decoderlib, fmtlib])
|
||||
executable('fe-readbrother', ['src/fe-readbrother.cc'], include_directories: [feinc, fmtinc, decoderinc, brotherinc], link_with: [felib, readerlib, decoderlib, brotherdecoderlib, fmtlib])
|
||||
executable('fe-readc64', ['src/fe-readc64.cc'], include_directories: [feinc, fmtinc, decoderinc, c64inc], link_with: [felib, readerlib, decoderlib, c64decoderlib, fmtlib])
|
||||
|
||||
33
src/fe-readampro.cc
Normal file
33
src/fe-readampro.cc
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "globals.h"
|
||||
#include "flags.h"
|
||||
#include "reader.h"
|
||||
#include "fluxmap.h"
|
||||
#include "decoders.h"
|
||||
#include "image.h"
|
||||
#include "sector.h"
|
||||
#include "sectorset.h"
|
||||
#include "record.h"
|
||||
#include "ibm.h"
|
||||
#include <fmt/format.h>
|
||||
|
||||
static StringFlag outputFilename(
|
||||
{ "--output", "-o" },
|
||||
"The output image file to write to.",
|
||||
"ampro.img");
|
||||
|
||||
static IntFlag sectorIdBase(
|
||||
{ "--sector-id-base" },
|
||||
"Sector ID of the first sector.",
|
||||
17);
|
||||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
setReaderDefaultSource(":t=0-79:s=0");
|
||||
setReaderRevolutions(2);
|
||||
Flag::parseFlags(argc, argv);
|
||||
|
||||
IbmMfmDecoder decoder(sectorIdBase);
|
||||
readDiskCommand(decoder, outputFilename);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user