summaryrefslogtreecommitdiff
path: root/sux.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-01-29 10:56:20 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2022-01-29 10:56:47 -0400
commit650254f06a6955227b241da2a19268bfc87d96ee (patch)
tree75d3f29e0684deb85cbe46f5871e83cc0ebe02a4 /sux.h
parent1ef1029d2247095971488b3862bd2f4270720115 (diff)
sux.h: Make `msb` non const.
Diffstat (limited to 'sux.h')
-rw-r--r--sux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sux.h b/sux.h
index 0a6b964..b3b78d7 100644
--- a/sux.h
+++ b/sux.h
@@ -1800,8 +1800,8 @@ static /*inline*/ void exec_base_inst(struct sux *cpu, uint8_t opcode, uint8_t p
#define inst(op, ext) \
static /*inline*/ void inst_##op(struct sux *cpu, uint8_t prefix, uint8_t size, int inc_pc, int inc_clk, uint8_t thread) { \
const unsigned int o8 = 0x##op / 32, o8m = 1 << (0x##op % 32); \
- const uint8_t msb = size*8; \
uint8_t rs = ((1 << ((prefix >> 4) & 3)) - 1); \
+ uint8_t msb = size*8; \
uint8_t carry = 0; \
uint64_t sign = 0; \
uint64_t addr = 0, idx = 0, tmp = 0, tmp2 = 0; \