1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-17 00:29:31 +00:00

Fixed the generation of the opcode byte when BRK is given an operand, in 65816 CPU mode.

The bug was created by commit 7e8bb7b700.
This commit is contained in:
Greg King 2018-08-16 23:51:04 -04:00
parent f40dcb5883
commit d13d068e71

View File

@ -650,7 +650,7 @@ static const struct {
{ "BNE", 0x0020000, 0xd0, 0, PutPCRel8 },
{ "BPL", 0x0020000, 0x10, 0, PutPCRel8 },
{ "BRA", 0x0020000, 0x80, 0, PutPCRel8 },
{ "BRK", 0x0000005, 0x00, 0, PutAll },
{ "BRK", 0x0000005, 0x00, 6, PutAll },
{ "BRL", 0x0040000, 0x82, 0, PutPCRel16 },
{ "BVC", 0x0020000, 0x50, 0, PutPCRel8 },
{ "BVS", 0x0020000, 0x70, 0, PutPCRel8 },