mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-05-03 13:30:49 +00:00
60 lines
1.0 KiB
Plaintext
60 lines
1.0 KiB
Plaintext
seti $printhelp = $printhelp
|
|
|
|
|
|
while 1 = 1
|
|
echo " "
|
|
echo "Write Sectors Menu"
|
|
echo "Q) Quit"
|
|
echo "P) Previous Menu"
|
|
echo "H) Toggle Script Help"
|
|
echo "1) Write Sectors PIO 28"
|
|
echo "2) Write Sectors PIO 48"
|
|
echo "3) Write Sectors DMA 28"
|
|
echo "4) Write Sectors DMA 48"
|
|
|
|
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_write_sectors_pio.osc
|
|
break
|
|
|
|
elseif $choicestring = 2
|
|
loadscript ata48_write_sectors_pio.osc
|
|
break
|
|
|
|
elseif $choicestring = 3
|
|
loadscript ata28_write_sectors_dma.osc
|
|
break
|
|
|
|
elseif $choicestring = 4
|
|
loadscript ata48_write_sectors_dma.osc
|
|
break
|
|
|
|
|
|
else
|
|
echo "bad choice= " $choicestring
|
|
endif
|
|
|
|
|
|
done
|
|
end |