anotherplan/anotherplan_tests.c

28 lines
385 B
C
Raw Normal View History

#include <u.h>
#include <libc.h>
2020-08-22 03:53:35 +00:00
#include "memlist.h"
#include "vm.h"
void
main(void)
{
2020-08-29 15:57:06 +00:00
/* setup */
allocmemblock();
print("alloc'd mem buffer:\n");
printmemptrs();
print("loading mem list:\n");
2020-08-22 03:53:35 +00:00
loadmemlist("assets/MEMLIST.BIN");
2020-08-29 15:57:06 +00:00
initvm();
2020-08-29 15:57:06 +00:00
/* run */
print("\nrunning!\n\n");
/* teardown */
freememblock();
print("freed mem buffer:\n");
printmemptrs();
exits(nil);
}