"no-debug" => sub { set_debug ("no-debug") },
"monitor" => sub { set_debug ("monitor") },
"gdb" => sub { set_debug ("gdb") },
-
+
"run|get|put|make-disk" => \&cmd_option,
-
+
"m|memory=i" => \$mem,
"j|jitter=i" => sub { set_jitter (@_) },
"r|realtime" => sub { set_realtime () },
-
+
"v|no-vga" => sub { set_vga ('none'); },
"s|no-serial" => sub { $serial_out = 0; },
"t|terminal" => sub { set_vga ('terminal'); },
-
+
"h|help" => sub { usage (0); },
"0|os-disk|disk-0|hda=s" => \$disks[0],
# Create scratch disk from file.
die "$hostfn: $!\n" if ! -e $hostfn;
my ($size) = -s _;
- if ($size) {
+ if ($size) {
copy_pad ($hostfn, "scratch.dsk", 512);
} else {
open (SCRATCH, ">scratch.dsk") or die "scratch.dsk: create: $!\n";