shithub: gpufs

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