@@ -37,7 +37,6 @@ public sealed partial class Asm6502 : MotorolaBase
37
37
{ ( "asl" , Modes . ZeroPageX ) , new CpuInstruction ( "6502" , 0x16 , 2 ) } ,
38
38
{ ( "clc" , Modes . Implied ) , new CpuInstruction ( "6502" , 0x18 ) } ,
39
39
{ ( "ora" , Modes . AbsoluteY ) , new CpuInstruction ( "6502" , 0x19 , 3 ) } ,
40
- { ( "top" , Modes . AbsoluteX ) , new CpuInstruction ( "6502" , 0x1c , 3 ) } ,
41
40
{ ( "ora" , Modes . AbsoluteX ) , new CpuInstruction ( "6502" , 0x1d , 3 ) } ,
42
41
{ ( "asl" , Modes . AbsoluteX ) , new CpuInstruction ( "6502" , 0x1e , 3 ) } ,
43
42
{ ( "jsr" , Modes . Absolute ) , new CpuInstruction ( "6502" , 0x20 , 3 ) } ,
@@ -232,7 +231,7 @@ public sealed partial class Asm6502 : MotorolaBase
232
231
{ ( "rmb" , Modes . Zp7 ) , new CpuInstruction ( "R65C02" , 0x77 , 2 ) } ,
233
232
{ ( "bbr" , Modes . ThreeOpRel7 ) , new CpuInstruction ( "R65C02" , 0x7f , 3 ) } ,
234
233
{ ( "smb" , Modes . Zp0 ) , new CpuInstruction ( "R65C02" , 0x87 , 2 ) } ,
235
- { ( "bbs" , Modes . ThreeOpRel ) , new CpuInstruction ( "R65C02" , 0x8f , 3 ) } ,
234
+ { ( "bbs" , Modes . ThreeOpRel0 ) , new CpuInstruction ( "R65C02" , 0x8f , 3 ) } ,
236
235
{ ( "smb" , Modes . Zp1 ) , new CpuInstruction ( "R65C02" , 0x97 , 2 ) } ,
237
236
{ ( "bbs" , Modes . ThreeOpRel1 ) , new CpuInstruction ( "R65C02" , 0x9f , 3 ) } ,
238
237
{ ( "smb" , Modes . Zp2 ) , new CpuInstruction ( "R65C02" , 0xa7 , 2 ) } ,
@@ -434,7 +433,6 @@ public sealed partial class Asm6502 : MotorolaBase
434
433
static readonly Dictionary < ( string Mnem , Modes Mode ) , CpuInstruction > s_opcodes65816 =
435
434
new Dictionary < ( string Mnem , Modes Mode ) , CpuInstruction > ( )
436
435
{
437
- { ( "cop" , Modes . Implied ) , new CpuInstruction ( "65816" , 0x03 ) } ,
438
436
{ ( "cop" , Modes . Immediate ) , new CpuInstruction ( "65816" , 0x02 , 2 ) } ,
439
437
{ ( "ora" , Modes . ZeroPageS ) , new CpuInstruction ( "65816" , 0x03 , 2 ) } ,
440
438
{ ( "ora" , Modes . Dir ) , new CpuInstruction ( "65816" , 0x07 , 2 ) } ,
@@ -454,7 +452,7 @@ public sealed partial class Asm6502 : MotorolaBase
454
452
{ ( "and" , Modes . DirY ) , new CpuInstruction ( "65816" , 0x37 , 2 ) } ,
455
453
{ ( "tsc" , Modes . Implied ) , new CpuInstruction ( "65816" , 0x3b ) } ,
456
454
{ ( "and" , Modes . LongX ) , new CpuInstruction ( "65816" , 0x3f , 4 ) } ,
457
- { ( "wdm" , Modes . Implied ) , new CpuInstruction ( "65816" , 0x43 ) } ,
455
+ { ( "wdm" , Modes . Implied ) , new CpuInstruction ( "65816" , 0x42 ) } ,
458
456
{ ( "eor" , Modes . ZeroPageS ) , new CpuInstruction ( "65816" , 0x43 , 2 ) } ,
459
457
{ ( "mvp" , Modes . TwoOperand ) , new CpuInstruction ( "65816" , 0x44 , 3 ) } ,
460
458
{ ( "eor" , Modes . Dir ) , new CpuInstruction ( "65816" , 0x47 , 2 ) } ,
@@ -512,6 +510,7 @@ public sealed partial class Asm6502 : MotorolaBase
512
510
{ ( "pea" , Modes . Absolute ) , new CpuInstruction ( "65816" , 0xf4 , 3 ) } , // both are acceptable
513
511
{ ( "sbc" , Modes . DirY ) , new CpuInstruction ( "65816" , 0xf7 , 2 ) } ,
514
512
{ ( "xce" , Modes . Implied ) , new CpuInstruction ( "65816" , 0xfb ) } ,
513
+ { ( "jsr" , Modes . IndAbsX ) , new CpuInstruction ( "65816" , 0xfc , 3 ) } ,
515
514
{ ( "sbc" , Modes . LongX ) , new CpuInstruction ( "65816" , 0xff , 4 ) } ,
516
515
} ;
517
516
static readonly Dictionary < ( string Mnem , Modes Mode ) , CpuInstruction > s_opcodes6502i =
0 commit comments