Repository navigation
Zenkai Opcode PushScriptArg0
Johnathon edited this page Sep 16, 2026
·
1 revision
Pushes the first word of the caller-supplied VM context (the 4-word ctx pointer passed into BytecodeVM_ExecuteScript).
PushScriptArg0()Pushes *(g_VMContextPtr+0) onto the VM stack.
Pushes the first word of the caller-supplied VM context (the 4-word ctx pointer passed into BytecodeVM_ExecuteScript). This is how a script reads arguments handed to it by whatever triggered it (e.g. the entity/interaction that invoked a dialog-attached script). See DBZKit/Dialog_Format.md for how dialog mode-0 script entries receive their context.
Minimal illustrative encoding (synthetic, not from a real ROM script):
0x02, 0x04 // Step -> BytecodeVM_PushScriptArg0| Game | Notes |
|---|---|
| Legacy of Goku 2 | Supported |