aboutsummaryrefslogtreecommitdiffstats
path: root/creole.h
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-02-18 16:05:09 +0000
committerGravatar Peter McGoron 2023-02-18 16:05:09 +0000
commit48827c5b747eca6d56555f69cae37291feb5fcda (patch)
tree063bc21af510fe961a7002678e0cdf9dbb8bc228 /creole.h
parentadd data, remove labels and make jumps absolute (diff)
adjust python assembler to new API
Diffstat (limited to 'creole.h')
-rw-r--r--creole.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/creole.h b/creole.h
index 53e6ab7..b98dfa5 100644
--- a/creole.h
+++ b/creole.h
@@ -65,7 +65,6 @@ enum creole_compiler_ret {
CREOLE_LAST_MALFORMED,
CREOLE_DATA_OVERFLOW,
CREOLE_TYPE_ERROR,
- CREOLE_COMPILE_CLEARED_INSTRUCTION,
CREOLE_PROGRAM_OVERFLOW,
CREOLE_COMPILE_RET_LEN
};
@@ -114,6 +113,7 @@ enum creole_run_ret creole_reg_read(struct creole_env *env, unsigned reg,
creole_word *w);
enum creole_run_ret creole_push(struct creole_env *env, creole_word w);
enum creole_run_ret creole_pop(struct creole_env *env, creole_word *w);
+int creole_jump(struct creole_env *env, creole_word off);
enum creole_run_ret creole_step(struct creole_env *env, creole_word *sc);
#endif /* CREOLE_H */