about summary refs log tree commit diff stats
path: root/subx/opcodes
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-07-11 21:41:15 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-07-11 21:41:15 -0700
commit11304f1063265092683470d374060042bd858b41 (patch)
treeb23562a8a7b65e0202c5508317db005c0f8363ab /subx/opcodes
parent49559e007b8049164fecb2750a8a736a3495b589 (diff)
downloadmu-11304f1063265092683470d374060042bd858b41.tar.gz
3968
Diffstat (limited to 'subx/opcodes')
-rw-r--r--subx/opcodes66
1 files changed, 66 insertions, 0 deletions
diff --git a/subx/opcodes b/subx/opcodes
new file mode 100644
index 00000000..8d9ca2f6
--- /dev/null
+++ b/subx/opcodes
@@ -0,0 +1,66 @@
+idle
+  90/nop/xchg-eax-eax
+copy
+  mov r/m32 r32: 89
+  mov r32 r/m32: 8b
+  mov r/m32 imm32: c7
+  memcpy
+  $copy_and_increment_refcounts destination, source, [type descriptor]
+
+add
+subtract
+multiply
+divide
+divide-with-remainder
+square-root
+shift-right
+shift-left
+not
+flip-bits
+or
+or-bits
+and
+and-bits
+xor-bits
+equal
+not-equal
+lesser-than
+lesser-or-equal
+greater-than
+greater-or-equal
+round
+truncate
+max
+min
+random
+jump
+jump-if
+jump-unless
+call (dynamic)
+return
+next-ingredient
+ingredient
+rewind-ingredients
+character-to-code
+new _, _
+length
+index
+put-index
+new _
+get
+put
+maybe-convert
+trace
+to-text
+deep-copy
+hash
+wait-for-reset-then-set
+reset
+get-location
+wait-for-routine
+switch
+current-routine-is-blocked
+current-routine-is-unblocked
+wait-for-routine-to-block
+restart
+limit-time