• Opcode: 0x005
  • Short name: LBL
  • Long name: Label

Argument

Script ID.

Stack

No change.

Description

Specify the absolute identifier of the script. Each script must start with this opcode to clear out the temp list onto the stack. The ID itself is ignored during execution but used elsewhere as an identifier. The handler pushes all eight temp-list/I registers (entity +320) onto the argument stack and zeroes them; if the entity’s “result pending” flag (bit 0x20 at +352) is set it also seeds I[0] with 1. Returns 2.

PC handler: SCRIPT_LBL.

Function addresses

Function Address Description
SCRIPT_LBL 0x51C570 Field script opcode handler (verified IDA function)