From: bylex Date: Wed, 26 Mar 2025 07:29:49 +0000 (+0100) Subject: Add missing c file X-Git-Url: https://git.bylex.cz/?a=commitdiff_plain;h=2b49bb448e0ad9b51faadb534c14638864c966b1;p=maturita.git Add missing c file --- diff --git a/common.c b/common.c new file mode 100644 index 0000000..c44bf23 --- /dev/null +++ b/common.c @@ -0,0 +1,5 @@ +#include "common.h" + +char opcodes_strings[N_INSTRUCTIONS][4] = {"nop", "inc", "dec", "lod", "ldl", "sav", "swp", "jmp", "jez", "hlt", "pts", "pfs", "dpx", "lor", "fdr"}; + +uint8_t opcode_kind[N_INSTRUCTIONS] = {0, 2, 2, 1, 1, 1, 1, 4, 1, 0, 5, 5, 3, 2, 0};