← Back to Instruction Set: Quick Reference
Internal function call
Opcode 0x25
internalCallStack.push({callPc: PC, returnPc: PC + instructionSize}); PC = locPushes current PC and return PC onto internal call stack, then jumps to the target location. While this instruction itself does not validate the jump target, an invalid target will trigger an instruction fetching error at the start of the next instruction's processing.
| Component | Value |
|---|---|
| L2 Base | 9 |
| DA Base | 0 |
* See Gas Metering for details on how gas costs are computed and applied.
| Name | Type | Description |
|---|---|---|
loc |
Memory offset | Immediate bytecode offset of the function to call |
See Wire Format page for an explanation of wire format variants and opcode naming (e.g., why ADD_8 vs ADD_16).
INTERNALCALL (Opcode 0x25):
---
title: "INTERNALCALL"
config:
packet:
bitsPerRow: 40
---
packet-beta
0-7: "Opcode (0x25)"
8-39: "Operand: loc"