Skip to content

Commit

Permalink
add mnemonics to match
Browse files Browse the repository at this point in the history
  • Loading branch information
pineman committed Oct 1, 2023
1 parent 4d5903b commit 816013b
Show file tree
Hide file tree
Showing 2 changed files with 2,044 additions and 512 deletions.
2 changes: 1 addition & 1 deletion extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ops(false).forEach((x, i) => instruction(x, i));
ops(true).forEach((x, i) => instruction(x, i));

const match = (x, i) => {
console.log(`0x${i.toString(16).toUpperCase()} => unimplemented!(),`);
console.log(`0x${i.toString(16).toUpperCase()} => {\n// ${x[0]}\nunimplemented!()}`);
}

ops(false).forEach((x, i) => match(x, i));
Expand Down
Loading

0 comments on commit 816013b

Please sign in to comment.