shithub: gpufs

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