Previous 15994 Revisions Next

r7775 Saturday 10th April, 2010 at 15:50:02 UTC by Angelo Salese
Fixed RTL opcode in-bank issue in the G65816 CPU core, fixes at least Shaq Fu and Kishin Douji Zenki 3
[src/emu/cpu/g65816]g65816op.h

src/emu/cpu/g65816/g65816op.h
r7774r7775
210210{
211211   uint res = g65816i_pull_8(cpustate);
212212   res |= g65816i_pull_8(cpustate) << 8;
213   return res | (g65816i_pull_8(cpustate) << 16);
213   return ((res + 1) & 0xffff) | (g65816i_pull_8(cpustate) << 16);
214214}
215215
216216
r7774r7775
15051505#undef OP_RTL
15061506#define OP_RTL()                                             \
15071507         CLK(6);                                             \
1508         g65816i_jump_24(cpustate, g65816i_pull_24(cpustate)+1)
1508         g65816i_jump_24(cpustate, g65816i_pull_24(cpustate))
15091509
15101510/* M6502   Return from Subroutine */
15111511/* Unusual behavior: Gets PC and increments */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team