This commit is contained in:
Richard
2026-03-26 18:43:01 +01:00
commit 9616a8236b
25 changed files with 2773 additions and 0 deletions

25
farm/ant.h Normal file
View 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);