@@ -7,8 +7,6 @@ export type arg =
77 | plduzArg
88 | tinyInt
99 | largeInt
10- | runvmArg
11- | hash
1210 | minusOne
1311 | s1
1412 | setcpArg
@@ -62,12 +60,6 @@ export const s1: s1 = {$: "s1"}
6260export type minusOne = { $ : "minusOne" }
6361export const minusOne : minusOne = { $ : "minusOne" }
6462
65- export type runvmArg = { $ : "runvmArg" }
66- export const runvmArg : runvmArg = { $ : "runvmArg" }
67-
68- export type hash = { $ : "hash" }
69- export const hash : hash = { $ : "hash" }
70-
7163// special case: [-15, 239]
7264export type setcpArg = { $ : "setcpArg" , range : range }
7365export const setcpArg : setcpArg = { $ : "setcpArg" , range : range ( - 15n , 239n ) }
@@ -565,6 +557,7 @@ const uint7 = uint(7, uint7range)
565557const uint8 = uint ( 8 , uint8range )
566558const uint11 = uint ( 11 , uint11range )
567559const uint14 = uint ( 14 , uint14range )
560+ const hash = uint ( 8 , { min : 0n , max : 4n } )
568561
569562export const instructions : Record < string , Opcode > = {
570563 PUSHNAN : cat ( "int_const" , mksimple ( 0x83ff , 16 , `exec_push_nan` ) ) ,
@@ -1368,7 +1361,7 @@ export const instructions: Record<string, Opcode> = {
13681361 SAVEALTCTR : cat ( "continuation_change" , mkfixedrangen ( 0xedb0 , 0xedb8 , 16 , 4 , seq ( control ) , `exec_savealt_ctr` ) ) ,
13691362 SAVEBOTHCTR : cat ( "continuation_change" , mkfixedrangen ( 0xedc0 , 0xedc8 , 16 , 4 , seq ( control ) , `exec_saveboth_ctr` ) ) ,
13701363
1371- RUNVM : version ( 4 , cat ( "continuation_jump" , mkfixedn ( 0xdb4 , 12 , 12 , seq ( runvmArg ) , `exec_runvm` ) ) ) ,
1364+ RUNVM : version ( 4 , cat ( "continuation_jump" , mkfixedn ( 0xdb4 , 12 , 12 , seq ( uint ( 12 , { min : 0n , max : 511n } ) ) , `exec_runvm` ) ) ) ,
13721365
13731366 // special case: numeric
13741367 "2SWAP" : cat ( "stack" , mksimple ( 0x5a , 8 , `exec_2swap` ) ) ,
0 commit comments