#
# z180-stamp command script
#
#
# Set environment to 'factory' defaults
defaultenv
# show/trace command execution
setenv cli xtrace
#setenv cli verbose,xtrace
# enable commands for debugging
#cmd=debug
#
setenv cpm3_file 1:/cpm3_0.6.8-23.sys
setenv bootcmd 'pin ${pins}; reset; run attach_drives; loadc; go ${startaddress}'
#
setenv d0 1:/cpm3_a.dsk
setenv d1 1:/cpm3_b.dsk
setenv d2 1:/cpm3_c.dsk
setenv d3 1:/z180-stamp-cpm3-bios.dsk
setenv d4 1:/cpm3test.dsk
#setenv d5 1:/tst-src.dsk
#setenv d6 1:/tst-dst.dsk
#setenv d3 1:/sammelsurium-simhd.dsk
#setenv d4 1:/games.dsk
#setenv d5 1:/games-hd.dsk
#setenv d6 1:/sparse-pip.dsk
setenv attach_drives 'at -da; at dsk0 ${d0};at dsk1 ${d1};at dsk2 ${d2};at dsk3 ${d3};at dsk4 ${d4}' #;at dsk5 ${d5};at dsk6 ${d6};at dsk7 ${d7}
#
# Einstellungen und Pinbezeichnungen für die Basiskarte
setenv singlestep 1
setenv pin_alias 0:CSTART,1:SD1_CS,2:PB4,3:OC1A,4:V24_EN,5:PB7,6:SD1_CD,7:WAIT,8:RUN,9:STEP,10:PE7
setenv pins 2,8 low 9 high 3 2
#
#some test and debug commands
setenv test_fat 'fatstat 0:; fatls 0:'
setenv test_sd 'sd status 0; sd init 0; sd info 0'
setenv ddtz 'pin 3 2; loadf; mw 3 0; g 0; con'
setenv debug-dsk 'at -o reattach,debug dsk0;at -o reattach,debug dsk1;at -o reattach,debug dsk2'
#
setenv cli
echo Env setup completed successfully.
echo 'Enter "saveenv" to make changes permanent.'
