# HG changeset patch # User Matti Hamalainen # Date 1508964021 -10800 # Node ID 44e1c1555d8767775879dda97d66fd181670208a # Parent 6b4fedd8130744f64a7edc4b2cf8ce8c3ed62770 Update documentation a bit. diff -r 6b4fedd81307 -r 44e1c1555d87 README.txt --- a/README.txt Wed Oct 25 23:31:13 2017 +0300 +++ b/README.txt Wed Oct 25 23:40:21 2017 +0300 @@ -111,3 +111,16 @@ $ sidinfo Anal_ogue.sid -F 'NAME="@name@"\nHASH=@hash@\n' NAME="Anal'ogue" HASH=6d5b7f0ff092e55abf27c37c8bc3fc64 + +--- --- --- --- --- --- --- --- --- --- + +Furthermore, you can use "printf"-style format specifiers for +formatting each @field@, see this example: + +$ sidinfo Anal_ogue.sid -F 'NAME=@name:"%-64s"@\nHASH=@hash:"%64s"@\nLOAD_ADDR=@loadaddr:$%04x@\n' +NAME="Anal'ogue " +HASH=" 6d5b7f0ff092e55abf27c37c8bc3fc64" +LOAD_ADDR=$0fb0 + +Many of the format specifiers are supported, but not all, and obviously only +integer/string formats are supported.