aboutsummaryrefslogtreecommitdiff
path: root/example/main.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-07-09 15:43:10 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-07-09 15:43:10 +0300
commit7f1f9ec8e75b3627b795ddecd7e391a5ebe95528 (patch)
tree88efbff4d9d64f6589687a59224d245e00975d0d /example/main.c
parent2432cb953afa8ec3063307e3a788d7126b97318b (diff)
downloadbcgen-7f1f9ec8e75b3627b795ddecd7e391a5ebe95528.tar.gz
bcgen-7f1f9ec8e75b3627b795ddecd7e391a5ebe95528.zip
change so that bcode.h and bcode.c are generated
Diffstat (limited to 'example/main.c')
-rw-r--r--example/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/main.c b/example/main.c
index 7ca152b..7e086a7 100644
--- a/example/main.c
+++ b/example/main.c
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include "../bcode.h"
+#include "bcode.h"
int main()
{
@@ -10,10 +10,10 @@ int main()
select_movi(&cs, 1, 1000000000); // limit
select_movi(&cs, 0, 0); // total
- breg_t l = label(&cs); // top
+ bcval_t l = label(&cs); // top
select_addr(&cs, 0, 0, 2); // add iter to total
select_addi(&cs, 2, 2, 1);
- breloc_t r = select_bltr(&cs, 2, 1, 0); // 0 is placeholder value,
+ bcreloc_t r = select_bltr(&cs, 2, 1, 0); // 0 is placeholder value,
// should maybe add in an
// UNDEFINED macro or something
end(&cs);