module
27

edisc.py is one file of Python that can take an Einstein disc image
apart and put one together:
DIR does;And you know why each byte is where it is. That was the point.
Each of these is a section's worth of work, using nothing you have not seen.
add --text. A switch that turns a file's line endings into 0D 0A
before it goes on the disc (S22). argparse has action="store_true" for
switches that are either there or not.recover. S24 showed that a deleted file's entries and data survive
until something reuses its blocks. Write a command that lists deleted
files, says whether any of their blocks has since been given to a live
file, and extracts the ones that are whole.copy. Take a file from one image and add it to another, without an
extract and an add in between.create --standard: the same tracks,
the other header (S8).edisc.py refuses them. Teach it to
recognise the shape and read the real side.check command. Everything S25 tests, plus the directory: entries
pointing at blocks beyond 94, two files claiming the same block, extents
missing. Report it all instead of stopping at the first fault..dsk image. MAME can write to its own .mfi disc format, which holds
the disc as the magnetic pattern on the surface rather than as sectors.
That is a whole subject of its own.The other courses on TatungBytes teach the Einstein itself - Z80 assembly, C, Turbo Pascal, the BASICs, Dr Logo - and every one of them uses disc images. Now you know what is in them.
If you found a mistake, got stuck, or built something with edisc.py,
we would like to hear about it.
This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.