From 48f64de72048c0f514df2a616f34c456955333ef Mon Sep 17 00:00:00 2001 From: Sven Oliver Moll Date: Wed, 31 Aug 2016 20:18:54 +0200 Subject: [PATCH] 4510 support: yet another round up little updates --- asminc/cpu.mac | 2 ++ src/ca65/instr.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/asminc/cpu.mac b/asminc/cpu.mac index 6b8aa6d7b..6a5482d1e 100644 --- a/asminc/cpu.mac +++ b/asminc/cpu.mac @@ -7,6 +7,7 @@ CPU_ISET_65C02 = $0010 CPU_ISET_65816 = $0020 CPU_ISET_SWEET16 = $0040 CPU_ISET_HUC6280 = $0080 +CPU_ISET_4510 = $0100 ; CPU capabilities CPU_NONE = CPU_ISET_NONE @@ -17,3 +18,4 @@ CPU_65C02 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65C02 CPU_65816 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65816 CPU_SWEET16 = CPU_ISET_SWEET16 CPU_HUC6280 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65C02|CPU_ISET_HUC6280 +CPU_4510 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65C02|CPU_ISET_4510 diff --git a/src/ca65/instr.c b/src/ca65/instr.c index e2819e7cc..5e7904992 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -1579,7 +1579,7 @@ static void Put4510 (const InsDesc* Ins) case 0xB3: A.Opcode = 0xE2; break; case 0xD0: A.Opcode = 0xC2; break; case 0xFC: A.Opcode = 0x23; break; - default: /*nothing*/ break; + default: /* Keep opcode as it is */ break; } /* No error, output code */ -- 2.39.5