| 193 | }; |
| 194 | |
| 195 | const renderBytes = bytes => { |
| 196 | let s = ""; |
| 197 | for (let i = 0; i < bytes.length; i++) { |
| 198 | if (i != 0) { |
| 199 | s += " "; |
| 200 | } |
| 201 | const hexByte = bytes[i].toString(16); |
| 202 | s += hexByte.length == 2 ? hexByte : "0" + hexByte; |
| 203 | } |
| 204 | return s + repeat(" ", 30 - s.length); |
| 205 | }; |
| 206 | |
| 207 | const renderInst = (mnemonic, operands) => { |
| 208 | if (operands.length == 0) { |