]> git.sur5r.net Git - cc65/blobdiff - src/da65/handler.c
da65: 4510 support
[cc65] / src / da65 / handler.c
index 6ba8a7eefb1babf2a8d281b50ae5951ae9cd256f..6249523630005ed7c6a252e1e57f128730240d8f 100644 (file)
@@ -546,24 +546,18 @@ void OH_DirectIndirectLongX (const OpcDesc* D attribute ((unused)))
 
 
 
-static void impl_StackRelativeIndirectY (const char *sp, const OpcDesc* D attribute ((unused)))
-{
-    /* Output the line */
-    OneLine (D, "($%02X,%s),y", GetCodeByte (PC+1), sp);
-}
-
-
-
 void OH_StackRelativeIndirectY (const OpcDesc* D attribute ((unused)))
 {
-    impl_StackRelativeIndirectY( "s", D );
+    /* Output the line */
+    OneLine (D, "($%02X,s),y", GetCodeByte (PC+1));
 }
 
 
 
 void OH_StackRelativeIndirectY4510 (const OpcDesc* D attribute ((unused)))
 {
-    impl_StackRelativeIndirectY( "sp", D );
+    /* Output the line */
+    OneLine (D, "($%02X,sp),y", GetCodeByte (PC+1));
 }