diff --git a/Instruc.o b/Instruc.o new file mode 100644 index 0000000..20eaf92 Binary files /dev/null and b/Instruc.o differ diff --git a/core b/core new file mode 100644 index 0000000..07f5fe0 Binary files /dev/null and b/core differ diff --git a/core.o b/core.o new file mode 100644 index 0000000..b43add3 Binary files /dev/null and b/core.o differ diff --git a/corewar.out b/corewar.out new file mode 100644 index 0000000..ff355c3 Binary files /dev/null and b/corewar.out differ diff --git a/main.c b/main.c new file mode 100644 index 0000000..545b24c --- /dev/null +++ b/main.c @@ -0,0 +1,20 @@ +#include +#include +#include + +#include "Instruc.h" +#include "core.h" + +int main (int argc, char* argv[]){ + long mainMemory[8000] = {}; + convertFile("redcode/redcode.ass","redcode/virus1.mars"); + convertFile("redcode/redcode.ass","redcode/virus2.mars"); + setupViruses(mainMemory); + + for (int i = 0; i < 8000; ++i) { + if (mainMemory[i] != 0) { + printf("%d -> %ld\n", i, mainMemory[i]); + } + } + +} \ No newline at end of file