aboutsummaryrefslogtreecommitdiff
path: root/ABC/Machine/Instructions.icl
diff options
context:
space:
mode:
authorCamil Staps2017-07-18 21:01:31 +0000
committerCamil Staps2017-07-18 21:01:31 +0000
commitc0dfbd7ca37ae769d87ae99c1a6a8443a2a8851f (patch)
treee60a856d996021594aed02524a72272d2daa1f3a /ABC/Machine/Instructions.icl
parentAdd remI (diff)
Add negI
Diffstat (limited to 'ABC/Machine/Instructions.icl')
-rw-r--r--ABC/Machine/Instructions.icl4
1 files changed, 4 insertions, 0 deletions
diff --git a/ABC/Machine/Instructions.icl b/ABC/Machine/Instructions.icl
index 42dcb62..54e7ebd 100644
--- a/ABC/Machine/Instructions.icl
+++ b/ABC/Machine/Instructions.icl
@@ -385,6 +385,10 @@ mulI :: State -> State
mulI st=:{bstack}
= {st & bstack=bs_mulI bstack}
+negI :: State -> State
+negI st=:{bstack}
+ = {st & bstack=bs_negI bstack}
+
remI :: State -> State
remI st=:{bstack}
= {st & bstack=bs_remI bstack}