<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


ABORT" Search:

In Interpreter Words in TurboForth Kernal

Word Name: ABORT"
Type: Immediate compiling word
Data Stack Signature: flag --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

If flag is true, stops execution, resets stacks, and displays the string. If flag is false then no action is taken.

Example:

: TEST ( -- )
  CR ." Press S to stop" CR
  BEGIN
    42 EMIT
    KEY? ASCII S = ABORT" You pressed S!!"
  AGAIN
;

TEST

Comment:

none

See Also: ABORT 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>