shithub: gpufs

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