aboutsummaryrefslogtreecommitdiff
path: root/bcode.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-07-04 23:37:51 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-07-04 23:37:51 +0300
commite82c73d2b57e58894d8c93fc720559df6392d58b (patch)
tree3a637c10d0334e21ba3a75fbf5854d0f43efe07e /bcode.h
parent703e37ac56883f9a54b35960fde438c7cfba4592 (diff)
downloadbcgen-e82c73d2b57e58894d8c93fc720559df6392d58b.tar.gz
bcgen-e82c73d2b57e58894d8c93fc720559df6392d58b.zip
add loop example
Diffstat (limited to 'bcode.h')
-rw-r--r--bcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bcode.h b/bcode.h
index e25d32a..730b8e7 100644
--- a/bcode.h
+++ b/bcode.h
@@ -28,7 +28,10 @@ struct compile_state {
gbreg_t run(struct compile_state *cs);
void init(struct compile_state *cs);
+void end(struct compile_state *cs);
void destroy(struct compile_state *cs);
+
+breg_t label(struct compile_state *cs);
void patch(struct compile_state *cs, breloc_t reloc, breg_t imm);
#endif /* BCGEN_BCODE_H */