Upload files to ''

Ok
This commit is contained in:
baillyj 2021-12-17 15:13:37 +01:00
parent 043b2baba0
commit 6dbc75c640
5 changed files with 20 additions and 0 deletions

BIN
Instruc.o Normal file

Binary file not shown.

BIN
core Normal file

Binary file not shown.

BIN
core.o Normal file

Binary file not shown.

BIN
corewar.out Normal file

Binary file not shown.

20
main.c Normal file
View File

@ -0,0 +1,20 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#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]);
}
}
}