Upload files to ''
Ok
This commit is contained in:
parent
043b2baba0
commit
6dbc75c640
BIN
corewar.out
Normal file
BIN
corewar.out
Normal file
Binary file not shown.
20
main.c
Normal file
20
main.c
Normal 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]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user