Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.
/ Corewar Public archive

Projet de fin de première année du cursus Epitech consistant en un assembleur et une machine virtuelle.

License

Notifications You must be signed in to change notification settings

ThibautHH/Corewar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

141 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corewar

Introduction

The Corewar Epitech project is about champion fighting simulation. Pseudo-assembly programs are run in a virtual machine, and the goal is to call last the special instruction live.

Usage

A champion program is a pseudo-assembly program, with the following syntax:

# This is a comment
    .name "<champion name>"
    .comment "<champion description>"

label: # This is a label
    live r1 # This is an instruction
    ld %42, r2 # Load the direct value 42 into the register r2
    ld 42, r3 # Load the indirect value at address 42 into the register r3
    zjmp %:label # Jump to the label

You can then compile your champion program with the asm program:

asm/asm champion.s
ls -l champion.cor

You can then use it with the corewar program:

corewar/corewar champion.cor champion.cor champion2.cor

About

Projet de fin de première année du cursus Epitech consistant en un assembleur et une machine virtuelle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •