|
Corewar documentation 1.0.0
|
The file containing the instructions functions. More...
#include "../include/corewar.h"Functions | |
| void | execute_instructions (champion_t *champion) |
| Execute the instructions. | |
| int | get_int_from_address (node_t *address, int size) |
| Get int from address. | |
| void | write_int_in_address (champion_t *champion, node_t *address, int value) |
| Write int in address. | |
| int | read_int_in_address (node_t *address, int size) |
| Read int in address. | |
The file containing the instructions functions.
| void execute_instructions | ( | champion_t * | champion | ) |
Execute the instructions.
| champion | The champion to execute the instructions |
| int get_int_from_address | ( | node_t * | address, |
| int | size ) |
Get int from address.
| address | The address to get the int |
| size | The size of the int |
| int read_int_in_address | ( | node_t * | address, |
| int | size ) |
Read int in address.
| address | The address to read the int |
| size | The size of the int |
| void write_int_in_address | ( | champion_t * | champion, |
| node_t * | address, | ||
| int | value ) |
Write int in address.
| champion | The champion to write the int |
| address | The address to write the int |
| value | The value to write |