summaryrefslogtreecommitdiff
path: root/tool/download.tcl
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-06-05 13:21:18 -0700
committerJulian Blake Kongslie2022-06-05 13:22:00 -0700
commit3f708bda562f30f3cd754efe10b495a35f303766 (patch)
treea586b70869094bf0f07d68f038e879607c1af28e /tool/download.tcl
parentMore nefarious planning... (diff)
downloadmultipdp8-3f708bda562f30f3cd754efe10b495a35f303766.tar.xz
More reliable download script.
Diffstat (limited to 'tool/download.tcl')
-rwxr-xr-xtool/download.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/download.tcl b/tool/download.tcl
index 96fc03b..596e527 100755
--- a/tool/download.tcl
+++ b/tool/download.tcl
@@ -26,10 +26,10 @@ while {[gets stdin line] >= 0} {
26# It's likely we ended with a very large zero-memory operation. We want to see 26# It's likely we ended with a very large zero-memory operation. We want to see
27# two command bytes echoed back to us in order to guarantee that the zero 27# two command bytes echoed back to us in order to guarantee that the zero
28# operation has completely flushed to memory. 28# operation has completely flushed to memory.
29send "?" 29# Note that this forces the last line of memory to be zero.
30expect -ex "?" 30set atline "@[format %x [expr ($core * 32768 + 32767) / $wordsperline]]"
31send "?" 31send "$atline =0 $atline ?"
32expect -ex "?" 32expect -ex "$atline =0 $atline ?0000\r\n"
33 33
34send "\n~." 34send "\n~."
35wait 35wait