| Previous | 15994 Revisions | Next |
| r3102 Monday 25th August, 2008 at 19:34:43 UTC by Roberto Zandonà |
|---|
| [C65] and [M4510] : fix TSY instruction (bug #1244) |
| [src/emu/cpu/m6502] | ops4510.h opsce02.h |
| r3101 | r3102 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | #undef NOP |
| 40 | 40 | #define NOP \ |
| 41 | m4510.interrupt_inhibit = 0; \ | |
| 42 | /* SEI */ | |
| 41 | m4510.interrupt_inhibit = 0; | |
| 43 | 42 | |
| 44 | 43 | /* c65 docu says transfer of axyz to the mapper register |
| 45 | 44 | so no readback!? */ |
| 46 | 45 | #define MAP \ |
| 47 | m4510.interrupt_inhibit = | |
| 46 | m4510.interrupt_inhibit = 1; \ | |
| 48 | 47 | m4510.low=m4510.a|(m4510.x<<8); \ |
| 49 | 48 | m4510.high=m4510.y|(m4510.z<<8); \ |
| 50 | 49 | m4510.mem[0]=(m4510.low&0x1000) ? (m4510.low&0xfff)<<8:0; \ |
| r3101 | r3102 | |
|---|---|---|
| 954 | 954 | * TSY Transfer stack pointer to index y |
| 955 | 955 | ***************************************************************/ |
| 956 | 956 | #define TSY \ |
| 957 | Y = SP | |
| 957 | Y = SPH; \ | |
| 958 | 958 | SET_NZ(Y) |
| 959 | 959 | |
| 960 | 960 | /* 65ce02 ****************************************************** |
| Previous | 15994 Revisions | Next |