ALWAYS end in newlines. Also, added vm.c/.h skeletons.
This commit is contained in:
parent
3874f745a2
commit
8f68462d36
|
@ -1,8 +1,10 @@
|
||||||
#include <u.h>
|
#include <u.h>
|
||||||
#include <libc.h>
|
#include <libc.h>
|
||||||
#include "memlist.h"
|
#include "memlist.h"
|
||||||
|
#include "vm.h"
|
||||||
|
|
||||||
void main(void)
|
void
|
||||||
|
main(void)
|
||||||
{
|
{
|
||||||
/* setup */
|
/* setup */
|
||||||
allocmemblock();
|
allocmemblock();
|
||||||
|
@ -11,6 +13,8 @@ void main(void)
|
||||||
print("loading mem list:\n");
|
print("loading mem list:\n");
|
||||||
loadmemlist("assets/MEMLIST.BIN");
|
loadmemlist("assets/MEMLIST.BIN");
|
||||||
|
|
||||||
|
initvm();
|
||||||
|
|
||||||
/* run */
|
/* run */
|
||||||
print("\nrunning!\n\n");
|
print("\nrunning!\n\n");
|
||||||
|
|
||||||
|
@ -20,4 +24,4 @@ void main(void)
|
||||||
printmemptrs();
|
printmemptrs();
|
||||||
|
|
||||||
exits(nil);
|
exits(nil);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
#define GRAPHICS_H
|
#define GRAPHICS_H
|
||||||
void initGraphics(Point *pBallPos);
|
void initGraphics(Point *pBallPos);
|
||||||
void render(void);
|
void render(void);
|
||||||
#endif /* GRAPHICS_H */
|
#endif /* GRAPHICS_H */
|
||||||
|
|
|
@ -39,4 +39,4 @@ void allocmemblock(void);
|
||||||
void freememblock(void);
|
void freememblock(void);
|
||||||
void printmemptrs(void);
|
void printmemptrs(void);
|
||||||
|
|
||||||
#endif /* MEMLIST_H */
|
#endif /* MEMLIST_H */
|
||||||
|
|
2
mkfile
2
mkfile
|
@ -3,10 +3,12 @@ TARG=anotherplan anotherplan_tests
|
||||||
OFILES=\
|
OFILES=\
|
||||||
graphics.$O\
|
graphics.$O\
|
||||||
memlist.$O\
|
memlist.$O\
|
||||||
|
vm.$O\
|
||||||
|
|
||||||
HFILES=\
|
HFILES=\
|
||||||
graphics.h\
|
graphics.h\
|
||||||
memlist.h\
|
memlist.h\
|
||||||
|
vm.h\
|
||||||
|
|
||||||
BIN=/$objtype/bin/games
|
BIN=/$objtype/bin/games
|
||||||
</sys/src/cmd/mkmany
|
</sys/src/cmd/mkmany
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#include <u.h>
|
||||||
|
#include <libc.h>
|
||||||
|
#include "vm.h"
|
||||||
|
|
||||||
|
void
|
||||||
|
initvm(void)
|
||||||
|
{
|
||||||
|
print("vm initialized!\n");
|
||||||
|
}
|
Loading…
Reference in New Issue