figForth Word - WHILE

  Some parts of this page/site are currently incomplete & will be updated asap
  Other parts will change continually so use “Refresh” in your browser !!
  There is extensive use of “Tooltips” text to support learning which do
not seem to render on a Smartphone


WHILE f — (run-time) ad1 nl — ad1 n1 ad2 n2 p,C2 Occurs in a colon-definition in the form: BEGIN … WHILE (tp) … REPEAT At run-time, WHILE selects conditional execution based on boolean flag f. If f is true (non-zero), WHILE continues execution of the true part thru to REPEAT, which then branches back to BEGIN. If f is false (zero), execution skips to just after REPEAT, exiting the structure. At compile time, WHILE emplaces (0BRANCH) and leaves ad2 of the reserved offset. The stack values will be resolved by REPEAT

NFA:    007439 C5               DB   0C5H
        00743A 5748494C         DB   "WHIL"
        00743E C5               DB   'E'+80H
LFA:    00743F 1874             DW   _ELSE-7
CFA:    007441 3C28      WHILE: DW   DOCOL          ;   :
PFA:    007443 0874             DW   _IF            ;   IF
        007445 C767             DW   TWO            ;   2
        007447 1725             DW   SEMIS          ;   ;

The Meaning of the Dictionary Fields:

NFALFACFAPFA


Updated: 24th August 2022 by David Husband
© 2021 David Husband, a.k.a. Baremetal Engineer Extraordinaire
All Rights Reserved – All Trademarks & Copyrights Acknowledged
All personal information is subject to the Data Protection Act 2018 & the UK GDPR
“ad auxilium aliis ad auxilium sibi”