LOOP

And back to the beginning we go!




Specifications #


ARGUMENTS:
None


CREATES A TRUE OR FALSE BRANCH?:
No, it does not create a T/F branch.



NUMBER OF CYCLES USED:
0



RANGE:
0


Example of Use #


When the end of the code chain is reached and if a Loop chip is present the chain begins anew from the start.
This Chip is a matter of style, and isn’t necessarily needed. The chain will begin from the start regardless if this Chip is present or not.
For the example below, the Loop Chip (boxed in green) can be completely omitted for the same action result.



History #

“Loop” as  it appears in various historic incarnations of ChipWits!


COMMODORE 64:


MANUAL:
“When your program reaches the end of a panel, you’ l need a way to switch control back to the start chip. The Loop instruction tells the CHIPWIT to go back to the start chip of the current panel and repeat the panel.
When a CHIPWIT encounters this instruction, control will transfer back to the start chip of the current panel and the program will continue from there.”


APPLE II:


MANUAL:
“LOOP commands the ChipWit program to go back to the beginning (the stoplight) of whatever panel it is executing and continue execution from there. LOOP has no Arguments. It, too, is a command to the program rather than a behavioral command to the ChipWit.”


CHIPWITS II (WINDOWS 95):

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *