$Header: /home/radek/cvs/forth-book/dictionary/ansi/1700.if,v 1.1 2003/12/28 18:21:57 radek Exp $

Jméno

IF — větvení programu podle podmínky

CORE

Přehled

( cond → )

Definováno v: dpANS Forth 6.1.1700 CORE

Viz.: ELSE, THEN

Description

Put the location of a new unresolved forward reference orig onto the control flow stack. Append the run-time semantics given below to the current definition. The semantics are incomplete until orig is resolved, e.g., by THEN or ELSE.

Run-time: ( x -- )

If all bits of x are zero, continue execution at the location specified by the resolution of orig.

Popis

Slovo IF je součástí konstrukce {xref linkend="if...then"/} a {xref linkend="if...else...then"/}.

Kód slova v Quartus Forth

BC4A:    JSR     $-4442(A2)
BC4E:     JSR      $-43C6(A2)
BC52:     RTS          ;= EXIT