From 499fcbdb5f14f6ddbcad7164c0f344df168ed660 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Wed, 18 Jun 2025 02:38:34 +0200 Subject: [PATCH] we dont use the table in the custom jsr --- src/ca65/instr.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/ca65/instr.c b/src/ca65/instr.c index a9f7a62a9..c9e0768b6 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -1125,7 +1125,7 @@ static const struct { { "INX", 0x00000001, 0xe8, 0, PutAll }, { "INY", 0x00000001, 0xc8, 0, PutAll }, { "JMP", 0x00000C08, 0x00, 12, PutAll }, - { "JSR", 0x20000408, 0x00, 13, PutJSR_m740 }, + { "JSR", 0x20000408, 0x00, 0, PutJSR_m740 }, { "LDA", 0x0080A26C, 0xa0, 0, PutAll }, { "LDM", 0x10000000, 0x3c, 0, PutLDM_m740 }, { "LDX", 0x0080030C, 0xa2, 1, PutAll }, @@ -1275,13 +1275,6 @@ static unsigned char EATab[14][AM65I_COUNT] = { 0x00, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb2, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00 - }, - { /* Table 13 m740 JSR */ - 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00 }, }; @@ -1912,10 +1905,8 @@ static void PutJSR_m740 (const InsDesc* Ins) return; } A.AddrMode = BitFind (A.AddrModeSet); - A.AddrModeBit = (0x01UL << A.AddrMode); /* Build the opcode */ - /* A.Opcode = Ins->BaseCode | EATab[Ins->ExtCode][A.AddrMode] | A.Reg; */ A.Opcode = Ins->BaseCode; switch (A.AddrMode) {