摘要: proc h2d {{hex_num 0}} { return [format "%d" 0x$hex_num]}proc d2h {{dec_num 0} {width 1}} { return [format "%0${width}x" $dec_num]}set dbg_switch closeproc dbg {{switch 0}} { global dbg_switch if {"$switch" == "open" || "$switch" == "close" 阅读全文
posted @ 2013-05-30 01:14 庄庄庄 阅读(579) 评论(0) 推荐(0) 编辑