Goto Statements: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
m 1 revision
 
Andrew Branscom (talk | contribs)
m 1 revision imported
(No difference)

Revision as of 17:29, 26 April 2025

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.