Skip to content

Commit

Permalink
added 2 new opcodes for the new code
Browse files Browse the repository at this point in the history
  • Loading branch information
i582 committed Jan 16, 2025
1 parent ccbe360 commit aeb57b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion reference/opcodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ opcodes:
SAMEALTSAVE:

# A.8.7. Dictionary subroutine calls and jumps.
CALLDICT: ["int"]
INLINECALLDICT: ["int"]
CALL: ["int"]
JMP: ["int"]
PREPARE: ["int"]
Expand Down Expand Up @@ -804,4 +806,4 @@ opcodes:
CHASHI: ["int"]
CDEPTHI: ["int"]
CHASHIX:
CDEPTHIX:
CDEPTHIX:
6 changes: 3 additions & 3 deletions src/codepage/opcodes.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] }
Expand Down Expand Up @@ -358,7 +359,6 @@ export type OpCodeNoArgs =
| { code: 'RETFALSE' }
| { code: 'RETBOOL' }
| { code: 'CALLCC' }
| { code: 'INLINECALLDICT' }
| { code: 'JMPXDATA' }
| { code: 'CALLXVARARGS' }
| { code: 'RETVARARGS' }
Expand Down Expand Up @@ -682,4 +682,4 @@ export type OpCodeNoArgs =
| { code: 'CHASHIX' }
| { code: 'CDEPTHIX' };

export type OpCode = OpCodeWithArgs | OpCodeNoArgs;
export type OpCode = OpCodeWithArgs | OpCodeNoArgs;

0 comments on commit aeb57b2

Please sign in to comment.