shithub: pronterfs

ref: c3b784ac16bbf3f62d8d3aec49acebd2f6c77fee
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);