shithub: pronterfs

ref: ca59c67aaaddd3409efa08ab1299821274559768
dir: /machine.h/

View raw version
typedef struct Program Program;

struct Program {
	char* data;
	ulong size;
	char* pc;
};

enum Command {
	M_Start,
	M_Stop,
	M_Status,
};

extern Program program;

void startmachine(void);
void stopmachine(void);

int initmachine(char *file, Channel *c);
void machineloop(void *c);