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

Jméno

+LOOP — FIXME: jednořádkový popis

CORE

Přehled

Překlad: ( do-sys → )
Běh: ( n → ) (R: loop-sys1 → loop-sys2 )

Definováno v: dpANS Forth 6.1.0140 CORE

V době překladu vyhradí místo pro budoucí výskyt LEAVE.

Při běhu přičte n k indexové proměnné smyčky.

Description

Append the run-time semantics given below to the current definition. Resolve the destination of all unresolved occurrences of LEAVE between the location given by do-sys and the next location for a transfer of control, to execute the words following +LOOP.

An ambiguous condition exists if the loop control parameters are unavailable. Add n to the loop index. If the loop index did not cross the boundary between the loop limit minus one and the loop limit, continue execution at the beginning of the loop. Otherwise, discard the current loop control parameters and continue execution immediately following the loop.

Příbuzná slova

DO, I, LEAVE

Příklad použití

# $Id: dict-plus-store.ses,v 1.2 2003/12/28 18:21:58 radek Exp $
Gforth 0.6.2, Copyright (C) 1995-2003 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
VARIABLE v  ok
8 v !  ok
4 v +!  ok
v @ . 12  ok
BYE 

Kód slova v Qurtus Forthu

Příklad 50. *:[90]