Sw send

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: sw_send R1

  • R1 = Switch number
  • R2 = Floor #
  • R3 = Lock State

Use

Changes the switch state of the given switch, if R3 = 1, then unlock.

Example


100:     leti 00000005 R1 //Switch #5
         leti 00000001 R2 //Floor #1
         leti 00000001 R3 //Unlock
         sw_send R1 // Perform the opcode with the above parameters
         ret