Goto Statements

From SCI Wiki
Revision as of 16:45, 5 August 2013 by Andrew Branscom (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This can be accomplished with inline assembly code. Verbatim from the 'Inline Assembly' page in the SCI Studio Help File:

Code:
// the inline assembly is quite versatile. Here's a crafty example:
(if(something)
  (asm jmp _a_goto_label)
)
(asm _a_goto_label: )

Note that the inline assembly code functionality is implemented in SCI Studio, but not in SCI Companion.