From aeb57b2a6f2ca7eb45313070a5c5990217c5ab83 Mon Sep 17 00:00:00 2001 From: i582 <51853996+i582@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:49:15 +0400 Subject: [PATCH] added 2 new opcodes for the new code --- reference/opcodes.yaml | 4 +++- src/codepage/opcodes.gen.ts | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/reference/opcodes.yaml b/reference/opcodes.yaml index 74c67cb..638ca96 100644 --- a/reference/opcodes.yaml +++ b/reference/opcodes.yaml @@ -424,6 +424,8 @@ opcodes: SAMEALTSAVE: # A.8.7. Dictionary subroutine calls and jumps. + CALLDICT: ["int"] + INLINECALLDICT: ["int"] CALL: ["int"] JMP: ["int"] PREPARE: ["int"] @@ -804,4 +806,4 @@ opcodes: CHASHI: ["int"] CDEPTHI: ["int"] CHASHIX: - CDEPTHIX: \ No newline at end of file + CDEPTHIX: diff --git a/src/codepage/opcodes.gen.ts b/src/codepage/opcodes.gen.ts index 9cecbad..7e83989 100644 --- a/src/codepage/opcodes.gen.ts +++ b/src/codepage/opcodes.gen.ts @@ -106,8 +106,9 @@ export type OpCodeWithArgs = | { code: 'SAVE', args: [number] } | { code: 'SAVEALT', args: [number] } | { code: 'SAVEBOTH', args: [number] } + | { code: 'CALLDICT', args: [number] } + | { code: 'INLINECALLDICT', args: [number] } | { code: 'CALL', args: [number] } - | { code: 'CALLDICT'; args: [number] } | { code: 'JMP', args: [number] } | { code: 'PREPARE', args: [number] } | { code: 'THROW', args: [number] } @@ -358,7 +359,6 @@ export type OpCodeNoArgs = | { code: 'RETFALSE' } | { code: 'RETBOOL' } | { code: 'CALLCC' } - | { code: 'INLINECALLDICT' } | { code: 'JMPXDATA' } | { code: 'CALLXVARARGS' } | { code: 'RETVARARGS' } @@ -682,4 +682,4 @@ export type OpCodeNoArgs = | { code: 'CHASHIX' } | { code: 'CDEPTHIX' }; -export type OpCode = OpCodeWithArgs | OpCodeNoArgs; +export type OpCode = OpCodeWithArgs | OpCodeNoArgs; \ No newline at end of file