Mercurial > hg > sidinfo
annotate README.txt @ 367:f73270cabde2
Bump copyright years.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 02 Jan 2021 11:37:13 +0200 |
parents | 339680ca9a29 |
children | 078a25cd67d8 |
rev | line source |
---|---|
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 SIDInfo - PSID/RSID information displayer |
119 | 2 Programmed and designed by Matti 'ccr' Hämäläinen |
367 | 3 (C) Copyright 2014-2021 Tecnic Software productions (TNSP) |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
5 See COPYING for license information. |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 |
248 | 7 For contacting the author, e-mail is preferred: ccr@tnsp.org |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
9 ======================================================================= |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
10 |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 Requirements |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 ============ |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 The compilation and usage of these utilities requires following |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 software packages or functional equivalents installed: |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 |
233 | 16 - GCC or some other C99 compatible C compiler like Clang. |
366 | 17 |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 - GNU Make |
153
e3be2ae6120e
Delete trailing whitespace.
Matti Hamalainen <ccr@tnsp.org>
parents:
152
diff
changeset
|
19 |
43 | 20 - th-libs library (included in the tar/zip packages, |
21 for building from mercurial repo, see "how to build") | |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 |
157
8fc887cb56d0
Implement iconv support for converting from PSID de-facto latin-1/ISO-8859-*
Matti Hamalainen <ccr@tnsp.org>
parents:
153
diff
changeset
|
23 - libiconv (optional, for converting ISO-8859/Latin-1 encoded |
8fc887cb56d0
Implement iconv support for converting from PSID de-facto latin-1/ISO-8859-*
Matti Hamalainen <ccr@tnsp.org>
parents:
153
diff
changeset
|
24 text used in HVSC SID files and STIL database to whatever |
8fc887cb56d0
Implement iconv support for converting from PSID de-facto latin-1/ISO-8859-*
Matti Hamalainen <ccr@tnsp.org>
parents:
153
diff
changeset
|
25 character set your system is using, like UTF-8.) |
8fc887cb56d0
Implement iconv support for converting from PSID de-facto latin-1/ISO-8859-*
Matti Hamalainen <ccr@tnsp.org>
parents:
153
diff
changeset
|
26 |
8fc887cb56d0
Implement iconv support for converting from PSID de-facto latin-1/ISO-8859-*
Matti Hamalainen <ccr@tnsp.org>
parents:
153
diff
changeset
|
27 |
233 | 28 For Linux -> Win32/64 cross-compilation I have used the MinGW packages |
29 from Debian Testing (wheezy), installable via "apt-get mingw-w64". | |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
30 |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
31 Please don't ask me for help to get cross-compilation working. |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
32 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
33 ======================================================================= |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
34 |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
35 How to build |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
36 ============ |
30 | 37 0) If building from Mercurial repo, you need th-libs: |
38 | |
295
887b67891105
Refer to https:// URL instead of http://
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
39 $ hg clone https://tnsp.org/hg/th-libs |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
40 |
354
0e818307e90b
Update README for the changes in MiNGW cross-build Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
325
diff
changeset
|
41 1) Possibly edit Makefile / Makefile.cross-mingw |
30 | 42 |
76 | 43 2) $ make |
30 | 44 |
354
0e818307e90b
Update README for the changes in MiNGW cross-build Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
325
diff
changeset
|
45 or, if cross-compiling to Win 32/64 via MinGW |
30 | 46 |
354
0e818307e90b
Update README for the changes in MiNGW cross-build Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
325
diff
changeset
|
47 $ make -f Makefile.cross-mingw MINGW=32 |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
48 |
30 | 49 3) ??? |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
50 |
30 | 51 4) If it works -> Happy fun times \:D\ |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
52 |
96
b6bf182bd37f
Add line about 'make install'.
Matti Hamalainen <ccr@tnsp.org>
parents:
76
diff
changeset
|
53 5) sudo make install |
b6bf182bd37f
Add line about 'make install'.
Matti Hamalainen <ccr@tnsp.org>
parents:
76
diff
changeset
|
54 |
284
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
55 6) Optionally set "HVSC_BASE" environment variable |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
56 somewhere to point to your HVSC root directory |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
57 aka "/somewhere/C64Music", so you don't need to |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
58 specify it via the -H option. This way sidinfo |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
59 will use the song length database and STIL |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
60 database from HVSC. |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
61 |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
62 (This setting is also used by some other SID- |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
63 related utilities such as stilview and sidplayfp.) |
5dfe7846e902
Document the support of "HVSC_BASE" environment variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
64 |
96
b6bf182bd37f
Add line about 'make install'.
Matti Hamalainen <ccr@tnsp.org>
parents:
76
diff
changeset
|
65 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
66 ======================================================================= |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
67 |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
68 Usage |
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
69 ===== |
40 | 70 For more information about options, see 'sidinfo --help'. |
71 | |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
72 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
73 |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
74 |
193 | 75 Display all information about one file in "entry per row" format: |
76 | |
153
e3be2ae6120e
Delete trailing whitespace.
Matti Hamalainen <ccr@tnsp.org>
parents:
152
diff
changeset
|
77 $ sidinfo /misc/C64Music/MUSICIANS/J/Jeff/Anal_ogue.sid |
17 | 78 Filename : /misc/C64Music/MUSICIANS/J/Jeff/Anal_ogue.sid |
79 Type : PSID | |
80 Version : 2.0 | |
81 Data offset : 124 | |
82 Data size : 7154 | |
83 Load address : 0 | |
84 Init address : 4017 | |
85 Play address : 4027 | |
86 Songs : 1 | |
87 Start song : 1 | |
88 Name : Anal'ogue | |
119 | 89 Author : Søren Lund (Jeff) |
17 | 90 Copyright : 1996 Jeff |
91 Hash : 6d5b7f0ff092e55abf27c37c8bc3fc64 | |
11
20bcf214b282
Add some "documentation" and a license.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
92 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
93 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
17 | 94 |
193 | 95 Display in "parseable" INI-style format, with hexadecimal values: |
96 | |
67 | 97 $ sidinfo /misc/C64Music/MUSICIANS/J/Jeff/Anal_ogue.sid -p -x |
17 | 98 Filename=/misc/C64Music/MUSICIANS/J/Jeff/Anal_ogue.sid |
99 Type=PSID | |
100 Version=2.0 | |
101 DataOffs=$0000007c | |
102 DataSize=$00001bf2 | |
103 LoadAddr=$0000 | |
104 InitAddr=$0fb1 | |
105 PlayAddr=$0fbb | |
106 Songs=$0001 | |
107 StartSong=$0001 | |
108 Name=Anal'ogue | |
119 | 109 Author=Søren Lund (Jeff) |
17 | 110 Copyright=1996 Jeff |
111 Hash=6d5b7f0ff092e55abf27c37c8bc3fc64 | |
40 | 112 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
113 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
40 | 114 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
115 One-line format with "|" (pipe character) as a field separator, and |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
116 also specify which fields are to be included: |
193 | 117 |
153
e3be2ae6120e
Delete trailing whitespace.
Matti Hamalainen <ccr@tnsp.org>
parents:
152
diff
changeset
|
118 $ sidinfo -l \| -f type,ver,hash,name,author,copyright Anal_ogue.sid |
194
05e2332070a7
Fix some typos and cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
193
diff
changeset
|
119 |
119 | 120 PSID|2.0|Anal'ogue|Søren Lund (Jeff)|1996 Jeff|6d5b7f0ff092e55abf27c37c8bc3fc64| |
40 | 121 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
122 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
40 | 123 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
124 By using the format string functionality you can control the output |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
125 format very specifically: |
67 | 126 |
127 $ sidinfo Anal_ogue.sid -F 'NAME="@name@"\nHASH=@hash@\n' | |
194
05e2332070a7
Fix some typos and cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
193
diff
changeset
|
128 |
64 | 129 NAME="Anal'ogue" |
130 HASH=6d5b7f0ff092e55abf27c37c8bc3fc64 | |
152
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
131 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
132 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
152
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
133 |
193 | 134 You could, for example create SQL INSERT statements: |
135 | |
136 $ sidinfo Anal_ogue.sid -e\' -F "INSERT INTO sometable (filename,name,author) VALUES ('@filename@', '@name@', '@author@', '@copyright@')\n" | |
137 | |
138 INSERT INTO sometable (filename,name,author) VALUES ('./Anal_ogue.sid', 'Anal\'ogue', 'Søren Lund (Jeff)', '1996 Jeff') | |
139 | |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
140 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
193 | 141 |
152
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
142 Furthermore, you can use "printf"-style format specifiers for |
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
143 formatting each @field@, see this example: |
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
144 |
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
145 $ sidinfo Anal_ogue.sid -F 'NAME=@name:"%-64s"@\nHASH=@hash:"%64s"@\nLOAD_ADDR=@loadaddr:$%04x@\n' |
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
146 NAME="Anal'ogue " |
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
147 HASH=" 6d5b7f0ff092e55abf27c37c8bc3fc64" |
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
148 LOAD_ADDR=$0fb0 |
44e1c1555d87
Update documentation a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
136
diff
changeset
|
149 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
150 Many of the standard C-style printf() format specifiers are supported, |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
151 but not all, and obviously only integer/string formats are supported. |
193 | 152 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
153 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
193 | 154 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
155 Since sidinfo v0.7.6 it is also possible to automatically scan and |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
156 recurse directories via '-R' option, for example: |
193 | 157 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
158 $ sidinfo -R "/misc/C64Music/*.sid" |
193 | 159 |
194
05e2332070a7
Fix some typos and cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
193
diff
changeset
|
160 The above will start from /misc/C64Music/ and scan any accessible |
05e2332070a7
Fix some typos and cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
193
diff
changeset
|
161 subdirectories for files that match "*.sid" pattern and handle them. |
193 | 162 |
163 Using previous example about SQL inserts: | |
164 | |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
165 $ sidinfo -R "/misc/C64Music/*.sid" -e\' -F "INSERT INTO sometable (filename,name,author) VALUES ('@filename@', '@name@', '@author@', '@copyright@')\n" |
194
05e2332070a7
Fix some typos and cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
193
diff
changeset
|
166 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
167 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- |
282
5936a3dc9755
Document the STIL related issues of -F formatting with few words.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
168 |
325
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
169 SIDInfo 0.9 adds support for the HVSC STIL database. Unfortunately |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
170 controlling the output of STIL information in the "-F" format string |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
171 option is quite limited, as all fields will be concatenated into |
d056f284184b
Improvements to the README.
Matti Hamalainen <ccr@tnsp.org>
parents:
295
diff
changeset
|
172 one long string field. |
282
5936a3dc9755
Document the STIL related issues of -F formatting with few words.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
173 |
290
4686ea0b6851
Minor typographic and grammatic improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
284
diff
changeset
|
174 You can change the field separator by specifying the "-l" option and |
4686ea0b6851
Minor typographic and grammatic improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
284
diff
changeset
|
175 also optionally omit the STIL field names by using the "-n" option. |
282
5936a3dc9755
Document the STIL related issues of -F formatting with few words.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
176 |