comparison README.txt @ 152:44e1c1555d87

Update documentation a bit.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 25 Oct 2017 23:40:21 +0300
parents 641d0fe966ba
children e3be2ae6120e
comparison
equal deleted inserted replaced
151:6b4fedd81307 152:44e1c1555d87
109 control the output very specifically: 109 control the output very specifically:
110 110
111 $ sidinfo Anal_ogue.sid -F 'NAME="@name@"\nHASH=@hash@\n' 111 $ sidinfo Anal_ogue.sid -F 'NAME="@name@"\nHASH=@hash@\n'
112 NAME="Anal'ogue" 112 NAME="Anal'ogue"
113 HASH=6d5b7f0ff092e55abf27c37c8bc3fc64 113 HASH=6d5b7f0ff092e55abf27c37c8bc3fc64
114
115 --- --- --- --- --- --- --- --- --- ---
116
117 Furthermore, you can use "printf"-style format specifiers for
118 formatting each @field@, see this example:
119
120 $ sidinfo Anal_ogue.sid -F 'NAME=@name:"%-64s"@\nHASH=@hash:"%64s"@\nLOAD_ADDR=@loadaddr:$%04x@\n'
121 NAME="Anal'ogue "
122 HASH=" 6d5b7f0ff092e55abf27c37c8bc3fc64"
123 LOAD_ADDR=$0fb0
124
125 Many of the format specifiers are supported, but not all, and obviously only
126 integer/string formats are supported.