mirror of
https://github.com/holub/mame
synced 2025-05-22 13:48:55 +03:00
Fixed RTL opcode in-bank issue in the G65816 CPU core [Angelo Salese]
This commit is contained in:
parent
14c8e0bfbb
commit
85283ac532
@ -210,7 +210,7 @@ INLINE uint g65816i_pull_24(g65816i_cpu_struct *cpustate)
|
|||||||
{
|
{
|
||||||
uint res = g65816i_pull_8(cpustate);
|
uint res = g65816i_pull_8(cpustate);
|
||||||
res |= g65816i_pull_8(cpustate) << 8;
|
res |= g65816i_pull_8(cpustate) << 8;
|
||||||
return res | (g65816i_pull_8(cpustate) << 16);
|
return ((res + 1) & 0xffff) | (g65816i_pull_8(cpustate) << 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1505,7 +1505,7 @@ INLINE uint EA_SIY(g65816i_cpu_struct *cpustate) {return MAKE_UINT_16(read_16_
|
|||||||
#undef OP_RTL
|
#undef OP_RTL
|
||||||
#define OP_RTL() \
|
#define OP_RTL() \
|
||||||
CLK(6); \
|
CLK(6); \
|
||||||
g65816i_jump_24(cpustate, g65816i_pull_24(cpustate)+1)
|
g65816i_jump_24(cpustate, g65816i_pull_24(cpustate))
|
||||||
|
|
||||||
/* M6502 Return from Subroutine */
|
/* M6502 Return from Subroutine */
|
||||||
/* Unusual behavior: Gets PC and increments */
|
/* Unusual behavior: Gets PC and increments */
|
||||||
|
Loading…
Reference in New Issue
Block a user