From 1cb722ba7d34ef92b83c58cef20d67f19685f81b Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 26 Oct 2004 20:20:55 +0000 Subject: [PATCH] The absolute X indirect addressing mode for the 65C02 CPU was missing. git-svn-id: svn://svn.cc65.org/cc65/trunk@3266 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/da65/handler.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/da65/handler.c b/src/da65/handler.c index fe0b019e0..5cb33ba41 100644 --- a/src/da65/handler.c +++ b/src/da65/handler.c @@ -467,7 +467,14 @@ void OH_BlockMove (const OpcDesc* D attribute ((unused))) void OH_AbsoluteXIndirect (const OpcDesc* D attribute ((unused))) { - Error ("Not implemented"); + /* Get the operand */ + unsigned Addr = GetCodeWord (PC+1); + + /* Generate a label in pass 1 */ + GenerateLabel (D->Flags, Addr); + + /* Output the line */ + OneLine (D, "(%s,x)", GetAddrArg (D->Flags, Addr)); } -- 2.39.2