]> git.sur5r.net Git - cc65/commitdiff
Correct sweet16 addressing bug with SUB instr. Patch by Gabriele Galeotti.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 29 Jul 2009 14:37:58 +0000 (14:37 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 29 Jul 2009 14:37:58 +0000 (14:37 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3982 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/instr.c

index 88acf515e1d04530affa9e5294326341b6ec5c14..74529865bbabea9b390b547ec0c4c3bf839178c8 100644 (file)
@@ -625,7 +625,7 @@ static const struct {
         { "ST",   AMSW16_REG | AMSW16_IND, 0x10, 1, PutSweet16 },
         { "STD",  AMSW16_IND,              0x70, 0, PutSweet16 },
         { "STP",  AMSW16_IND,              0x90, 0, PutSweet16 },
-        { "SUB",  AMSW16_IMM,              0xB0, 0, PutSweet16 },
+        { "SUB",  AMSW16_REG,              0xB0, 0, PutSweet16 },
     }
 };