Saving the "display ccs::read_mem" output to a file

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Saving the "display ccs::read_mem" output to a file

720件の閲覧回数
ts1234
Contributor III

How do I save the output of "display ccs::read_mem" to a file?

I am trying the following script but it does not work.

proc savetofile { fname fstart end } {
set i 0
set fd [open ./$fname w]
while 1 {
set addr [expr $i + $fstart]
puts $fd [display ccs::read_mem 24 0 $addr 4 0 1]
if { $i > $end } break
incr i 8
}

0 件の賞賛
0 返答(返信)