comparison sidinfo.c @ 314:71139ed7e43f

Rename #define HEX_ADDR to more informative SET_FMT_HEX_ADDR.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jan 2020 18:30:51 +0200
parents b3d46806787d
children 67392d7ef391
comparison
equal deleted inserted replaced
313:b3d46806787d 314:71139ed7e43f
55 int type; 55 int type;
56 char *dfmt; 56 char *dfmt;
57 } PSFOption; 57 } PSFOption;
58 58
59 59
60 #define HEX_ADDR "%d ($%04x)" 60 #define SET_FMT_HEX_ADDR "%d ($%04x)"
61 61
62 static const PSFOption optPSOptions[] = 62 static const PSFOption optPSOptions[] =
63 { 63 {
64 { "Filename" , NULL , OTYPE_STR , NULL }, 64 { "Filename" , NULL , OTYPE_STR , NULL },
65 { "Type" , NULL , OTYPE_STR , NULL }, 65 { "Type" , NULL , OTYPE_STR , NULL },
67 { "PlayerType" , "Player type" , OTYPE_STR , NULL }, 67 { "PlayerType" , "Player type" , OTYPE_STR , NULL },
68 { "PlayerCompat" , "Player compatibility" , OTYPE_STR , NULL }, 68 { "PlayerCompat" , "Player compatibility" , OTYPE_STR , NULL },
69 { "VideoClock" , "Video clock speed" , OTYPE_STR , NULL }, 69 { "VideoClock" , "Video clock speed" , OTYPE_STR , NULL },
70 { "SIDModel" , "SID model" , OTYPE_STR , NULL }, 70 { "SIDModel" , "SID model" , OTYPE_STR , NULL },
71 71
72 { "DataOffs" , "Data offset" , OTYPE_INT , HEX_ADDR }, 72 { "DataOffs" , "Data offset" , OTYPE_INT , SET_FMT_HEX_ADDR },
73 { "DataSize" , "Data size" , OTYPE_INT , HEX_ADDR }, 73 { "DataSize" , "Data size" , OTYPE_INT , SET_FMT_HEX_ADDR },
74 { "LoadAddr" , "Load address" , OTYPE_INT , HEX_ADDR }, 74 { "LoadAddr" , "Load address" , OTYPE_INT , SET_FMT_HEX_ADDR },
75 { "InitAddr" , "Init address" , OTYPE_INT , HEX_ADDR }, 75 { "InitAddr" , "Init address" , OTYPE_INT , SET_FMT_HEX_ADDR },
76 { "PlayAddr" , "Play address" , OTYPE_INT , HEX_ADDR }, 76 { "PlayAddr" , "Play address" , OTYPE_INT , SET_FMT_HEX_ADDR },
77 { "Songs" , "Songs" , OTYPE_INT , "%d" }, 77 { "Songs" , "Songs" , OTYPE_INT , "%d" },
78 { "StartSong" , "Start song" , OTYPE_INT , "%d" }, 78 { "StartSong" , "Start song" , OTYPE_INT , "%d" },
79 79
80 { "SID2Model" , "2nd SID model" , OTYPE_STR , NULL }, 80 { "SID2Model" , "2nd SID model" , OTYPE_STR , NULL },
81 { "SID3Model" , "3rd SID model" , OTYPE_STR , NULL }, 81 { "SID3Model" , "3rd SID model" , OTYPE_STR , NULL },
82 { "SID2Addr" , "2nd SID address" , OTYPE_INT , HEX_ADDR }, 82 { "SID2Addr" , "2nd SID address" , OTYPE_INT , SET_FMT_HEX_ADDR },
83 { "SID3Addr" , "3rd SID address" , OTYPE_INT , HEX_ADDR }, 83 { "SID3Addr" , "3rd SID address" , OTYPE_INT , SET_FMT_HEX_ADDR },
84 84
85 { "Name" , NULL , OTYPE_STR , NULL }, 85 { "Name" , NULL , OTYPE_STR , NULL },
86 { "Author" , NULL , OTYPE_STR , NULL }, 86 { "Author" , NULL , OTYPE_STR , NULL },
87 { "Copyright" , NULL , OTYPE_STR , NULL }, 87 { "Copyright" , NULL , OTYPE_STR , NULL },
88 { "Hash" , NULL , OTYPE_STR , NULL }, 88 { "Hash" , NULL , OTYPE_STR , NULL },