summary refs log tree commit diff
path: root/src/instruction/subtract.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/instruction/subtract.c')
-rw-r--r--src/instruction/subtract.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/instruction/subtract.c b/src/instruction/subtract.c
deleted file mode 100644
index f140cfb..0000000
--- a/src/instruction/subtract.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "3cl.h"
-
-#include "stack.h"
-#include "utils.h"
-
-struct CCLFrame *ccl_instruction_subtract(struct CCL *ccl, struct CCLFrame *frame)
-{
-    if (ccl->stack.cur < 2)
-        die(1, "stack size is %d (%d required)", ccl->stack.cur, 2);
-    ccl_stack_push(&ccl->stack, -ccl_stack_pop(&ccl->stack) + ccl_stack_pop(&ccl->stack));
-    return frame;
-}