Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/cfg/SRecord.rb
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/cfg/SRecord.rb
r321 r429 36 36 # の責任を負わない. 37 37 # 38 # $Id $38 # $Id: SRecord.rb 161 2018-12-12 00:45:04Z ertl-hiro $ 39 39 # 40 40 … … 170 170 end 171 171 end 172 173 # 文字列としてのデータ取得 174 def get_string(address) 175 str = "" 176 targetChar = get_data(address, 1).hex 177 while (!targetChar.nil? && targetChar != 0) 178 str += targetChar.chr 179 address += 1 180 targetChar = get_data(address, 1).hex 181 end 182 return(str) 183 end 172 184 end
Note:
See TracChangeset
for help on using the changeset viewer.