aboutsummaryrefslogtreecommitdiffstats
path: root/creole.h
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-03-02 17:30:24 +0000
committerGravatar Peter McGoron 2023-03-02 17:30:24 +0000
commit945bcd68a54ebf6794fa791545426e5f29644029 (patch)
tree0643c99cd5bfea1cba4a228c2919b2ac148c6764 /creole.h
parent0.2.0 (diff)
add upsilon opcodes
Diffstat (limited to '')
-rw-r--r--creole.h34
1 files changed, 22 insertions, 12 deletions
diff --git a/creole.h b/creole.h
index fe888ef..8ebb2c2 100644
--- a/creole.h
+++ b/creole.h
@@ -34,18 +34,28 @@ typedef CREOLE_WORD creole_word;
typedef CREOLE_SIGNED_WORD creole_signed;
enum creole_opcode {
- CREOLE_NOOP,
- CREOLE_PUSH,
- CREOLE_POP,
- CREOLE_ADD,
- CREOLE_MUL,
- CREOLE_DIV,
- CREOLE_SYS,
- CREOLE_JL,
- CREOLE_JLE,
- CREOLE_JE,
- CREOLE_JNE,
- CREOLE_DB,
+ CREOLE_NOOP = 0,
+ CREOLE_PUSH = 1,
+ CREOLE_POP = 2,
+ CREOLE_ADD = 3,
+ CREOLE_MUL = 4,
+ CREOLE_DIV = 5,
+ CREOLE_SYS = 6,
+ CREOLE_JL = 7,
+ CREOLE_JLE = 8,
+ CREOLE_JE = 9,
+ CREOLE_JNE = 10,
+ CREOLE_DB = 11,
+ CREOLE_READ_ADC = 12,
+ CREOLE_READ_DAC = 13,
+ CREOLE_WRITE_DAC = 14,
+ CREOLE_SLEEP = 15,
+ CREOLE_CLOOP_READ = 16,
+ CREOLE_CLOOP_WRITE = 17,
+ CREOLE_WF_LOAD = 18,
+ CREOLE_WF_EXEC = 19,
+ CREOLE_SENDVAL = 20,
+ CREOLE_SENDDAT = 21,
CREOLE_OPCODE_LEN
};