changeset 152:44e1c1555d87

Update documentation a bit.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 25 Oct 2017 23:40:21 +0300
parents 6b4fedd81307
children e3be2ae6120e
files README.txt
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.