Skip to content

Commit

Permalink
addind tracks for artificial disk image
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenjc committed Nov 18, 2024
1 parent 9007410 commit fe98cfe
Show file tree
Hide file tree
Showing 5 changed files with 628 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/disks/artificial/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


Artificially created disk.


Track 0 - INDEX
Track 1 - TT1R10 - text file, one track, 10 records, 79 recsize (PL/1)
Track 2 - TT2R10 - text file, one track, 10 records, 79 recsize (PL/1)
18 changes: 18 additions & 0 deletions src/disks/artificial/image.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

import sys
sys.path.insert(0, '../..')

from disks.artificial import t0, t1, t2
import filesys

tracks = [t0.data, t1.data, t2.data]

fs = filesys.FileSys()
fs.loadtracks(tracks) #


if __name__ == '__main__':
track = filesys.Track()
track.info( 0, fs.data[0], 16, 40)
track.info( 1, fs.data[1], 10, 79)
track.info( 2, fs.data[2], 10, 79)
Loading

0 comments on commit fe98cfe

Please sign in to comment.