Previous 15994 Revisions Next

r3049 Saturday 16th August, 2008 at 16:18:52 UTC by R. Belmont
64-bit GCC fixes from MAME.
[src/emu/cpu/sh4]sh4.c
[src/emu/machine]6840ptm.c
[src/mame/drivers]megadriv.c

src/mame/drivers/megadriv.c
r3048r3049
14081408
14091409static TIMER_CALLBACK( io_timeout_timer_callback )
14101410{
1411   io_stage[(int)ptr] = -1;
1411   io_stage[(int)(FPTR)ptr] = -1;
14121412}
14131413
14141414static void init_megadri6_io(void)
r3048r3049
14171417
14181418   for (i=0; i<3; i++)
14191419   {
1420      io_timeout[i] = timer_alloc(io_timeout_timer_callback, (void*)i);
1420      io_timeout[i] = timer_alloc(io_timeout_timer_callback, (void*)(FPTR)i);
14211421      io_stage[i] = -1;
14221422   }
14231423}
src/emu/cpu/sh4/sh4.c
r3048r3049
38983898static TIMER_CALLBACK( sh4_timer_callback )
38993899{
39003900   static const UINT16 tuni[] = { SH4_INTC_TUNI0, SH4_INTC_TUNI1, SH4_INTC_TUNI2 };
3901   int which = (int)ptr;
3901   int which = (int)(FPTR)ptr;
39023902   int cpunum = param;
39033903   int idx = tcr[which];
39043904
r3048r3049
46544654
46554655   for (i=0; i<3; i++)
46564656   {
4657      sh4.timer[i] = timer_alloc(sh4_timer_callback, (void*)i);
4657      sh4.timer[i] = timer_alloc(sh4_timer_callback, (void*)(FPTR)i);
46584658      timer_adjust_oneshot(sh4.timer[i], attotime_never, 0);
46594659   }
46604660
src/emu/machine/6840ptm.c
r3048r3049
397397
398398   for (i = 0; i < 3; i++)
399399   {
400      ptm[which].timer[i] = timer_alloc(ptm6840_timer_cb, (void*)i);
400      ptm[which].timer[i] = timer_alloc(ptm6840_timer_cb, (void*)(FPTR)i);
401401      timer_enable(ptm[which].timer[i], FALSE);
402402   }
403403
r3048r3049
669669   reload_count(machine, which, idx);
670670}
671671
672static TIMER_CALLBACK( ptm6840_timer_cb ) { ptm6840_timeout(machine, param, (int)ptr); }
672static TIMER_CALLBACK( ptm6840_timer_cb ) { ptm6840_timeout(machine, param, (int)(FPTR)ptr); }
673673
674674///////////////////////////////////////////////////////////////////////////
675675//                                                                       //

Previous 15994 Revisions Next


© 1998-2018 The MESS Team