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

src/emu/cpu/m6502/ops4510.h
r3101r3102
3838
3939#undef NOP
4040#define NOP       \
41  m4510.interrupt_inhibit = 0; \
42  /* SEI */
41  m4510.interrupt_inhibit = 0;
4342
4443/* c65 docu says transfer of axyz to the mapper register
4544   so no readback!? */
4645#define MAP                   \
47  m4510.interrupt_inhibit = 0;         \
46  m4510.interrupt_inhibit = 1;         \
4847  m4510.low=m4510.a|(m4510.x<<8); \
4948  m4510.high=m4510.y|(m4510.z<<8); \
5049  m4510.mem[0]=(m4510.low&0x1000) ?  (m4510.low&0xfff)<<8:0;  \
src/emu/cpu/m6502/opsce02.h
r3101r3102
954954 * TSY  Transfer stack pointer to index y
955955 ***************************************************************/
956956#define TSY                              \
957   Y = SPL;                           \
957   Y = SPH;                           \
958958   SET_NZ(Y)
959959
960960/* 65ce02 ******************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team