Fandom

GoldenEye Wiki

GE Action 01 - Go To Beginning, Then Proceed to Label

471pages on
this wiki
Add New Page
Talk0 Share

Action 01 starts at the beginning of the action block and continues execution at the first matching label. It is the equivalent of Perfect Dark's action 0001.

ReferenceEdit

01XX

01 Action Type
XX Label

DescriptionEdit

Unlike the proceed to label action and a normal return value, this action starts at the beginning of the current block and continues execution at the first matching label. If more than one label shares the same value, the block continues from the first one listed in the action block. If the label is not found before the end of the block the action terminates.

ExampleEdit

  1. ... beginning of block
  2. 0220 start execution here after command
  3. 03
  4. 0120 start at 0220
  5. ...
  6. ...
  7. 0220 will not jump to this label

As you can see, when you take the 0120 jump, it returns to the first matching label in the action block at line two. In this case, the action will never even run to the second label on line seven.

This action is perfect for creating loops. Before any terminator, you will undoubtedly use a go to beginning action in order to return to some earlier code. However, it also raises the possibility of infinite loops.

  1. 0220
  2. 0120

This loop will continue indefinitely. To stop continual execution, add in a leave the routine action as seen in the first example.


See AlsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.