Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/code.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
#define OP_END };
#include "opcodes.h"

#define OP(_,_a,_b,_c) (_a == R ? 1 : 0),
#define OP_BEGIN static unsigned char hl_op_writes[] = {
#define OP_END };
#include "opcodes.h"

bool hl_opcode_writes( hl_op op ) {
return (bool)hl_op_writes[op];
}

#define OP(n,_a,_b,_c) #n,
#define OP_BEGIN static const char *hl_op_names[] = {
#define OP_END };
Expand Down
Loading
Loading