]> git.sur5r.net Git - cc65/commitdiff
Merge pull request #643 from mikeakohn/fix/sweet16_op_bs
authorOliver Schmidt <ol.sc@web.de>
Sun, 13 May 2018 14:32:18 +0000 (16:32 +0200)
committerGitHub <noreply@github.com>
Sun, 13 May 2018 14:32:18 +0000 (16:32 +0200)
The opcode for BS should be 0x0C.

src/ca65/instr.c

index 53d3573a69a4aa712d019ee9fc439bfe1b8df1ff..37217203a5217ff79e256a69c55a1ccde6eec366 100644 (file)
@@ -758,7 +758,7 @@ static const struct {
         { "BNZ",  AMSW16_BRA,              0x07, 0, PutSweet16Branch },
         { "BP",   AMSW16_BRA,              0x04, 0, PutSweet16Branch },
         { "BR",   AMSW16_BRA,              0x01, 0, PutSweet16Branch },
-        { "BS",   AMSW16_BRA,              0x0B, 0, PutSweet16Branch },
+        { "BS",   AMSW16_BRA,              0x0C, 0, PutSweet16Branch },
         { "BZ",   AMSW16_BRA,              0x06, 0, PutSweet16Branch },
         { "CPR",  AMSW16_REG,              0xD0, 0, PutSweet16 },
         { "DCR",  AMSW16_REG,              0xF0, 0, PutSweet16 },