summaryrefslogtreecommitdiff
path: root/tnslc/compile/isa_x86.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-12-04 23:35:58 -0500
committerKyle Gunger <kgunger12@gmail.com>2022-12-04 23:35:58 -0500
commit24c4683a5b4a85e6a5b12ae879decf746904e114 (patch)
tree02d225a7bacf9490d8d0955112abf64488de1831 /tnslc/compile/isa_x86.tnsl
parenta63d1579b07dff89e0e1e539f8265cd3ca0d74a6 (diff)
Start work on "eval_call" and "eval_value"
Diffstat (limited to 'tnslc/compile/isa_x86.tnsl')
-rw-r--r--tnslc/compile/isa_x86.tnsl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tnslc/compile/isa_x86.tnsl b/tnslc/compile/isa_x86.tnsl
index e11311a..ee5bf27 100644
--- a/tnslc/compile/isa_x86.tnsl
+++ b/tnslc/compile/isa_x86.tnsl
@@ -52,10 +52,18 @@
;return construct_statement("\tcmp ", {a, b})
;/
+/; mov_asm ({}charp a, b) [{}charp]
+ ;return construct_statement("\tmov ", {a, b})
+;/
+
/; jmp_asm ({}charp pos) [{}charp]
;return construct_statement("\tjmp ", {pos})
;/
+/; call_asm ({}charp pos) [{}charp]
+ ;return construct_statement("\tcall ", {pos})
+;/
+
/; cjmp_asm ({}charp suffix, pos) [{}charp]
;{}charp p = "\tj"
;add_strings(~p, ~suffix)