initial
This commit is contained in:
25
farm/ant.h
Normal file
25
farm/ant.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifdef DEBUG
|
||||
#define NUM_ANTS 1
|
||||
#else
|
||||
#define NUM_ANTS 200
|
||||
#endif
|
||||
|
||||
struct Ant {
|
||||
unsigned char id;
|
||||
unsigned int pc;
|
||||
unsigned short cell;
|
||||
unsigned char carrying;
|
||||
int r0;
|
||||
int r1;
|
||||
int r2;
|
||||
int r3;
|
||||
int r4;
|
||||
int r5;
|
||||
int r6;
|
||||
int r7;
|
||||
int jr;
|
||||
|
||||
};
|
||||
|
||||
struct Ant* create_ants();
|
||||
void reset_ants(struct Ant* ants, unsigned short nest);
|
||||
Reference in New Issue
Block a user