Home
last modified time | relevance | path

Searched refs:sh2 (Results 1 – 25 of 1987) sorted by relevance

12345678910>>...80

/dports/games/libretro-picodrive/picodrive-600894e/cpu/sh2/mame/
H A Dsh2.c327 sh2->ea = sh2->gbr + sh2->r[0]; in ANDM()
866 sh2->pc = sh2->ea = sh2->r[m]; in JMP()
875 sh2->pc = sh2->ea = sh2->r[m]; in JSR()
913 sh2->gbr = RL( sh2, sh2->ea ); in LDCMGBR()
922 sh2->vbr = RL( sh2, sh2->ea ); in LDCMVBR()
965 sh2->pr = RL( sh2, sh2->ea ); in LDSMPR()
1122 WL( sh2, sh2->ea, sh2->r[m] ); in MOVLS()
1486 sh2->pc = RL( sh2, sh2->ea ); in RTE()
1499 sh2->pc = sh2->ea = sh2->pr; in RTS()
1609 WL( sh2, sh2->ea, sh2->sr ); in STCMSR()
[all …]
H A Dsh2pico.c27 sh2->sr |= sh2->icount << 12; \
37 sh2->sr |= sh2->icount << 12; \
123 sh2->ppc = sh2->delay; in sh2_execute_interpreter()
129 WL(sh2, sh2->r[15], sh2->sr); in sh2_execute_interpreter()
131 WL(sh2, sh2->r[15], sh2->pc); in sh2_execute_interpreter()
132 sh2->pc = RL(sh2, sh2->vbr + 6 * 4); in sh2_execute_interpreter()
141 sh2->ppc = sh2->pc; in sh2_execute_interpreter()
170 if (sh2->test_irq && !sh2->delay && sh2->pending_level > ((sh2->sr >> 4) & 0x0f)) in sh2_execute_interpreter()
234 sh2->ppc = sh2->delay; in sh2_execute_interpreter()
240 sh2->ppc = sh2->pc; in sh2_execute_interpreter()
[all …]
/dports/games/kodi-addon-game.libretro.picodrive/game.libretro.picodrive-1.97.0.19-Matrix/depends/common/picodrive/cpu/sh2/mame/
H A Dsh2.c327 sh2->ea = sh2->gbr + sh2->r[0]; in ANDM()
866 sh2->pc = sh2->ea = sh2->r[m]; in JMP()
875 sh2->pc = sh2->ea = sh2->r[m]; in JSR()
913 sh2->gbr = RL( sh2, sh2->ea ); in LDCMGBR()
922 sh2->vbr = RL( sh2, sh2->ea ); in LDCMVBR()
965 sh2->pr = RL( sh2, sh2->ea ); in LDSMPR()
1122 WL( sh2, sh2->ea, sh2->r[m] ); in MOVLS()
1486 sh2->pc = RL( sh2, sh2->ea ); in RTE()
1499 sh2->pc = sh2->ea = sh2->pr; in RTS()
1609 WL( sh2, sh2->ea, sh2->sr ); in STCMSR()
[all …]
H A Dsh2pico.c27 sh2->sr |= sh2->icount << 12; \
37 sh2->sr |= sh2->icount << 12; \
123 sh2->ppc = sh2->delay; in sh2_execute_interpreter()
129 WL(sh2, sh2->r[15], sh2->sr); in sh2_execute_interpreter()
131 WL(sh2, sh2->r[15], sh2->pc); in sh2_execute_interpreter()
132 sh2->pc = RL(sh2, sh2->vbr + 6 * 4); in sh2_execute_interpreter()
141 sh2->ppc = sh2->pc; in sh2_execute_interpreter()
170 if (sh2->test_irq && !sh2->delay && sh2->pending_level > ((sh2->sr >> 4) & 0x0f)) in sh2_execute_interpreter()
234 sh2->ppc = sh2->delay; in sh2_execute_interpreter()
240 sh2->ppc = sh2->pc; in sh2_execute_interpreter()
[all …]
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/cpu/sh2/
H A Dsh2.c476 sh2.ea = sh2.gbr + sh2.r[0]; in ANDM()
996 sh2.pc = sh2.ea = sh2.r[m]; in JMP()
1004 sh2.pc = sh2.ea = sh2.r[m]; in JSR()
1330 sh2.ea = sh2.r[n] + sh2.r[0]; in MOVBS0()
1337 sh2.ea = sh2.r[n] + sh2.r[0]; in MOVWS0()
1344 sh2.ea = sh2.r[n] + sh2.r[0]; in MOVLS0()
1351 sh2.ea = sh2.r[m] + sh2.r[0]; in MOVBL0()
1568 sh2.ea = sh2.gbr + sh2.r[0]; in ORM()
1628 sh2.pc = sh2.ea = sh2.pr; in RTS()
1930 sh2.ea = sh2.gbr + sh2.r[0]; in TSTM()
[all …]
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/cpu/sh2/
H A Dsh2.c484 sh2.ea = sh2.gbr + sh2.r[0]; in ANDM()
1004 sh2.pc = sh2.ea = sh2.r[m]; in JMP()
1012 sh2.pc = sh2.ea = sh2.r[m]; in JSR()
1338 sh2.ea = sh2.r[n] + sh2.r[0]; in MOVBS0()
1345 sh2.ea = sh2.r[n] + sh2.r[0]; in MOVWS0()
1352 sh2.ea = sh2.r[n] + sh2.r[0]; in MOVLS0()
1359 sh2.ea = sh2.r[m] + sh2.r[0]; in MOVBL0()
1576 sh2.ea = sh2.gbr + sh2.r[0]; in ORM()
1636 sh2.pc = sh2.ea = sh2.pr; in RTS()
1938 sh2.ea = sh2.gbr + sh2.r[0]; in TSTM()
[all …]
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/cpu/sh2/
H A Dsh2.cpp944 sh2->ea = sh2->gbr + sh2->r[0]; in ANDM()
1473 sh2->pc = sh2->ea = sh2->r[m]; in JMP()
1481 sh2->pc = sh2->ea = sh2->r[m]; in JSR()
1807 sh2->ea = sh2->r[n] + sh2->r[0]; in MOVBS0()
1814 sh2->ea = sh2->r[n] + sh2->r[0]; in MOVWS0()
1821 sh2->ea = sh2->r[n] + sh2->r[0]; in MOVLS0()
1828 sh2->ea = sh2->r[m] + sh2->r[0]; in MOVBL0()
2044 sh2->ea = sh2->gbr + sh2->r[0]; in ORM()
2105 sh2->pc = sh2->ea = sh2->pr; in RTS()
2407 sh2->ea = sh2->gbr + sh2->r[0]; in TSTM()
[all …]
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/cpu/sh2/
H A Dsh2.cpp960 sh2->ea = sh2->gbr + sh2->r[0]; in ANDM()
1489 sh2->pc = sh2->ea = sh2->r[m]; in JMP()
1497 sh2->pc = sh2->ea = sh2->r[m]; in JSR()
1823 sh2->ea = sh2->r[n] + sh2->r[0]; in MOVBS0()
1830 sh2->ea = sh2->r[n] + sh2->r[0]; in MOVWS0()
1837 sh2->ea = sh2->r[n] + sh2->r[0]; in MOVLS0()
1844 sh2->ea = sh2->r[m] + sh2->r[0]; in MOVBL0()
2060 sh2->ea = sh2->gbr + sh2->r[0]; in ORM()
2121 sh2->pc = sh2->ea = sh2->pr; in RTS()
2423 sh2->ea = sh2->gbr + sh2->r[0]; in TSTM()
[all …]
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/gtk/
H A Dyuish.c36 YuiSh *sh2);
40 YuiSh *sh2);
44 YuiSh *sh2);
48 YuiSh *sh2);
107 gtk_container_add (GTK_CONTAINER (sh2), sh2->vbox); in yui_sh_init()
111 gtk_box_pack_start(GTK_BOX(sh2->vbox), sh2->toolbar, FALSE, FALSE, 0); in yui_sh_init()
114 gtk_box_pack_start( GTK_BOX( sh2->vbox ), sh2->hboxmain, FALSE, FALSE, 0); in yui_sh_init()
131 sh2->view = gtk_tree_view_new_with_model(GTK_TREE_MODEL (sh2->store)); in yui_sh_init()
186 gtk_box_pack_start( GTK_BOX( sh2->vboxBp ), sh2->bpList, TRUE, TRUE, 0 ); in yui_sh_init()
324 YuiSh * sh2; in yui_sh_new() local
[all …]
/dports/games/libretro-picodrive/picodrive-600894e/cpu/sh2/
H A Dsh2.c23 memset(sh2, 0, sizeof(*sh2)); in sh2_init()
45 sh2->pc = p32x_sh2_read32(0, sh2); in sh2_reset()
46 sh2->r[15] = p32x_sh2_read32(4, sh2); in sh2_reset()
47 sh2->sr = I; in sh2_reset()
57 p32x_sh2_write32(sh2->r[15], sh2->sr, sh2); /* push SR onto stack */ in sh2_do_irq()
59 p32x_sh2_write32(sh2->r[15], sh2->pc, sh2); /* push PC onto stack */ in sh2_do_irq()
62 sh2->sr = (sh2->sr & ~I) | (level << 4); in sh2_do_irq()
65 sh2->pc = p32x_sh2_read32(sh2->vbr + vector * 4, sh2); in sh2_do_irq()
85 int vector = sh2->irq_callback(sh2, level); in sh2_irl_irq()
87 sh2->m68krcycles_done += C_SH2_TO_M68K(*sh2, 13); in sh2_irl_irq()
[all …]
H A Dsh2.h79 int sh2_init(SH2 *sh2, int is_slave, SH2 *other_sh2);
80 void sh2_finish(SH2 *sh2);
81 void sh2_reset(SH2 *sh2);
82 int sh2_irl_irq(SH2 *sh2, int level, int nested_call);
84 void sh2_do_irq(SH2 *sh2, int level, int vector);
85 void sh2_pack(const SH2 *sh2, unsigned char *buff);
86 void sh2_unpack(SH2 *sh2, const unsigned char *buff);
95 sh2->cycles_timeslice = cycles; in sh2_execute()
98 ret = sh2_execute_drc(sh2, cycles); in sh2_execute()
101 ret = sh2_execute_interpreter(sh2, cycles); in sh2_execute()
[all …]
/dports/games/kodi-addon-game.libretro.picodrive/game.libretro.picodrive-1.97.0.19-Matrix/depends/common/picodrive/cpu/sh2/
H A Dsh2.c23 memset(sh2, 0, sizeof(*sh2)); in sh2_init()
45 sh2->pc = p32x_sh2_read32(0, sh2); in sh2_reset()
46 sh2->r[15] = p32x_sh2_read32(4, sh2); in sh2_reset()
47 sh2->sr = I; in sh2_reset()
57 p32x_sh2_write32(sh2->r[15], sh2->sr, sh2); /* push SR onto stack */ in sh2_do_irq()
59 p32x_sh2_write32(sh2->r[15], sh2->pc, sh2); /* push PC onto stack */ in sh2_do_irq()
62 sh2->sr = (sh2->sr & ~I) | (level << 4); in sh2_do_irq()
65 sh2->pc = p32x_sh2_read32(sh2->vbr + vector * 4, sh2); in sh2_do_irq()
85 int vector = sh2->irq_callback(sh2, level); in sh2_irl_irq()
87 sh2->m68krcycles_done += C_SH2_TO_M68K(sh2, 13); in sh2_irl_irq()
[all …]
H A Dsh2.h99 void sh2_finish(SH2 *sh2);
100 void sh2_reset(SH2 *sh2);
103 void sh2_do_irq(SH2 *sh2, int level, int vector);
104 void sh2_pack(const SH2 *sh2, unsigned char *buff);
115 sh2->run = sh2_execute_interpreter; in sh2_execute_prepare()
123 sh2->cycles_timeslice = cycles; in sh2_execute()
124 ret = sh2->run(sh2, cycles); in sh2_execute()
126 return sh2->cycles_timeslice - ret; in sh2_execute()
134 u32 REGPARM(2) p32x_sh2_read8(u32 a, SH2 *sh2);
135 u32 REGPARM(2) p32x_sh2_read16(u32 a, SH2 *sh2);
[all …]
H A Dcompiler.h1 int sh2_drc_init(SH2 *sh2);
2 void sh2_drc_finish(SH2 *sh2);
7 void sh2_drc_mem_setup(SH2 *sh2);
73 #define DRC_SAVE_SR(sh2) \ argument
74 if (likely(sh2->state & SH2_IN_DRC)) \
75 sh2->sr = (s32)_sh2_sr
77 #define DRC_RESTORE_SR(sh2) \ argument
78 if (likely(sh2->state & SH2_IN_DRC)) \
79 _sh2_sr = (s32)sh2->sr
83 #define DRC_SAVE_SR(sh2) argument
[all …]
/dports/games/kodi-addon-game.libretro.picodrive/game.libretro.picodrive-1.97.0.19-Matrix/depends/common/picodrive/pico/32x/
H A Dsh2soc.c256 memset(sh2->peri_regs, 0, sizeof(sh2->peri_regs)); // ? in sh2_peripheral_reset()
280 DRC_SAVE_SR(sh2); in sh2_peripheral_read8()
282 DRC_RESTORE_SR(sh2); in sh2_peripheral_read8()
299 DRC_SAVE_SR(sh2); in sh2_peripheral_read16()
301 DRC_RESTORE_SR(sh2); in sh2_peripheral_read16()
317 sh2->poll_cnt = 0; in sh2_peripheral_read32()
320 DRC_SAVE_SR(sh2); in sh2_peripheral_read32()
322 DRC_RESTORE_SR(sh2); in sh2_peripheral_read32()
368 a, d, sh2_pc(sh2)); in sh2_peripheral_write8()
408 a, d, sh2_pc(sh2)); in sh2_peripheral_write16()
[all …]
H A Dmemory.c126 sh2->state, sh2->state | flags); in p32x_sh2_poll_detect()
152 elprintf_sh2(sh2, EL_32X, "state: %02x->%02x", sh2->state, in p32x_sh2_poll_event()
163 sh2->poll_addr = sh2->poll_cycles = sh2->poll_cnt = 0; in p32x_sh2_poll_event()
193 int cpu = sh2 ? sh2->is_slave : -1; in sh2_poll_read()
223 int cpu = sh2 ? sh2->is_slave : -1; in sh2_poll_write()
270 DRC_SAVE_SR(sh2); in p32x_sh2_poll_memory16()
785 return p32x_pwm_read16(a, sh2, sh2_cycles_done_m68k(sh2)); in p32x_sh2reg_read16()
963 p32x_pwm_write16(a, d, sh2, sh2_cycles_done_m68k(sh2)); in p32x_sh2reg_write16()
1917 wh(a, d, sh2); in p32x_sh2_write8()
1926 wh(a, d, sh2); in p32x_sh2_write16()
[all …]
H A D32x.c19 if (sh2->pending_irl > sh2->pending_int_irq) { in sh2_irq_cb()
21 level, sh2_pc(sh2)); in sh2_irq_cb()
22 return 64 + sh2->pending_irl / 2; in sh2_irq_cb()
25 level, sh2->pending_int_vector, sh2_pc(sh2)); in sh2_irq_cb()
27 sh2->pending_level = sh2->pending_irl; in sh2_irq_cb()
28 return sh2->pending_int_vector; in sh2_irq_cb()
277 if (sh2 != NULL) in p32x_schedule_hint()
381 sh2->state |= SH2_STATE_RUN; in run_sh2()
384 sh2->m68krcycles_done, cycles, sh2->pc); in run_sh2()
388 sh2->m68krcycles_done += C_SH2_TO_M68K(sh2, done); in run_sh2()
[all …]
/dports/games/libretro-picodrive/picodrive-600894e/pico/32x/
H A Dsh2soc.c78 dmac_te_irq(sh2, chan); in dmac_transfer_complete()
216 memset(sh2->peri_regs, 0, sizeof(sh2->peri_regs)); // ? in sh2_peripheral_reset()
237 a | ~0x1ff, d, sh2_pc(sh2)); in sh2_peripheral_read8()
258 d = sh2->peri_regs[a / 4]; in sh2_peripheral_read32()
306 a, d, sh2_pc(sh2)); in sh2_peripheral_write8()
315 sci_trigger(sh2, r); in sh2_peripheral_write8()
323 sci_trigger(sh2, r); in sh2_peripheral_write8()
343 a, d, sh2_pc(sh2)); in sh2_peripheral_write16()
363 u32 *r = sh2->peri_regs; in sh2_peripheral_write32()
367 a, d, sh2_pc(sh2)); in sh2_peripheral_write32()
[all …]
H A Dmemory.c107 if (a == sh2->poll_addr && sh2->poll_cycles - cycles_left <= 10) { in sh2_poll_detect()
111 sh2->state, sh2->state | flags); in sh2_poll_detect()
121 sh2->poll_addr = a; in sh2_poll_detect()
128 elprintf_sh2(sh2, EL_32X, "state: %02x->%02x", sh2->state, in p32x_sh2_poll_event()
138 sh2->poll_addr = sh2->poll_cycles = sh2->poll_cnt = 0; in p32x_sh2_poll_event()
149 p32x_sync_other_sh2(sh2, sh2->m68krcycles_done + cycles / 3); in sh2s_sync_on_read()
602 return p32x_pwm_read16(a, sh2, sh2_cycles_done_m68k(sh2)); in p32x_sh2reg_read16()
730 p32x_pwm_write16(a, d, sh2, sh2_cycles_done_m68k(sh2)); in p32x_sh2reg_write16()
1546 return (handler(a, sh2) << 16) | handler(a + 2, sh2); in p32x_sh2_read32()
1555 wh(a, d, sh2); in p32x_sh2_write8()
[all …]
H A D32x.c19 if (sh2->pending_irl > sh2->pending_int_irq) { in sh2_irq_cb()
21 level, sh2_pc(sh2)); in sh2_irq_cb()
22 return 64 + sh2->pending_irl / 2; in sh2_irq_cb()
25 level, sh2->pending_int_vector, sh2_pc(sh2)); in sh2_irq_cb()
27 sh2->pending_level = sh2->pending_irl; in sh2_irq_cb()
28 return sh2->pending_int_vector; in sh2_irq_cb()
274 if (sh2 != NULL) in p32x_schedule_hint()
374 sh2->state |= SH2_STATE_RUN; in run_sh2()
377 sh2->m68krcycles_done, cycles, sh2->pc); in run_sh2()
381 sh2->m68krcycles_done += C_SH2_TO_M68K(*sh2, done); in run_sh2()
[all …]
H A Dpwm.c40 p32x_trigger_irq(sh2, m68k_cycles, P32XI_PWM); in do_pwm_irq()
58 #define consume_fifo(sh2, m68k_cycles) { \ argument
107 do_pwm_irq(sh2, m68k_cycles); in consume_fifo_do()
143 void p32x_pwm_schedule_sh2(SH2 *sh2) in p32x_pwm_schedule_sh2() argument
145 int after = p32x_pwm_schedule_(sh2, sh2_cycles_done_m68k(sh2)); in p32x_pwm_schedule_sh2()
150 void p32x_pwm_sync_to_sh2(SH2 *sh2) in p32x_pwm_sync_to_sh2() argument
152 int m68k_cycles = sh2_cycles_done_m68k(sh2); in p32x_pwm_sync_to_sh2()
153 consume_fifo(sh2, m68k_cycles); in p32x_pwm_sync_to_sh2()
166 consume_fifo(sh2, m68k_cycles); in p32x_pwm_read16()
197 SH2 *sh2, unsigned int m68k_cycles) in p32x_pwm_write16() argument
[all …]
/dports/games/kodi-addon-game.libretro.picodrive/game.libretro.picodrive-1.97.0.19-Matrix/depends/common/picodrive/pico/
H A Dpico_int.h221 (sh2)->cycles_timeslice -= (sh2)->icount - (after_); \
225 # define sh2_cycles_left(sh2) (sh2)->icount argument
226 # define sh2_burn_cycles(sh2, n) (sh2)->icount -= n argument
227 # define sh2_pc(sh2) (sh2)->ppc argument
236 # define sh2_cycles_left(sh2) ((signed int)(sh2)->sr >> 12) argument
237 # define sh2_burn_cycles(sh2, n) (sh2)->sr -= ((n) << 12) argument
238 # define sh2_pc(sh2) (sh2)->pc argument
241 #define sh2_cycles_done(sh2) (unsigned)((int)(sh2)->cycles_timeslice - sh2_cycles_left(sh2)) argument
243 (unsigned)(C_M68K_TO_SH2(sh2, (sh2)->m68krcycles_done) + sh2_cycles_done(sh2))
245 (unsigned)((sh2)->m68krcycles_done + C_SH2_TO_M68K(sh2, sh2_cycles_done(sh2)))
[all …]
/dports/games/libretro-picodrive/picodrive-600894e/pico/
H A Dpico_int.h223 (sh2)->cycles_timeslice -= (sh2)->icount - (after_); \
227 # define sh2_cycles_left(sh2) (sh2)->icount argument
228 # define sh2_burn_cycles(sh2, n) (sh2)->icount -= n argument
229 # define sh2_pc(sh2) (sh2)->ppc argument
239 # define sh2_cycles_left(sh2) ((signed int)(sh2)->sr >> 12) argument
240 # define sh2_burn_cycles(sh2, n) (sh2)->sr -= ((n) << 12) argument
241 # define sh2_pc(sh2) (sh2)->pc argument
244 #define sh2_cycles_done(sh2) ((int)(sh2)->cycles_timeslice - sh2_cycles_left(sh2)) argument
246 ((sh2)->m68krcycles_done * 3 + sh2_cycles_done(sh2))
248 ((sh2)->m68krcycles_done + (sh2_cycles_done(sh2) / 3))
[all …]
/dports/games/burrtools/burrtools-0.6.3/src/lib/
H A Dmovementcache_0.cpp39 dx += (sh1->getHx() - sh2->getHx()); in moCalcValues()
40 dy += (sh1->getHy() - sh2->getHy()); in moCalcValues()
41 dz += (sh1->getHz() - sh2->getHz()); in moCalcValues()
48 x1i = max(sh1->boundX1(), sh2->boundX1() + dx); in moCalcValues()
49 x2i = min(sh1->boundX2(), sh2->boundX2() + dx); in moCalcValues()
50 y1i = max(sh1->boundY1(), sh2->boundY1() + dy); in moCalcValues()
51 y2i = min(sh1->boundY2(), sh2->boundY2() + dy); in moCalcValues()
52 z1i = max(sh1->boundZ1(), sh2->boundZ1() + dz); in moCalcValues()
53 z2i = min(sh1->boundZ2(), sh2->boundZ2() + dz); in moCalcValues()
58 x2u = max(sh1->boundX2(), sh2->boundX2() + dx); in moCalcValues()
[all …]
H A Dmovementcache_1.cpp74 dx += (sh1->getHx() - sh2->getHx()); in moCalcValues()
75 dy += (sh1->getHy() - sh2->getHy()); in moCalcValues()
76 dz += (sh1->getHz() - sh2->getHz()); in moCalcValues()
96 bt_assert(sh2->isEmpty2(xp, yp, zp)); in moCalcValues()
105 if (dirs[dir][0] > 0 && xp > (int)sh2->boundX2()+2) break; in moCalcValues()
106 if (dirs[dir][0] < 0 && xp < (int)sh2->boundX1()-2) break; in moCalcValues()
107 if (dirs[dir][1] > 0 && yp > (int)sh2->boundY2()+2) break; in moCalcValues()
108 if (dirs[dir][1] < 0 && yp < (int)sh2->boundY1()-2) break; in moCalcValues()
109 if (dirs[dir][2] > 0 && zp > (int)sh2->boundZ2()+2) break; in moCalcValues()
110 if (dirs[dir][2] < 0 && zp < (int)sh2->boundZ1()-2) break; in moCalcValues()
[all …]

12345678910>>...80