diff options
| author | Julian Blake Kongslie | 2022-05-29 16:37:06 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-05-29 16:37:06 -0700 |
| commit | 016d38f42584cf2e54de279e4948a9168028aff2 (patch) | |
| tree | 517df817d165aedf8b9e8877d2e8c2450a2c182e /tool/download.tcl | |
| parent | Add extremely sus speedy-download tool which might have made Mike's FTDI (diff) | |
| download | multipdp8-016d38f42584cf2e54de279e4948a9168028aff2.tar.xz | |
Tweak con script to do CRLF translation on received stream.
Diffstat (limited to '')
| -rwxr-xr-x | tool/download.tcl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tool/download.tcl b/tool/download.tcl index c0dca55..96fc03b 100755 --- a/tool/download.tcl +++ b/tool/download.tcl | |||
| @@ -14,11 +14,13 @@ if {$::argc > 1} { | |||
| 14 | 14 | ||
| 15 | spawn tool/connect | 15 | spawn tool/connect |
| 16 | 16 | ||
| 17 | send "@[format %x [expr $core * 32768 / $wordsperline]]\n" | 17 | set atline "@[format %x [expr $core * 32768 / $wordsperline]]" |
| 18 | send "$atline\n" | ||
| 19 | expect -ex "$atline\r\n" | ||
| 18 | 20 | ||
| 19 | while {[gets stdin line] >= 0} { | 21 | while {[gets stdin line] >= 0} { |
| 20 | send "$line\n" | 22 | send "$line\n" |
| 21 | expect -ex "$line\n" | 23 | expect -ex "$line\r\n" |
| 22 | } | 24 | } |
| 23 | 25 | ||
| 24 | # 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 |
