func main() {
	fmt.Println("read_dos33_sector: Apple II disk reader - Copyright 2015 Michael Kohn")

	if len(os.Args) != 4 {
		fmt.Println("Usage: " + os.Args[0] + " <binfile> <track> <sector>")
		os.Exit(0)
	}

	apple2_disk := new(apple2_disk.Apple2Disk)

	if apple2_disk.Load(os.Args[1]) == false {
		os.Exit(1)
	}

	track, _ := strconv.Atoi(os.Args[2])
	sector, _ := strconv.Atoi(os.Args[3])

	apple2_disk.DumpSector(track, sector)
	fmt.Print("Is Free: ")
	if apple2_disk.IsSectorFree(track, sector) {
		fmt.Println("True")
	} else {
		fmt.Println("False")
	}
}
func main() {
	fmt.Println("init_dos33_sector: Apple II disk reader - Copyright 2015 Michael Kohn")

	if len(os.Args) != 4 {
		fmt.Println("Usage: " + os.Args[0] + " <binfile> <dos33.img> <hello_prog>")
		os.Exit(0)
	}

	apple2_disk := new(apple2_disk.Apple2Disk)
	apple2_disk.Init()
	apple2_disk.AddDos(os.Args[2])
	apple2_disk.AddFile(os.Args[3], "HELLO", 0x9100)
	apple2_disk.Save(os.Args[1])
}
func main() {
	fmt.Println("read_dos33_disk: Apple II disk reader - Copyright 2015 Michael Kohn")

	if len(os.Args) < 2 {
		fmt.Println("Usage: " + os.Args[0] + " <binfile> <optional:file to dump> <optional:outputfile>")
		os.Exit(0)
	}

	apple2_disk := new(apple2_disk.Apple2Disk)

	if apple2_disk.Load(os.Args[1]) == false {
		os.Exit(1)
	}

	apple2_disk.PrintDiskInfo()
	apple2_disk.PrintCatalog()

	if len(os.Args) == 4 {
		apple2_disk.DumpFile(os.Args[2], os.Args[3])
	}
}