projects
/
maturita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9097ddf
)
Add missing c file
author
bylex
<mbilek06@gmail.com>
Wed, 26 Mar 2025 07:29:49 +0000
(08:29 +0100)
committer
bylex
<mbilek06@gmail.com>
Wed, 26 Mar 2025 07:29:49 +0000
(08:29 +0100)
common.c
[new file with mode: 0644]
patch
|
blob
diff --git a/common.c
b/common.c
new file mode 100644
(file)
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};