shithub: gpufs

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