Skip to content

Commit

Permalink
fix memory opcodes (#3)
Browse files Browse the repository at this point in the history
* fix memory opcodes

* use ?? instead of ||
  • Loading branch information
impaulsible authored Mar 25, 2024
1 parent d7e9e3b commit 52711cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const parseIType = (
immediate: immediateString,
} = parsedSchema;

const opcode = ITYPE_OPCODES[name];
const opcode = ITYPE_OPCODES[name] ?? MEMORY_OPCODES[name];

const isBranch = Object.keys(BRANCH_OPCODES).includes(name);

Expand Down

0 comments on commit 52711cd

Please sign in to comment.