]> git.sur5r.net Git - cc65/blobdiff - src/cc65/segments.c
Working on the backend
[cc65] / src / cc65 / segments.c
index b5ba646c4bfe459612270e9403020ff81cca7b6d..232f9abd8e9fc3b1c9b9a01560867f1da8246911 100644 (file)
@@ -44,6 +44,7 @@
 #include "xmalloc.h"
 
 /* cc65 */
+#include "codeent.h"
 #include "codeseg.h"
 #include "dataseg.h"
 #include "textseg.h"
@@ -219,11 +220,11 @@ void AddCodeLine (const char* Format, ...)
 
 
 
-void AddCode (struct CodeEntry* E)
+void AddCode (opc_t OPC, am_t AM, const char* Arg, struct CodeLabel* JumpTo)
 /* Add a code entry to the current code segment */
 {
     CHECK (CS != 0);
-    CS_AddEntry (CS->Code, E, CurTok.LI);
+    CS_AddEntry (CS->Code, NewCodeEntry (OPC, AM, Arg, JumpTo, CurTok.LI));
 }