We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c70db1 commit f3bab87Copy full SHA for f3bab87
src/ops.inc
@@ -464,10 +464,16 @@ case 0x93: ST_IY(_A&_X&(((A-_Y)>>8)+1));
464
case 0x9F: ST_ABY(_A&_X&(((A-_Y)>>8)+1));
465
466
/* SYA */
467
-case 0x9C: ST_ABX(_Y&(((A-_X)>>8)+1));
+case 0x9C: /* Can't reuse existing ST_ABI macro here, due to addressing weirdness. */
468
+{
469
+ unsigned int A; GetABIWR(A,_X); A = ((_Y&((A>>8)+1)) << 8) | (A & 0xff); WrMem(A,A>>8); break;
470
+}
471
472
/* SXA */
-case 0x9E: ST_ABY(_X&(((A-_Y)>>8)+1));
473
+case 0x9E: /* Can't reuse existing ST_ABI macro here, due to addressing weirdness. */
474
475
+ unsigned int A; GetABIWR(A,_Y); A = ((_X&((A>>8)+1)) << 8) | (A & 0xff); WrMem(A,A>>8); break;
476
477
478
/* XAS */
479
case 0x9B: _S=_A&_X;ST_ABY(_S& (((A-_Y)>>8)+1) );
0 commit comments