;; if a > b then1 ;; if b < c then2 e1 else2 e2 ;; else1 e3 .s a 100 b 101 c 102 .a 0 .c ld r1 a ld r2 b ld r3 c sub r0 r1 r2 ;; compare a b jmp GT then1 ;; if a > b then1 trap print r3 ;; else1 e3 jmp always exit :then1 sub r0 r2 r3 ;; compare b c jmp LT then2 trap print r2 ;; else2 e2 jmp always exit :then2 trap print r1 ;; then2 e1 :exit trap stop r0 .a 100 .w 3 2 1 .e