Previous 199869 Revisions Next

r21052 Wednesday 13th February, 2013 at 23:20:21 UTC by Angelo Salese
Avoid logging if word reading from the IOGA
[src/mame/drivers]stv.c

trunk/src/mame/drivers/stv.c
r21051r21052
213213   if(ACCESSING_BITS_0_7)
214214      res |= stv_ioga_r(space,offset*4+3);
215215   if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
216      printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
216      if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
217         printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
217218
218219   return res;
219220}
r21051r21052
225226   if(ACCESSING_BITS_0_7)
226227      stv_ioga_w(space,offset*4+3,data);
227228   if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
228      printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
229      if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
230         printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
229231
230232   return;
231233}
r21051r21052
240242   if(ACCESSING_BITS_0_7)
241243      res |= critcrsh_ioga_r(space,offset*4+3);
242244   if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
243      if(!space.debugger_access())
244         printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
245      if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
246         if(!space.debugger_access())
247            printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
245248
246249   return res;
247250}
r21051r21052
256259   if(ACCESSING_BITS_0_7)
257260      res |= stvmp_ioga_r(space,offset*4+3);
258261   if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
259      if(!space.debugger_access())
260         printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
262      if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
263         if(!space.debugger_access())
264            printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
261265
262266   return res;
263267}
r21051r21052
269273   if(ACCESSING_BITS_0_7)
270274      stvmp_ioga_w(space,offset*4+3,data);
271275   if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
272      if(!space.debugger_access())
273         printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
276      if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
277         if(!space.debugger_access())
278            printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
274279}
275280
276281READ32_MEMBER(saturn_state::magzun_ioga_r32)
r21051r21052
283288   if(ACCESSING_BITS_0_7)
284289      res |= magzun_ioga_r(space,offset*4+3);
285290   if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
286      if(!space.debugger_access())
287         printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
291      if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
292         if(!space.debugger_access())
293            printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
288294
289295   return res;
290296}
r21051r21052
296302   if(ACCESSING_BITS_0_7)
297303      magzun_ioga_w(space,offset*4+3,data);
298304   if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
299      if(!space.debugger_access())
300         printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
305      if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
306         if(!space.debugger_access())
307            printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
301308}
302309
303310/*

Previous 199869 Revisions Next


© 1997-2024 The MAME Team