Previous 15994 Revisions Next

r1435 Tuesday 25th December, 2007 at 17:57:49 UTC by Nathan Woods
Fixed M65C02 optimization [Peter Trauner]
[docs]messnew.txt
[src/emu/cpu/m6502]ops02.h t6502.c

src/emu/cpu/m6502/ops02.h
r1434r1435
9393 *  extra cycle if page boundary is crossed
9494 ***************************************************************/
9595#define BRA(cond)                                    \
96   tmp = RDOPARG();                                 \
97   if (cond)                                       \
98   {                                             \
99      RDMEM(PCW);                                    \
100      EAW = PCW + (signed char)tmp;                     \
101      if ( EAH != PCH ) {                              \
102         RDMEM( (PCH << 8 ) | EAL) ;                     \
103      }                                          \
104      PCD = EAD;                                    \
105      CHANGE_PC;                                    \
96   {                                                \
97      INT8 tmp2 = RDOPARG();                              \
98      if (cond)                                       \
99      {                                             \
100         RDMEM(PCW);                                    \
101         EAW = PCW + (signed char)tmp2;                     \
102         if ( EAH != PCH ) {                              \
103            RDMEM( (PCH << 8 ) | EAL) ;                     \
104         }                                          \
105         PCD = EAD;                                    \
106         CHANGE_PC;                                    \
107      }                                             \
106108   }
107109
108110/***************************************************************
src/emu/cpu/m6502/t6502.c
r1434r1435
4242OP(c0) { int tmp; RD_IMM; CPY;                 } /* 2 CPY IMM */
4343OP(e0) { int tmp; RD_IMM; CPX;                 } /* 2 CPX IMM */
4444
45OP(10) { int tmp; BPL;                         } /* 2-4 BPL REL */
46OP(30) { int tmp; BMI;                         } /* 2-4 BMI REL */
47OP(50) { int tmp; BVC;                         } /* 2-4 BVC REL */
48OP(70) { int tmp; BVS;                         } /* 2-4 BVS REL */
49OP(90) { int tmp; BCC;                         } /* 2-4 BCC REL */
50OP(b0) { int tmp; BCS;                         } /* 2-4 BCS REL */
51OP(d0) { int tmp; BNE;                         } /* 2-4 BNE REL */
52OP(f0) { int tmp; BEQ;                         } /* 2-4 BEQ REL */
45OP(10) { BPL;                                  } /* 2-4 BPL REL */
46OP(30) { BMI;                                  } /* 2-4 BMI REL */
47OP(50) { BVC;                                  } /* 2-4 BVC REL */
48OP(70) { BVS;                                  } /* 2-4 BVS REL */
49OP(90) { BCC;                                  } /* 2-4 BCC REL */
50OP(b0) { BCS;                                  } /* 2-4 BCS REL */
51OP(d0) { BNE;                                  } /* 2-4 BNE REL */
52OP(f0) { BEQ;                                  } /* 2-4 BEQ REL */
5353
5454OP(01) { int tmp; RD_IDX; ORA;                 } /* 6 ORA IDX */
5555OP(21) { int tmp; RD_IDX; AND;                 } /* 6 AND IDX */
docs/messnew.txt
r1434r1435
6565- Added a general 74145 BCD-to-decimal decoder emulation, currently used
6666  by the SYM-1 driver.  [Dirk Best]
6767
68- Fixed M65C02 optimization  [Peter Trauner]
6869
6970
71
70720.121
7173
7274New System Drivers Supported (in no particular order):

Previous 15994 Revisions Next


© 1998-2018 The MESS Team