Mercurial > hg > sidinfo
comparison sidinfo.c @ 58:5ea07110f0cf
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 Dec 2015 22:57:23 +0200 |
parents | c10c79c266d3 |
children | 718cdb563531 |
comparison
equal
deleted
inserted
replaced
57:c10c79c266d3 | 58:5ea07110f0cf |
---|---|
123 { | 123 { |
124 printf("\n"); | 124 printf("\n"); |
125 n = 0; | 125 n = 0; |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 printf("Example: %s -x -p -f hash,copyright somesidfile.sid\n", th_prog_name); | 129 printf("Example: %s -x -p -f hash,copyright somesidfile.sid\n", th_prog_name); |
130 } | 130 } |
131 | 131 |
132 | 132 |
133 int argMatchPSField(const char *field) | 133 int argMatchPSField(const char *field) |
275 PSF_CLOCK_UNKNOWN = 0x0000, // Video standard used (v2NG) | 275 PSF_CLOCK_UNKNOWN = 0x0000, // Video standard used (v2NG) |
276 PSF_CLOCK_PAL = 0x0004, | 276 PSF_CLOCK_PAL = 0x0004, |
277 PSF_CLOCK_NTSC = 0x0008, | 277 PSF_CLOCK_NTSC = 0x0008, |
278 PSF_CLOCK_ANY = 0x000c, | 278 PSF_CLOCK_ANY = 0x000c, |
279 PSF_CLOCK_MASK = 0x000c, | 279 PSF_CLOCK_MASK = 0x000c, |
280 | 280 |
281 PSF_MODEL_UNKNOWN = 0x0000, // SID model (v2NG) | 281 PSF_MODEL_UNKNOWN = 0x0000, // SID model (v2NG) |
282 PSF_MODEL_MOS6581 = 0x0010, | 282 PSF_MODEL_MOS6581 = 0x0010, |
283 PSF_MODEL_MOS8580 = 0x0020, | 283 PSF_MODEL_MOS8580 = 0x0020, |
284 PSF_MODEL_ANY = 0x0030, | 284 PSF_MODEL_ANY = 0x0030, |
285 PSF_MODEL_MASK = 0x0030, | 285 PSF_MODEL_MASK = 0x0030, |
380 if (read < 4) | 380 if (read < 4) |
381 { | 381 { |
382 THERR("Error reading song data, unexpectedly small file.\n"); | 382 THERR("Error reading song data, unexpectedly small file.\n"); |
383 goto error; | 383 goto error; |
384 } | 384 } |
385 | 385 |
386 // Grab the actual load address | 386 // Grab the actual load address |
387 psid->loadAddress = TH_LE16_TO_NATIVE(*(uint16_t *) fileData); | 387 psid->loadAddress = TH_LE16_TO_NATIVE(*(uint16_t *) fileData); |
388 | 388 |
389 // Strip load address (2 first bytes) | 389 // Strip load address (2 first bytes) |
390 th_md5_append(&state, &fileData[2], read - 2); | 390 th_md5_append(&state, &fileData[2], read - 2); |