src/emu/cpu/g65816/g65816op.h
| r7774 | r7775 | |
| 210 | 210 | { |
| 211 | 211 | uint res = g65816i_pull_8(cpustate); |
| 212 | 212 | res |= g65816i_pull_8(cpustate) << 8; |
| 213 | | return res | (g65816i_pull_8(cpustate) << 16); |
| 213 | return ((res + 1) & 0xffff) | (g65816i_pull_8(cpustate) << 16); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | |
| r7774 | r7775 | |
| 1505 | 1505 | #undef OP_RTL |
| 1506 | 1506 | #define OP_RTL() \ |
| 1507 | 1507 | CLK(6); \ |
| 1508 | | g65816i_jump_24(cpustate, g65816i_pull_24(cpustate)+1) |
| 1508 | g65816i_jump_24(cpustate, g65816i_pull_24(cpustate)) |
| 1509 | 1509 | |
| 1510 | 1510 | /* M6502 Return from Subroutine */ |
| 1511 | 1511 | /* Unusual behavior: Gets PC and increments */ |