From 9bc3000782c6c0ca91aa583ba7f549ca96d10cc3 Mon Sep 17 00:00:00 2001 From: ondra05 Date: Fri, 7 Jul 2023 14:36:40 +0200 Subject: [PATCH] assert char bit --- hbbytecode/hbbytecode.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hbbytecode/hbbytecode.h b/hbbytecode/hbbytecode.h index fcc95b35..14471cec 100644 --- a/hbbytecode/hbbytecode.h +++ b/hbbytecode/hbbytecode.h @@ -4,8 +4,11 @@ #pragma once #include +#include #include +static_assert(CHAR_BIT == 8, "Cursed architectures are not supported"); + enum hbbc_Opcode: uint8_t { hbbc_Op_NOP, hbbc_Op_ADD, hbbc_Op_MUL, hbbc_Op_AND, hbbc_Op_OR, hbbc_Op_XOR, hbbc_Op_SL, hbbc_Op_SR, hbbc_Op_SRS, hbbc_Op_CMP, hbbc_Op_CMPU, hbbc_Op_DIR, hbbc_Op_NEG, hbbc_Op_NOT,