📄 read_image.tcl
字号:
proc read_image {filename addr size} {set WR [open $filename "w"]fconfigure $WR -translation binaryset count 0#set size 0x2d0dputs "Reading image from $addr into file: $filename"while {$count < $size} { #puts $count set loc [expr $addr+$count] set val [xrmem 0 $loc 4] set val1 [binary format c [lindex $val 1]] set val2 [binary format c [lindex $val 2]] set val3 [binary format c [lindex $val 3]] set val4 [binary format c [lindex $val 4]] puts -nonewline $WR $val1 puts -nonewline $WR $val2 puts -nonewline $WR $val3 puts -nonewline $WR $val4 incr count incr count incr count incr count}close $WRputs "Wrote Jpeg Image to file $filename"}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -