-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcorewar.man
52 lines (52 loc) · 2.07 KB
/
corewar.man
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.\" Manpage for corewar_x86.
.\" Contact sebastien@chapuis.co to correct errors or typos.
.TH COREWAR_x86 "1" "August 2014" "1.0" "Corewar_x86 man page"
.SH NAME
.PP
corewar \- a game where little programs fight in a virtual machine
.SH SYNOPSIS
.PP
\fB./corewar\fR [\fB-dump\fR \fI nbr_cycle\fR] [[\fB-n\fR \fIprog_number\fR] [\fB-a\fR \fIload_address\fR] \fIprog_name\fR]... [\fB-d\fR]
.SH DESCRIPTION
.PP
The corewar is a very particular game. The objective is to stop others programs by all means. The winner is the last who execute a "live" instruction.
.PP
The game is divided in 3 parts :
.TP
\fBThe assembler [See https://github.com/sebastiencs/corewar for this part]\fR
It writes the programs who fights. It understands the assembler language and generate binary files understandable by the virtual machine.
.TP
\fBThe virtual machine\fR
It loads the binaries generated by the assembler in an arena, which offer a lot of possibilities for the champions. It can execute several programs at the same time.
.br
You can leave the virtual machine by hitting the ESC key. You can pause the execution of the virtual machin by hitting SPACE key. While in pause, if you hit three times the D key, the memory will be dumped.
.br
The virtual machine can also desassemble a program when used with \fI-d\fR parameter.
.TP
\fBThe champion\fR
It is the program who fights in the virtual machine. It is written in the assembler language. It will be compilated by the assembler
.SH OPTIONS
.TP
\fB-a\fR \fBload_adress\fR
Modify the adress of the next program.
.TP
\fB-d\fR
Desassemble the champions given in parameters and exit.
.TP
\fB-dump\fR \fInbr_cycle\fR
Dump the memory after \fInbr_cycle\fR cycles. After the memory being dumping, we exit the game.
.TP
\fB-n\fR \fIprog_number\fR
Modify the number of the next program
.SH EXAMPLES
.TP
\fB./corewar roller.cor try_again.cor
It will launch the virtual machine with the champion roller.cor fighting the champion try_again.cor
.SH SEE ALSO
No related manpage.
.SH REPORTING BUGS
No known bugs.
.br
Report corewar_x86 bugs to sebastien@chapuis.co
.SH AUTHOR
Sebastien Chapuis