Skip to content

Commit 22023c3

Browse files
committed
✨ feat(compiler): Support operand-less instructions and fix parser crash
1 parent cc0357b commit 22023c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/targets/x86_64/hwm/tbl.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports.AssemblyInstructionDescriptorTable = void 0;
44
const header_cjs_1 = require("../header.cjs");
55
class AssemblyInstructionDescriptorTable {
66
static defineInstructions() {
7-
// Массив инструкций: [мнемоника, базовый опкод]
7+
// Instruction array: [mnemonic, base opcode]
88
const arithmeticInstructions = [
99
['ADD', 0x00], // 00, 01, 02, 03, 04, 05 | 80 /0, 81 /0, 83 /0
1010
['OR', 0x08], // 08, 09, 0A, 0B, 0C, 0D | 80 /1, 81 /1, 83 /1

src/backend/targets/x86_64/hwm/tbl.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class AssemblyInstructionDescriptorTable {
1616
private static instructionSet: Map<string, InstructionDefinition> = new Map();
1717

1818
public static defineInstructions() {
19-
// Массив инструкций: [мнемоника, базовый опкод]
19+
// Instruction array: [mnemonic, base opcode]
2020
const arithmeticInstructions: [string, number][] = [
2121
['ADD', 0x00], // 00, 01, 02, 03, 04, 05 | 80 /0, 81 /0, 83 /0
2222
['OR', 0x08], // 08, 09, 0A, 0B, 0C, 0D | 80 /1, 81 /1, 83 /1

0 commit comments

Comments
 (0)