View | Details | Raw Unified | Return to bug 132931
Collapse All | Expand All

(-)jzintv/files/patch-doc-tech-ivoice.c (+159 lines)
Line 0 Link Here
1
--- doc/tech/ivoice.c.orig	2009-03-22 12:49:14.330601764 +0100
2
+++ doc/tech/ivoice.c	2009-03-22 12:54:15.050117512 +0100
3
@@ -36,9 +36,9 @@
4
 //#define SINGLE_STEP
5
 //#define DEBUG
6
 #ifdef DEBUG
7
-#define dprintf(x) printf x ; fflush(stdout)
8
+#define dbprintf(x) printf x ; fflush(stdout)
9
 #else
10
-#define dprintf(x)
11
+#define dbprintf(x)
12
 #endif
13
 
14
 #undef HIGH_QUALITY
15
@@ -815,7 +815,7 @@
16
         data = ((d1 << 10) | d0) >> ivoice->fifo_bitp;
17
 
18
 #ifdef DEBUG_FIFO
19
-        dprintf(("IV: RD_FIFO %.3X %d.%d %d\n", data & ((1 << len) - 1),
20
+        dbprintf(("IV: RD_FIFO %.3X %d.%d %d\n", data & ((1 << len) - 1),
21
                 ivoice->fifo_tail, ivoice->fifo_bitp, ivoice->fifo_head));
22
 #endif
23
 
24
@@ -912,7 +912,7 @@
25
         repeat = 0;
26
         ctrl_xfer = 0;
27
         
28
-        dprintf(("$%.4X.%.1X: OPCODE %d%d%d%d.%d%d\n", 
29
+        dbprintf(("$%.4X.%.1X: OPCODE %d%d%d%d.%d%d\n", 
30
                 (iv->pc >> 3) - 1, iv->pc & 7, 
31
                 !!(opcode & 1), !!(opcode & 2), 
32
                 !!(opcode & 4), !!(opcode & 8), 
33
@@ -1036,7 +1036,7 @@
34
         /* ---------------------------------------------------------------- */
35
         if (ctrl_xfer)
36
         {
37
-            dprintf(("jumping to $%.4X.%.1X: ", iv->pc >> 3, iv->pc & 7));
38
+            dbprintf(("jumping to $%.4X.%.1X: ", iv->pc >> 3, iv->pc & 7));
39
 
40
             /* ------------------------------------------------------------ */
41
             /*  Set our "FIFO Selected" flag based on whether we're going   */
42
@@ -1044,7 +1044,7 @@
43
             /* ------------------------------------------------------------ */
44
             iv->fifo_sel = iv->pc == FIFO_ADDR;
45
 
46
-            dprintf(("%s ", iv->fifo_sel ? "FIFO" : "ROM"));
47
+            dbprintf(("%s ", iv->fifo_sel ? "FIFO" : "ROM"));
48
 
49
             /* ------------------------------------------------------------ */
50
             /*  Control transfers to the FIFO cause it to discard the       */
51
@@ -1052,14 +1052,14 @@
52
             /* ------------------------------------------------------------ */
53
             if (iv->fifo_sel && iv->fifo_bitp)  
54
             {
55
-                dprintf(("bitp = %d -> Flush", iv->fifo_bitp));
56
+                dbprintf(("bitp = %d -> Flush", iv->fifo_bitp));
57
 
58
                 /* Discard partially-read decle. */
59
                 if (iv->fifo_tail < iv->fifo_head) iv->fifo_tail++;
60
                 iv->fifo_bitp = 0;
61
             }
62
 
63
-            dprintf(("\n"));
64
+            dbprintf(("\n"));
65
 
66
             continue;
67
         }
68
@@ -1080,7 +1080,7 @@
69
         #endif
70
 
71
         iv->filt.rpt = repeat + 1;
72
-        dprintf(("repeat = %d\n", repeat));
73
+        dbprintf(("repeat = %d\n", repeat));
74
 
75
         i = (opcode << 3) | (iv->mode & 6);
76
         idx0 = sp0256_df_idx[i++];
77
@@ -1110,7 +1110,7 @@
78
             field = cr & CR_FIELD;
79
             value = 0;
80
 
81
-            dprintf(("$%.4X.%.1X: len=%2d shf=%2d prm=%2d d=%d f=%d ",
82
+            dbprintf(("$%.4X.%.1X: len=%2d shf=%2d prm=%2d d=%d f=%d ",
83
                      iv->pc >> 3, iv->pc & 7, len, shf, prm, !!delta, !!field));
84
             /* ------------------------------------------------------------ */
85
             /*  Clear any registers that were requested to be cleared.      */
86
@@ -1133,7 +1133,7 @@
87
                 value = sp0256_getb(iv, len);
88
             else
89
             {
90
-                dprintf((" (no update)\n"));
91
+                dbprintf((" (no update)\n"));
92
                 continue;
93
             }
94
 
95
@@ -1151,7 +1151,7 @@
96
             if (shf)
97
                 value <<= shf;
98
 
99
-            dprintf(("v=%.2X (%c%.2X)  ", value & 0xFF, 
100
+            dbprintf(("v=%.2X (%c%.2X)  ", value & 0xFF, 
101
                      value & 0x80 ? '-' : '+', 
102
                      0xFF & (value & 0x80 ? -value : value)));
103
 
104
@@ -1160,12 +1160,12 @@
105
             /* ------------------------------------------------------------ */
106
             if (field)
107
             {
108
-                dprintf(("--field-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
109
+                dbprintf(("--field-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
110
 
111
                 iv->filt.r[prm] &= ~(~0 << shf); /* Clear the old bits.     */
112
                 iv->filt.r[prm] |= value;        /* Merge in the new bits.  */
113
 
114
-                dprintf(("%.2X\n", iv->filt.r[prm]));
115
+                dbprintf(("%.2X\n", iv->filt.r[prm]));
116
 
117
                 continue;
118
             } 
119
@@ -1175,11 +1175,11 @@
120
             /* ------------------------------------------------------------ */
121
             if (delta)
122
             {
123
-                dprintf(("--delta-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
124
+                dbprintf(("--delta-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
125
 
126
                 iv->filt.r[prm] += value;
127
 
128
-                dprintf(("%.2X\n", iv->filt.r[prm]));
129
+                dbprintf(("%.2X\n", iv->filt.r[prm]));
130
 
131
                 continue;
132
             }
133
@@ -1189,7 +1189,7 @@
134
             /* ------------------------------------------------------------ */
135
 
136
             iv->filt.r[prm] = value;
137
-            dprintf(("--value-> r[%2d] = %.2X\n", prm, iv->filt.r[prm]));
138
+            dbprintf(("--value-> r[%2d] = %.2X\n", prm, iv->filt.r[prm]));
139
         }
140
 
141
         /* ---------------------------------------------------------------- */
142
@@ -1526,7 +1526,7 @@
143
         /* ---------------------------------------------------------------- */
144
         if ((ivoice->fifo_head - ivoice->fifo_tail) >= 64) 
145
         {
146
-            dprintf(("IV: Dropped FIFO write\n"));
147
+            dbprintf(("IV: Dropped FIFO write\n"));
148
             return;
149
         }
150
 
151
@@ -1534,7 +1534,7 @@
152
         /*  FIFO up the lower 10 bits of the data.                          */
153
         /* ---------------------------------------------------------------- */
154
 #ifdef DEBUG_FIFO
155
-        dprintf(("IV: WR_FIFO %.3X %d.%d %d\n", data & 0x3FF, 
156
+        dbprintf(("IV: WR_FIFO %.3X %d.%d %d\n", data & 0x3FF, 
157
                 ivoice->fifo_tail, ivoice->fifo_bitp, ivoice->fifo_head));
158
 #endif
159
         ivoice->fifo[ivoice->fifo_head++ & 63] = data & 0x3FF;
(-)jzintv/files/patch-src-gif-lzw_enc.c (+293 lines)
Line 0 Link Here
1
--- src/gif/lzw_enc.c.orig	2009-03-22 12:58:44.562353006 +0100
2
+++ src/gif/lzw_enc.c	2009-03-22 12:59:37.848069207 +0100
3
@@ -14,9 +14,9 @@
4
 #include "config.h"
5
 
6
 #ifdef DEBUG
7
-# define dprintf(x) jzp_printf x
8
+# define dbprintf(x) jzp_printf x
9
 #else
10
-# define dprintf(x) 
11
+# define dbprintf(x) 
12
 #endif
13
 
14
 
15
@@ -46,7 +46,7 @@
16
         if (i_buf[i] > max_sym) 
17
             max_sym = i_buf[i];
18
     dict_stride = max_sym + 1;
19
-    dprintf(("max_sym = %.2X\n", max_sym));
20
+    dbprintf(("max_sym = %.2X\n", max_sym));
21
 
22
     /* -------------------------------------------------------------------- */
23
     /*  Compute and output the starting code-size.                          */
24
@@ -54,7 +54,7 @@
25
     for (code_size = 2; code_size < 8; code_size++)
26
         if ((1 << code_size) > max_sym)
27
             break;
28
-    dprintf(("code_size = %.2X\n", code_size));
29
+    dbprintf(("code_size = %.2X\n", code_size));
30
     /* -------------------------------------------------------------------- */
31
     /*  Allocate the dictionary.  We store the tree in a 2-D array.  One    */
32
     /*  dimension is the code number, and the other is the codes it chains  */
33
@@ -89,7 +89,7 @@
34
     /* -------------------------------------------------------------------- */
35
     while (i_ptr <= i_end && code != end_of_info)
36
     {
37
-        dprintf(("remaining: %10d\n", i_end - i_ptr));
38
+        dbprintf(("remaining: %10d\n", i_end - i_ptr));
39
 
40
         /* ---------------------------------------------------------------- */
41
         /*  If dictionary's full, send a clear code and flush dictionary.   */
42
@@ -97,7 +97,7 @@
43
         /* ---------------------------------------------------------------- */
44
         if (next_new_code == 0x1000)
45
         {
46
-            dprintf(("CLEAR %.3X %d\n", clear_code, curr_size));
47
+            dbprintf(("CLEAR %.3X %d\n", clear_code, curr_size));
48
 
49
             curr_word |= clear_code << curr_bits; 
50
             curr_bits += curr_size;
51
@@ -106,7 +106,7 @@
52
                 /* Handle packaging data into 256-byte records */
53
                 if (o_ptr - last_len_byte == 256)
54
                 {
55
-                    dprintf(("last_len_byte=%.8X o_ptr=%.8X\n", 
56
+                    dbprintf(("last_len_byte=%.8X o_ptr=%.8X\n", 
57
                               last_len_byte, o_ptr));
58
 
59
                     *last_len_byte = 255;
60
@@ -125,7 +125,7 @@
61
             memset(dict, 0, 4096*sizeof(uint_16)*dict_stride);
62
         } else
63
         {
64
-            dprintf(("new code: %.3X = %.3X + %.2X\n", next_new_code, 
65
+            dbprintf(("new code: %.3X = %.3X + %.2X\n", next_new_code, 
66
                      code, next_char));
67
 
68
             dict[code*dict_stride + next_char] = next_new_code;
69
@@ -135,7 +135,7 @@
70
         }
71
 
72
         code = next_char;  /* Previous concat becomes new initial code */
73
-        dprintf(("next code: %.2X %c\n", code, code == end_of_info ? '*':' '));
74
+        dbprintf(("next code: %.2X %c\n", code, code == end_of_info ? '*':' '));
75
 
76
         /* ---------------------------------------------------------------- */
77
         /*  Keep concatenating as long as we stay in the dictionary.        */
78
@@ -143,7 +143,7 @@
79
         if (i_ptr == i_end)
80
         {
81
             next_char = end_of_info;
82
-            dprintf(("--> next is EOI!\n"));
83
+            dbprintf(("--> next is EOI!\n"));
84
         } else
85
         {
86
             next_code = -1;
87
@@ -151,7 +151,7 @@
88
             {
89
                 next_char = *i_ptr++;
90
                 next_code = dict[code*dict_stride + next_char];
91
-                dprintf(("--> code: %.3X + %.2X = %.3X\n", code, 
92
+                dbprintf(("--> code: %.3X + %.2X = %.3X\n", code, 
93
                          next_char, next_code));
94
 
95
                 if (next_code)
96
@@ -162,7 +162,7 @@
97
 
98
             if (next_char == end_of_info) 
99
             { 
100
-                dprintf(("--> next is EOI! (b)\n"));
101
+                dbprintf(("--> next is EOI! (b)\n"));
102
             }
103
         }
104
 
105
@@ -174,14 +174,14 @@
106
         /* ---------------------------------------------------------------- */
107
         curr_word |= code << curr_bits; 
108
         curr_bits += curr_size;
109
-        dprintf(("SEND %.4X %d curr: %.8X %2d\n", code, curr_size, 
110
+        dbprintf(("SEND %.4X %d curr: %.8X %2d\n", code, curr_size, 
111
                  curr_word, curr_bits));
112
         while (curr_bits > 8)
113
         {
114
             /* Handle packaging data into 256-byte records */
115
             if (o_ptr - last_len_byte == 256)
116
             {
117
-                dprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, 
118
+                dbprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, 
119
                           o_ptr));
120
                 *last_len_byte = 255;
121
                 last_len_byte  = o_ptr++;
122
@@ -203,7 +203,7 @@
123
         /* Handle packaging data into 256-byte records */
124
         if (o_ptr - last_len_byte == 256)
125
         {
126
-            dprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, o_ptr));
127
+            dbprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, o_ptr));
128
             *last_len_byte = 255;
129
             last_len_byte  = o_ptr++;
130
         }
131
@@ -223,7 +223,7 @@
132
     *last_len_byte = o_ptr - last_len_byte - 1;
133
     *o_ptr++ = 0;
134
 
135
-    dprintf(("encoded %d bytes\n", o_ptr - o_buf));
136
+    dbprintf(("encoded %d bytes\n", o_ptr - o_buf));
137
 
138
     return o_ptr - o_buf;
139
 
140
@@ -232,11 +232,11 @@
141
 }
142
 
143
 //#define DEBUG
144
-#undef dprintf
145
+#undef dbprintf
146
 #ifdef DEBUG
147
-# define dprintf(x) jzp_printf x
148
+# define dbprintf(x) jzp_printf x
149
 #else
150
-# define dprintf(x) 
151
+# define dbprintf(x) 
152
 #endif
153
 
154
 int lzw_encode2(const uint_8 *i_buf, const uint_8 *i_buf_alt,
155
@@ -270,7 +270,7 @@
156
     }
157
 
158
     dict_stride = max_sym + 1;
159
-    dprintf(("max_sym = %.2X\n", max_sym));
160
+    dbprintf(("max_sym = %.2X\n", max_sym));
161
 
162
     /* -------------------------------------------------------------------- */
163
     /*  Compute and output the starting code-size.                          */
164
@@ -278,7 +278,7 @@
165
     for (code_size = 2; code_size < 8; code_size++)
166
         if ((1 << code_size) > max_sym)
167
             break;
168
-    dprintf(("code_size = %.2X\n", code_size));
169
+    dbprintf(("code_size = %.2X\n", code_size));
170
     /* -------------------------------------------------------------------- */
171
     /*  Allocate the dictionary.  We store the tree in a 2-D array.  One    */
172
     /*  dimension is the code number, and the other is the codes it chains  */
173
@@ -312,7 +312,7 @@
174
     /* -------------------------------------------------------------------- */
175
     while (i_idx <= i_len && code != end_of_info)
176
     {
177
-        dprintf(("remaining: %10d\n", i_len - i_idx));
178
+        dbprintf(("remaining: %10d\n", i_len - i_idx));
179
 
180
         /* ---------------------------------------------------------------- */
181
         /*  If dictionary's full, send a clear code and flush dictionary.   */
182
@@ -320,7 +320,7 @@
183
         /* ---------------------------------------------------------------- */
184
         if (next_new_code == 0x1000)
185
         {
186
-            dprintf(("CLEAR %.3X %d\n", clear_code, curr_size));
187
+            dbprintf(("CLEAR %.3X %d\n", clear_code, curr_size));
188
 
189
             curr_word |= clear_code << curr_bits; 
190
             curr_bits += curr_size;
191
@@ -329,7 +329,7 @@
192
                 /* Handle packaging data into 256-byte records */
193
                 if (o_ptr - last_len_byte == 256)
194
                 {
195
-                    dprintf(("last_len_byte=%.8X o_ptr=%.8X\n", 
196
+                    dbprintf(("last_len_byte=%.8X o_ptr=%.8X\n", 
197
                               last_len_byte, o_ptr));
198
 
199
                     *last_len_byte = 255;
200
@@ -348,7 +348,7 @@
201
             memset(dict, 0, 4096*sizeof(uint_16)*dict_stride);
202
         } else
203
         {
204
-            dprintf(("new code: %.3X = %.3X + %.2X\n", next_new_code, 
205
+            dbprintf(("new code: %.3X = %.3X + %.2X\n", next_new_code, 
206
                      code, next_char));
207
 
208
             dict[code*dict_stride + next_char] = next_new_code;
209
@@ -358,7 +358,7 @@
210
         }
211
 
212
         code = next_char;  /* Previous concat becomes new initial code */
213
-        dprintf(("next code: %.2X %c\n", code, code == end_of_info ? '*':' '));
214
+        dbprintf(("next code: %.2X %c\n", code, code == end_of_info ? '*':' '));
215
 
216
         /* ---------------------------------------------------------------- */
217
         /*  Keep concatenating as long as we stay in the dictionary.        */
218
@@ -366,7 +366,7 @@
219
         if (i_idx == i_len)
220
         {
221
             next_char = end_of_info;
222
-            dprintf(("--> next is EOI!\n"));
223
+            dbprintf(("--> next is EOI!\n"));
224
         } else
225
         {
226
             next_code = -1;
227
@@ -378,19 +378,19 @@
228
                 if ((tmp = dict[code*dict_stride + i_buf[i_idx]]) != 0)
229
                 {
230
                     next_code = tmp;
231
-                    dprintf(("--> code: %.3X + %.2X(a) = %.3X\n", code, 
232
+                    dbprintf(("--> code: %.3X + %.2X(a) = %.3X\n", code, 
233
                              next_char, next_code));
234
                 } else 
235
                 if ((tmp = dict[code*dict_stride + i_buf_alt[i_idx]]) != 0)
236
                 {
237
                     next_char = i_buf_alt[i_idx];
238
                     next_code = tmp;
239
-                    dprintf(("--> code: %.3X + %.2X(b) = %.3X\n", code, 
240
+                    dbprintf(("--> code: %.3X + %.2X(b) = %.3X\n", code, 
241
                              next_char, next_code));
242
                 } else
243
                 {
244
                     next_code = 0;
245
-                    dprintf(("--> code: %.3X + %.2X(c) = %.3X\n", code, 
246
+                    dbprintf(("--> code: %.3X + %.2X(c) = %.3X\n", code, 
247
                              next_char, next_code));
248
                 }
249
                 i_idx++;
250
@@ -403,7 +403,7 @@
251
 
252
             if (next_char == end_of_info) 
253
             { 
254
-                dprintf(("--> next is EOI! (b)\n"));
255
+                dbprintf(("--> next is EOI! (b)\n"));
256
             }
257
         }
258
 
259
@@ -415,14 +415,14 @@
260
         /* ---------------------------------------------------------------- */
261
         curr_word |= code << curr_bits; 
262
         curr_bits += curr_size;
263
-        dprintf(("SEND %.4X %d curr: %.8X %2d\n", code, curr_size, 
264
+        dbprintf(("SEND %.4X %d curr: %.8X %2d\n", code, curr_size, 
265
                  curr_word, curr_bits));
266
         while (curr_bits > 8)
267
         {
268
             /* Handle packaging data into 256-byte records */
269
             if (o_ptr - last_len_byte == 256)
270
             {
271
-                dprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, 
272
+                dbprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, 
273
                           o_ptr));
274
                 *last_len_byte = 255;
275
                 last_len_byte  = o_ptr++;
276
@@ -444,7 +444,7 @@
277
         /* Handle packaging data into 256-byte records */
278
         if (o_ptr - last_len_byte == 256)
279
         {
280
-            dprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, o_ptr));
281
+            dbprintf(("last_len_byte=%.8X o_ptr=%.8X\n", last_len_byte, o_ptr));
282
             *last_len_byte = 255;
283
             last_len_byte  = o_ptr++;
284
         }
285
@@ -464,7 +464,7 @@
286
     *last_len_byte = o_ptr - last_len_byte - 1;
287
     *o_ptr++ = 0;
288
 
289
-    dprintf(("encoded %d bytes\n", o_ptr - o_buf));
290
+    dbprintf(("encoded %d bytes\n", o_ptr - o_buf));
291
 
292
     return o_ptr - o_buf;
293
 
(-)jzintv/files/patch-src-ivoice-ivoice.c (+141 lines)
Line 0 Link Here
1
--- src/ivoice/ivoice.c.orig	2009-03-22 12:56:23.061988854 +0100
2
+++ src/ivoice/ivoice.c	2009-03-22 12:56:56.670247445 +0100
3
@@ -44,9 +44,9 @@
4
 
5
 //#define DEBUG
6
 #ifdef DEBUG
7
-#define dprintf(x) jzp_printf x ; jzp_flush()
8
+#define dbprintf(x) jzp_printf x ; jzp_flush()
9
 #else
10
-#define dprintf(x)
11
+#define dbprintf(x)
12
 #endif
13
 
14
 #undef HIGH_QUALITY
15
@@ -1086,7 +1086,7 @@
16
 
17
         iv_smp_ckupd(iv, immed4*16 + opcode);
18
         
19
-        dprintf(("$%.4X.%.1X: OPCODE %d%d%d%d.%d%d\n", 
20
+        dbprintf(("$%.4X.%.1X: OPCODE %d%d%d%d.%d%d\n", 
21
                 (iv->pc >> 3) - 1, iv->pc & 7, 
22
                 !!(opcode & 1), !!(opcode & 2), 
23
                 !!(opcode & 4), !!(opcode & 8), 
24
@@ -1211,7 +1211,7 @@
25
         /* ---------------------------------------------------------------- */
26
         if (ctrl_xfer)
27
         {
28
-            dprintf(("jumping to $%.4X.%.1X: ", iv->pc >> 3, iv->pc & 7));
29
+            dbprintf(("jumping to $%.4X.%.1X: ", iv->pc >> 3, iv->pc & 7));
30
 
31
             /* ------------------------------------------------------------ */
32
             /*  Set our "FIFO Selected" flag based on whether we're going   */
33
@@ -1219,7 +1219,7 @@
34
             /* ------------------------------------------------------------ */
35
             iv->fifo_sel = iv->pc == FIFO_ADDR;
36
 
37
-            dprintf(("%s ", iv->fifo_sel ? "FIFO" : "ROM"));
38
+            dbprintf(("%s ", iv->fifo_sel ? "FIFO" : "ROM"));
39
 
40
             /* ------------------------------------------------------------ */
41
             /*  Control transfers to the FIFO cause it to discard the       */
42
@@ -1227,14 +1227,14 @@
43
             /* ------------------------------------------------------------ */
44
             if (iv->fifo_sel && iv->fifo_bitp)  
45
             {
46
-                dprintf(("bitp = %d -> Flush", iv->fifo_bitp));
47
+                dbprintf(("bitp = %d -> Flush", iv->fifo_bitp));
48
 
49
                 /* Discard partially-read decle. */
50
                 if (iv->fifo_tail < iv->fifo_head) iv->fifo_tail++;
51
                 iv->fifo_bitp = 0;
52
             }
53
 
54
-            dprintf(("\n"));
55
+            dbprintf(("\n"));
56
 
57
             continue;
58
         }
59
@@ -1255,7 +1255,7 @@
60
         #endif
61
 
62
         iv->filt.rpt = repeat + 1;
63
-        dprintf(("repeat = %d\n", repeat));
64
+        dbprintf(("repeat = %d\n", repeat));
65
 
66
         i = (opcode << 3) | (iv->mode & 6);
67
         idx0 = sp0256_df_idx[i++];
68
@@ -1285,7 +1285,7 @@
69
             field = cr & CR_FIELD;
70
             value = 0;
71
 
72
-            dprintf(("$%.4X.%.1X: len=%2d shf=%2d prm=%2d d=%d f=%d ",
73
+            dbprintf(("$%.4X.%.1X: len=%2d shf=%2d prm=%2d d=%d f=%d ",
74
                      iv->pc >> 3, iv->pc & 7, len, shf, prm, !!delta, !!field));
75
             /* ------------------------------------------------------------ */
76
             /*  Clear any registers that were requested to be cleared.      */
77
@@ -1313,7 +1313,7 @@
78
             }
79
             else
80
             {
81
-                dprintf((" (no update)\n"));
82
+                dbprintf((" (no update)\n"));
83
                 continue;
84
             }
85
 
86
@@ -1331,7 +1331,7 @@
87
             if (shf)
88
                 value <<= shf;
89
 
90
-            dprintf(("v=%.2X (%c%.2X)  ", value & 0xFF, 
91
+            dbprintf(("v=%.2X (%c%.2X)  ", value & 0xFF, 
92
                      value & 0x80 ? '-' : '+', 
93
                      0xFF & (value & 0x80 ? -value : value)));
94
 
95
@@ -1342,12 +1342,12 @@
96
             /* ------------------------------------------------------------ */
97
             if (field)
98
             {
99
-                dprintf(("--field-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
100
+                dbprintf(("--field-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
101
 
102
                 iv->filt.r[prm] &= ~(~0 << shf); /* Clear the old bits.     */
103
                 iv->filt.r[prm] |= value;        /* Merge in the new bits.  */
104
 
105
-                dprintf(("%.2X\n", iv->filt.r[prm]));
106
+                dbprintf(("%.2X\n", iv->filt.r[prm]));
107
 
108
                 continue;
109
             } 
110
@@ -1357,11 +1357,11 @@
111
             /* ------------------------------------------------------------ */
112
             if (delta)
113
             {
114
-                dprintf(("--delta-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
115
+                dbprintf(("--delta-> r[%2d] = %.2X -> ", prm, iv->filt.r[prm]));
116
 
117
                 iv->filt.r[prm] += value;
118
 
119
-                dprintf(("%.2X\n", iv->filt.r[prm]));
120
+                dbprintf(("%.2X\n", iv->filt.r[prm]));
121
 
122
                 continue;
123
             }
124
@@ -1370,7 +1370,7 @@
125
             /*  Otherwise, just write the new value.                        */
126
             /* ------------------------------------------------------------ */
127
             iv->filt.r[prm] = value;
128
-            dprintf(("--value-> r[%2d] = %.2X\n", prm, iv->filt.r[prm]));
129
+            dbprintf(("--value-> r[%2d] = %.2X\n", prm, iv->filt.r[prm]));
130
         }
131
 
132
         /* ---------------------------------------------------------------- */
133
@@ -1727,7 +1727,7 @@
134
         /* ---------------------------------------------------------------- */
135
         if ((ivoice->fifo_head - ivoice->fifo_tail) >= 64) 
136
         {
137
-            dprintf(("IV: Dropped FIFO write\n"));
138
+            dbprintf(("IV: Dropped FIFO write\n"));
139
             return;
140
         }
141

Return to bug 132931