From 80b4ea304b80e36342a819ca817009f91b74a85c Mon Sep 17 00:00:00 2001 From: mrdudz Date: Wed, 18 Jun 2025 02:24:59 +0200 Subject: [PATCH] fix table for added address modes --- src/ca65/instr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ca65/instr.c b/src/ca65/instr.c index 647dccc46..a9f7a62a9 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -1298,6 +1298,7 @@ static unsigned char Sweet16EATab[2][AMSW16I_COUNT] = { }; /* Table that encodes the additional bytes for each 65xx instruction */ +/* NOTE: one entry per addressing mode! */ unsigned char ExtBytes[AM65I_COUNT] = { 0, /* Implicit */ 0, /* Accu */ @@ -1327,6 +1328,8 @@ unsigned char ExtBytes[AM65I_COUNT] = { 7, /* Block transfer (HuC6280) */ 2, /* Absolute Indirect long */ 2, /* Immidiate word */ + 2, /* Direct, Relative short */ + 1, /* Special Page */ }; /* Table that encodes the additional bytes for each SWEET16 instruction */