30 lines
421 B
Perl
30 lines
421 B
Perl
|
#!/usr/bin/perl -w
|
||
|
|
||
|
#
|
||
|
# dos33unlock.pl:
|
||
|
#
|
||
|
# Utility to unlock a file on an Apple II DOS 3.3 disk image.
|
||
|
#
|
||
|
# 20190116 LSH
|
||
|
#
|
||
|
|
||
|
use strict;
|
||
|
|
||
|
use DOS33;
|
||
|
|
||
|
while (defined $ARGV[0] && $ARGV[0] =~ /^-/) {
|
||
|
# Debug
|
||
|
if ($ARGV[0] eq '-d') {
|
||
|
$debug = 1;
|
||
|
shift;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
my $dskfile = shift or die "Must supply filename\n";
|
||
|
my $filename = shift or die "Must supply filename\n";
|
||
|
|
||
|
unlock_file($dskfile, $filename, $debug);
|
||
|
|
||
|
1;
|
||
|
|