ISaGRAF. Version 3.4


IL - 4


test1: LD selector

SUB 1 (* selector: 0 1 *)

BOO (* boolean *)

JMPC test2 (* if selector = 0 then *)

LD true

ST bo1 (* bo1 := true *)

JMP JMPend (* *)

test2: LD true (* *)

ST bo2 (* bo2 := true *)

JMP end: (* IL *)

RET

: . IL - , .

: C N

: ()

:

(* (0 1 2) *)

(* 3 . " 0" *)

(* the JMPC operator *)

JMPex: LD selector (* selector 0 1 2 *)

BOO (* boolean *)

JMPC test1 (* if selector = 0 then *)

LD true

ST bo0 (* bo0 := true *)

RET (* end - return 0 *)

(* selector *)

test1: LD selector