diff --git a/anotherplan_tests.c b/anotherplan_tests.c index eef81e1..c905fbb 100644 --- a/anotherplan_tests.c +++ b/anotherplan_tests.c @@ -1,8 +1,10 @@ #include #include #include "memlist.h" +#include "vm.h" -void main(void) +void +main(void) { /* setup */ allocmemblock(); @@ -11,6 +13,8 @@ void main(void) print("loading mem list:\n"); loadmemlist("assets/MEMLIST.BIN"); + initvm(); + /* run */ print("\nrunning!\n\n"); @@ -20,4 +24,4 @@ void main(void) printmemptrs(); exits(nil); -} \ No newline at end of file +} diff --git a/graphics.h b/graphics.h index dc0b171..5d5e505 100644 --- a/graphics.h +++ b/graphics.h @@ -2,4 +2,4 @@ #define GRAPHICS_H void initGraphics(Point *pBallPos); void render(void); -#endif /* GRAPHICS_H */ \ No newline at end of file +#endif /* GRAPHICS_H */ diff --git a/memlist.h b/memlist.h index 866b1de..2b1335d 100644 --- a/memlist.h +++ b/memlist.h @@ -39,4 +39,4 @@ void allocmemblock(void); void freememblock(void); void printmemptrs(void); -#endif /* MEMLIST_H */ \ No newline at end of file +#endif /* MEMLIST_H */ diff --git a/mkfile b/mkfile index dc88b03..bf33309 100644 --- a/mkfile +++ b/mkfile @@ -3,10 +3,12 @@ TARG=anotherplan anotherplan_tests OFILES=\ graphics.$O\ memlist.$O\ + vm.$O\ HFILES=\ graphics.h\ memlist.h\ + vm.h\ BIN=/$objtype/bin/games +#include +#include "vm.h" + +void +initvm(void) +{ + print("vm initialized!\n"); +} diff --git a/vm.h b/vm.h new file mode 100644 index 0000000..0a48ceb --- /dev/null +++ b/vm.h @@ -0,0 +1,6 @@ +#ifndef VM_H +#define VM_H + +void initvm(void); + +#endif /* VM_H */