src/emu/cpu/sh4/sh4.c
| r3048 | r3049 | |
| 3898 | 3898 | static TIMER_CALLBACK( sh4_timer_callback ) |
| 3899 | 3899 | { |
| 3900 | 3900 | static const UINT16 tuni[] = { SH4_INTC_TUNI0, SH4_INTC_TUNI1, SH4_INTC_TUNI2 }; |
| 3901 | | int which = (int)ptr; |
| 3901 | int which = (int)(FPTR)ptr; |
| 3902 | 3902 | int cpunum = param; |
| 3903 | 3903 | int idx = tcr[which]; |
| 3904 | 3904 | |
| r3048 | r3049 | |
| 4654 | 4654 | |
| 4655 | 4655 | for (i=0; i<3; i++) |
| 4656 | 4656 | { |
| 4657 | | sh4.timer[i] = timer_alloc(sh4_timer_callback, (void*)i); |
| 4657 | sh4.timer[i] = timer_alloc(sh4_timer_callback, (void*)(FPTR)i); |
| 4658 | 4658 | timer_adjust_oneshot(sh4.timer[i], attotime_never, 0); |
| 4659 | 4659 | } |
| 4660 | 4660 | |
src/emu/machine/6840ptm.c
| r3048 | r3049 | |
| 397 | 397 | |
| 398 | 398 | for (i = 0; i < 3; i++) |
| 399 | 399 | { |
| 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); |
| 401 | 401 | timer_enable(ptm[which].timer[i], FALSE); |
| 402 | 402 | } |
| 403 | 403 | |
| r3048 | r3049 | |
| 669 | 669 | reload_count(machine, which, idx); |
| 670 | 670 | } |
| 671 | 671 | |
| 672 | | static TIMER_CALLBACK( ptm6840_timer_cb ) { ptm6840_timeout(machine, param, (int)ptr); } |
| 672 | static TIMER_CALLBACK( ptm6840_timer_cb ) { ptm6840_timeout(machine, param, (int)(FPTR)ptr); } |
| 673 | 673 | |
| 674 | 674 | /////////////////////////////////////////////////////////////////////////// |
| 675 | 675 | // // |