MCPcopy Create free account
hub / github.com/MaxBittker/rs-sdk / isLargeOperand

Function isLargeOperand

server/engine/src/engine/script/ScriptFile.ts:19–34  ·  view source on GitHub ↗
(opcode: number)

Source from the content-addressed store, hash-verified

17};
18
19function isLargeOperand(opcode: number): boolean {
20 if (opcode > 100) {
21 return false;
22 }
23
24 switch (opcode) {
25 case ScriptOpcode.RETURN:
26 case ScriptOpcode.POP_INT_DISCARD:
27 case ScriptOpcode.POP_STRING_DISCARD:
28 case ScriptOpcode.GOSUB:
29 case ScriptOpcode.JUMP:
30 return false;
31 }
32
33 return true;
34}
35
36// compiled bytecode representation
37export default class ScriptFile {

Callers 1

decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected