Fix wrong OPCODEs for OR/AND

master
vhaudiquet 1 year ago
parent bb1427f77b
commit 0adbd15225
  1. 4
      src/cpu/instruction.h

@ -74,8 +74,8 @@
#define FUNC3_SRL_SRA 0x5
#define FUNC7_SRL 0x0
#define FUNC7_SRA 0x20
#define FUNC3_OR 0x7
#define FUNC3_AND 0x8
#define FUNC3_OR 0x6
#define FUNC3_AND 0x7
/* OPCODE_SYSTEM sub functions (func3 + imm) */
#define FUNC3_ECALL_EBREAK 0x0

Loading…
Cancel
Save