diff --git a/README.md b/README.md index b677f7e..a306ead 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ isa.instructions.forEach(function(inst) { // a single instruction each time it provides an array of instructions sharing the // same name. isa.forEachGroup(function(name, insts) { - console.log(`Instruction ${name}`:); + console.log(`Instruction ${name}:`); for (var i = 0; i < insts.length; i++) { const inst = insts[i]; console.log(` [${inst.encoding}] ${inst.opcodeString}`); @@ -133,7 +133,7 @@ for (var i = 0; i < insts.length; i++) { const names = isa.instructionNames; for (var i = 0; i < names.length; i++) { const name = names[i]; - const insts = x86.query(name); + const insts = isa.query(name); // ... } ```