20 lines
425 B
C
20 lines
425 B
C
|
#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]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|