From 7f1f9ec8e75b3627b795ddecd7e391a5ebe95528 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 9 Jul 2023 15:43:10 +0300 Subject: change so that bcode.h and bcode.c are generated --- example/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example/main.c') 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 -#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); -- cgit v1.3