// file : arch/null/arch_inst.c // project : Salis-VM // author : Paul Oliver #include #include #include #include #define ARCH_EXPORT_INST_COUNT #include "arch_spec.h" #include "arch_inst.h" wchar_t arch_inst_symbol(uint8_t inst) { assert(inst < ARCH_INST_COUNT); switch (inst) { case 0: return L'⢀'; case 1: return L'⢁'; case 2: return L'⢂'; case 3: return L'⢃'; } assert(false); return L'\0'; } const char *arch_inst_mnemonic(uint8_t inst) { assert(inst < ARCH_INST_COUNT); switch (inst) { case 0: return "null 0"; case 1: return "null 1"; case 2: return "null 2"; case 3: return "null 3"; } assert(false); return NULL; }