Core War is a 1984 programming game created by D. G. Jones and A. K. Dewdney in which two or more battle programs compete for control of a virtual computer. These battle programs are written in an abstract assembly language called Redcode.(Wikipedia)
- The assembler: this is the program that will compile champions and translate them from the language written them in (assembly language) into “Bytecode”. Bytecode is a machine code, which will be directly interpreted by the virtual machine.
- The virtual machine: It’s the “arena” in which champions will be executed. It offers various functions, all of which will be useful for the battle of the champions. Obviously, the virtual machine should allow for numerous simultaneous processes.
- The champion: It's necessary to create a simple champion just to prove the program functionality.
- The disassembler: this program will generate the assembly source code from the compiled machine code. it's not guaranteed that the generated source code will be identical to the original source code.
Before you start, make sure that sdl2 is installed in your machine and update folder lib with your lib files.
make
programs:
- Corewar: It’s the “arena” in which champions will be executed
- asm: It's the assembler
- dsm: It's the disassembler
- visu: It's the visualization
make [program]
make clean
make fclean
make re
jalalium && Ayoub Alaoui
MIT License.