1 #include <stdio.h>
2 #include "../system/memory.h"
3 #include "../tables/pervinit.h"
4 #include "loader.h"
5 #include "ld_message.h"
6 
main(int argc,char * argv[])7 int main(int argc, char* argv[])
8 {
9   LD_verbosity = 3;
10   EM_TRY{
11     printf("Beginning test...");
12     MEM_memInit(1024*8);
13     PERVINIT_tableInit();
14     printf("Memory Initialized\n");
15     LD_LOADER_Load(argv[1], 0);
16     printf("Module Loaded\n");
17   }EM_CATCH{
18     printf("Caught an exception\n");
19     return -1;
20   }
21   return 0;
22 }
23