add illegal opcode duplicates

This commit is contained in:
Michaël Banaan Ananas 2011-03-06 15:18:39 +00:00
parent 14dcfcc0cb
commit 1a8897d524
2 changed files with 36 additions and 36 deletions

View File

@ -35,9 +35,9 @@ OP_HANDLER( neg_di )
WM(EAD,r); WM(EAD,r);
} }
/* $01 ILLEGAL */ /* $01 ILLEGAL, same as $00 */
/* $02 ILLEGAL */ /* $02 ILLEGAL, same as $03 */
/* $03 COM direct -**01 */ /* $03 COM direct -**01 */
OP_HANDLER( com_di ) OP_HANDLER( com_di )
@ -63,7 +63,7 @@ OP_HANDLER( lsr_di )
WM(EAD,t); WM(EAD,t);
} }
/* $05 ILLEGAL */ /* $05 ILLEGAL, same as $04 */
/* $06 ROR direct -**-* */ /* $06 ROR direct -**-* */
OP_HANDLER( ror_di ) OP_HANDLER( ror_di )
@ -123,7 +123,7 @@ OP_HANDLER( dec_di )
WM(EAD,t); WM(EAD,t);
} }
/* $0B ILLEGAL */ /* $0B ILLEGAL, same as $0A */
/* $OC INC direct -***- */ /* $OC INC direct -***- */
OP_HANDLER( inc_di ) OP_HANDLER( inc_di )
@ -785,9 +785,9 @@ OP_HANDLER( nega )
A = r; A = r;
} }
/* $41 ILLEGAL */ /* $41 ILLEGAL, same as $40 */
/* $42 ILLEGAL */ /* $42 ILLEGAL, same as $43 */
/* $43 COMA inherent -**01 */ /* $43 COMA inherent -**01 */
OP_HANDLER( coma ) OP_HANDLER( coma )
@ -807,7 +807,7 @@ OP_HANDLER( lsra )
SET_Z8(A); SET_Z8(A);
} }
/* $45 ILLEGAL */ /* $45 ILLEGAL, same as $44 */
/* $46 RORA inherent -**-* */ /* $46 RORA inherent -**-* */
OP_HANDLER( rora ) OP_HANDLER( rora )
@ -858,7 +858,7 @@ OP_HANDLER( deca )
SET_FLAGS8D(A); SET_FLAGS8D(A);
} }
/* $4B ILLEGAL */ /* $4B ILLEGAL, same as $4A */
/* $4C INCA inherent -***- */ /* $4C INCA inherent -***- */
OP_HANDLER( inca ) OP_HANDLER( inca )
@ -875,7 +875,7 @@ OP_HANDLER( tsta )
SET_NZ8(A); SET_NZ8(A);
} }
/* $4E ILLEGAL */ /* $4E ILLEGAL, same as $4F */
/* $4F CLRA inherent -0100 */ /* $4F CLRA inherent -0100 */
OP_HANDLER( clra ) OP_HANDLER( clra )
@ -894,9 +894,9 @@ OP_HANDLER( negb )
B = r; B = r;
} }
/* $51 ILLEGAL */ /* $51 ILLEGAL, same as $50 */
/* $52 ILLEGAL */ /* $52 ILLEGAL, same as $53 */
/* $53 COMB inherent -**01 */ /* $53 COMB inherent -**01 */
OP_HANDLER( comb ) OP_HANDLER( comb )
@ -916,7 +916,7 @@ OP_HANDLER( lsrb )
SET_Z8(B); SET_Z8(B);
} }
/* $55 ILLEGAL */ /* $55 ILLEGAL, same as $54 */
/* $56 RORB inherent -**-* */ /* $56 RORB inherent -**-* */
OP_HANDLER( rorb ) OP_HANDLER( rorb )
@ -969,7 +969,7 @@ OP_HANDLER( decb )
SET_FLAGS8D(B); SET_FLAGS8D(B);
} }
/* $5B ILLEGAL */ /* $5B ILLEGAL, same as $5A */
/* $5C INCB inherent -***- */ /* $5C INCB inherent -***- */
OP_HANDLER( incb ) OP_HANDLER( incb )
@ -986,7 +986,7 @@ OP_HANDLER( tstb )
SET_NZ8(B); SET_NZ8(B);
} }
/* $5E ILLEGAL */ /* $5E ILLEGAL, same as $5F */
/* $5F CLRB inherent -0100 */ /* $5F CLRB inherent -0100 */
OP_HANDLER( clrb ) OP_HANDLER( clrb )
@ -1007,9 +1007,9 @@ OP_HANDLER( neg_ix )
WM(EAD,r); WM(EAD,r);
} }
/* $61 ILLEGAL */ /* $61 ILLEGAL, same as $60 */
/* $62 ILLEGAL */ /* $62 ILLEGAL, same as $63 */
/* $63 COM indexed -**01 */ /* $63 COM indexed -**01 */
OP_HANDLER( com_ix ) OP_HANDLER( com_ix )
@ -1035,7 +1035,7 @@ OP_HANDLER( lsr_ix )
WM(EAD,t); WM(EAD,t);
} }
/* $65 ILLEGAL */ /* $65 ILLEGAL, same as $64 */
/* $66 ROR indexed -**-* */ /* $66 ROR indexed -**-* */
OP_HANDLER( ror_ix ) OP_HANDLER( ror_ix )
@ -1098,7 +1098,7 @@ OP_HANDLER( dec_ix )
WM(EAD,t); WM(EAD,t);
} }
/* $6B ILLEGAL */ /* $6B ILLEGAL, same as $6A */
/* $6C INC indexed -***- */ /* $6C INC indexed -***- */
OP_HANDLER( inc_ix ) OP_HANDLER( inc_ix )
@ -1145,9 +1145,9 @@ OP_HANDLER( neg_ex )
WM(EAD,r); WM(EAD,r);
} }
/* $71 ILLEGAL */ /* $71 ILLEGAL, same as $70 */
/* $72 ILLEGAL */ /* $72 ILLEGAL, same as $73 */
/* $73 COM extended -**01 */ /* $73 COM extended -**01 */
OP_HANDLER( com_ex ) OP_HANDLER( com_ex )
@ -1167,7 +1167,7 @@ OP_HANDLER( lsr_ex )
WM(EAD,t); WM(EAD,t);
} }
/* $75 ILLEGAL */ /* $75 ILLEGAL, same as $74 */
/* $76 ROR extended -**-* */ /* $76 ROR extended -**-* */
OP_HANDLER( ror_ex ) OP_HANDLER( ror_ex )
@ -1216,7 +1216,7 @@ OP_HANDLER( dec_ex )
WM(EAD,t); WM(EAD,t);
} }
/* $7B ILLEGAL */ /* $7B ILLEGAL, same as $7A */
/* $7C INC extended -***- */ /* $7C INC extended -***- */
OP_HANDLER( inc_ex ) OP_HANDLER( inc_ex )

View File

@ -342,14 +342,14 @@ static const UINT8 index_cycle_em[256] = { /* Index Loopup cycle counts *
static const UINT8 cycles1[] = static const UINT8 cycles1[] =
{ {
/* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
/*0*/ 6, 6, 2, 6, 6, 2, 6, 6, 6, 6, 6, 2, 6, 6, 3, 6, /*0*/ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 3, 6,
/*1*/ 0, 0, 2, 4, 2, 2, 5, 9, 2, 2, 3, 2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 4, 4, 6, 7, 5, 5,
@ -364,8 +364,8 @@ static void (*const m6809_main[0x100])(m68_state_t *) = {
/* 0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, /* 0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7,
0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */ 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */
/* 0x0X */ neg_di, neg_di, illegal,com_di, lsr_di, illegal,ror_di, asr_di, /* 0x0X */ neg_di, neg_di, com_di,com_di, lsr_di, lsr_di, ror_di, asr_di,
asl_di, rol_di, dec_di, illegal,inc_di, tst_di, jmp_di, clr_di, asl_di, rol_di, dec_di, dec_di, inc_di, tst_di, jmp_di, clr_di,
/* 0x1X */ pref10, pref11, nop, sync, illegal,illegal,lbra, lbsr, /* 0x1X */ pref10, pref11, nop, sync, illegal,illegal,lbra, lbsr,
illegal,daa, orcc, illegal,andcc, sex, exg, tfr, illegal,daa, orcc, illegal,andcc, sex, exg, tfr,
@ -376,17 +376,17 @@ static void (*const m6809_main[0x100])(m68_state_t *) = {
/* 0x3X */ leax, leay, leas, leau, pshs, puls, pshu, pulu, /* 0x3X */ leax, leay, leas, leau, pshs, puls, pshu, pulu,
illegal,rts, abx, rti, cwai, mul, illegal,swi, illegal,rts, abx, rti, cwai, mul, illegal,swi,
/* 0x4X */ nega, illegal,illegal,coma, lsra, illegal,rora, asra, /* 0x4X */ nega, nega,coma,coma, lsra, lsra,rora, asra,
asla, rola, deca, illegal,inca, tsta, illegal,clra, asla, rola, deca, deca,inca, tsta, clra,clra,
/* 0x5X */ negb, illegal,illegal,comb, lsrb, illegal,rorb, asrb, /* 0x5X */ negb, negb,comb,comb, lsrb, lsrb,rorb, asrb,
aslb, rolb, decb, illegal,incb, tstb, illegal,clrb, aslb, rolb, decb, decb,incb, tstb, clrb,clrb,
/* 0x6X */ neg_ix, illegal,illegal,com_ix, lsr_ix, illegal,ror_ix, asr_ix, /* 0x6X */ neg_ix, neg_ix,com_ix,com_ix, lsr_ix, lsr_ix,ror_ix, asr_ix,
asl_ix, rol_ix, dec_ix, illegal,inc_ix, tst_ix, jmp_ix, clr_ix, asl_ix, rol_ix, dec_ix, dec_ix,inc_ix, tst_ix, jmp_ix, clr_ix,
/* 0x7X */ neg_ex, illegal,illegal,com_ex, lsr_ex, illegal,ror_ex, asr_ex, /* 0x7X */ neg_ex, neg_ex,com_ex,com_ex, lsr_ex, lsr_ex,ror_ex, asr_ex,
asl_ex, rol_ex, dec_ex, illegal,inc_ex, tst_ex, jmp_ex, clr_ex, asl_ex, rol_ex, dec_ex, dec_ex,inc_ex, tst_ex, jmp_ex, clr_ex,
/* 0x8X */ suba_im,cmpa_im,sbca_im,subd_im,anda_im,bita_im,lda_im, sta_im, /* 0x8X */ suba_im,cmpa_im,sbca_im,subd_im,anda_im,bita_im,lda_im, sta_im,
eora_im,adca_im,ora_im, adda_im,cmpx_im,bsr, ldx_im, stx_im, eora_im,adca_im,ora_im, adda_im,cmpx_im,bsr, ldx_im, stx_im,