seti $printhelp = $printhelp while 1 = 1 echo " " echo "Read Sectors Menu" echo "Q) Quit" echo "P) Previous Menu" echo "H) Toggle Script Help" echo "1) Read Sectors PIO 28" echo "2) Read Sectors PIO 48" echo "3) Read Sectors DMA 28" echo "4) Read Sectors DMA 48" echo "5) Read Long (Old 28 Bit)" echo "6) Read Long (48 Bit SCT)" if $printhelp = 1 exit 0 endif echo "Enter your choice:" userinput $choicestring if $choicestring = q break elseif $choicestring = p previousscript elseif $choicestring = h if $help = 0 seti $help = 1 echo "Help is now turned on" else seti $help = 0 echo "Help is now turned off" endif elseif $choicestring = 1 loadscript ata28_read_sectors_pio.osc break elseif $choicestring = 2 loadscript ata48_read_sectors_pio.osc break elseif $choicestring = 3 loadscript ata28_read_sectors_dma.osc break elseif $choicestring = 4 loadscript ata48_read_sectors_dma.osc break elseif $choicestring = 5 loadscript ata28_readlong.osc break elseif $choicestring = 6 loadscript ata_sct_readlong.osc break else echo "bad choice= " $choicestring endif done end