SAE12_2021/main.c

20 lines
425 B
C
Raw Permalink Normal View History

2021-12-17 15:13:37 +01:00
#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]);
}
}
}