| 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 |
| r1434 | r1435 | |
|---|---|---|
| 93 | 93 | * extra cycle if page boundary is crossed |
| 94 | 94 | ***************************************************************/ |
| 95 | 95 | #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 | } \ | |
| 106 | 108 | } |
| 107 | 109 | |
| 108 | 110 | /*************************************************************** |
| r1434 | r1435 | |
|---|---|---|
| 42 | 42 | OP(c0) { int tmp; RD_IMM; CPY; } /* 2 CPY IMM */ |
| 43 | 43 | OP(e0) { int tmp; RD_IMM; CPX; } /* 2 CPX IMM */ |
| 44 | 44 | |
| 45 | OP(10) { int tmp; BPL; } /* 2-4 BPL REL */ | |
| 46 | OP(30) { int tmp; BMI; } /* 2-4 BMI REL */ | |
| 47 | OP(50) { int tmp; BVC; } /* 2-4 BVC REL */ | |
| 48 | OP(70) { int tmp; BVS; } /* 2-4 BVS REL */ | |
| 49 | OP(90) { int tmp; BCC; } /* 2-4 BCC REL */ | |
| 50 | OP(b0) { int tmp; BCS; } /* 2-4 BCS REL */ | |
| 51 | OP(d0) { int tmp; BNE; } /* 2-4 BNE REL */ | |
| 52 | OP(f0) { int tmp; BEQ; } /* 2-4 BEQ REL */ | |
| 45 | OP(10) { BPL; } /* 2-4 BPL REL */ | |
| 46 | OP(30) { BMI; } /* 2-4 BMI REL */ | |
| 47 | OP(50) { BVC; } /* 2-4 BVC REL */ | |
| 48 | OP(70) { BVS; } /* 2-4 BVS REL */ | |
| 49 | OP(90) { BCC; } /* 2-4 BCC REL */ | |
| 50 | OP(b0) { BCS; } /* 2-4 BCS REL */ | |
| 51 | OP(d0) { BNE; } /* 2-4 BNE REL */ | |
| 52 | OP(f0) { BEQ; } /* 2-4 BEQ REL */ | |
| 53 | 53 | |
| 54 | 54 | OP(01) { int tmp; RD_IDX; ORA; } /* 6 ORA IDX */ |
| 55 | 55 | OP(21) { int tmp; RD_IDX; AND; } /* 6 AND IDX */ |
| r1434 | r1435 | |
|---|---|---|
| 65 | 65 | - Added a general 74145 BCD-to-decimal decoder emulation, currently used |
| 66 | 66 | by the SYM-1 driver. [Dirk Best] |
| 67 | 67 | |
| 68 | - Fixed M65C02 optimization [Peter Trauner] | |
| 68 | 69 | |
| 69 | 70 | |
| 71 | ||
| 70 | 72 | 0.121 |
| 71 | 73 | |
| 72 | 74 | New System Drivers Supported (in no particular order): |
| Previous | 15994 Revisions | Next |