]> git.sur5r.net Git - cc65/commitdiff
Merge pull request #380 from greg-king5/ca65-816
authorOliver Schmidt <ol.sc@web.de>
Mon, 13 Feb 2017 11:39:47 +0000 (12:39 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2017 11:39:47 +0000 (12:39 +0100)
Fix ca65's BRK instruction for the 65816.

src/ca65/instr.c

index 5e7904992859267a63b0f16ecafb57ccd1daafa6..53d3573a69a4aa712d019ee9fc439bfe1b8df1ff 100644 (file)
@@ -650,7 +650,7 @@ static const struct {
         { "BNE",  0x0020000, 0xd0, 0, PutPCRel8 },
         { "BPL",  0x0020000, 0x10, 0, PutPCRel8 },
         { "BRA",  0x0020000, 0x80, 0, PutPCRel8 },
-        { "BRK",  0x0000001, 0x00, 0, PutAll },
+        { "BRK",  0x0000005, 0x00, 0, PutAll },
         { "BRL",  0x0040000, 0x82, 0, PutPCRel16 },
         { "BVC",  0x0020000, 0x50, 0, PutPCRel8 },
         { "BVS",  0x0020000, 0x70, 0, PutPCRel8 },