DOS33-perl/catalog.pl
2019-01-17 07:50:09 -06:00

30 lines
373 B
Perl

#!/usr/bin/perl -w
#
# catalog.pl:
#
# Utility to get a 'catalog' (directory) of an Apple II DOS 3.3 disk image.
#
# 20190115 LSH
#
use strict;
use DOS33;
my $debug = 0;
while (defined $ARGV[0] && $ARGV[0] =~ /^-/) {
if ($ARGV[0] eq '-d') {
$debug = 1;
shift;
}
}
my $dskfile = shift or die "Must supply .dsk filename\n";
catalog($dskfile, $debug);
1;