shithub: gpufs

ref: 10954ee4177af81e1892b833d8b33140629f68a4
dir: /ops.h/

View raw version
typedef struct Frame Frame;
struct Frame {
	u32int *pc;
	Frame *next;
};

typedef struct Op Op;
struct Op {
	u32int opcode;
	void (*f)(Frame*,u32int);
};

int oplookup(u32int code, void (**f)(Frame*,u32int));