Goto Statements: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
m 1 revision imported
Andrew Branscom (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:SCI Pages]]
[[Category:SCI Pages]]
[[Category:Temp SCI Pages]]
[[Category:Temp SCI Pages]]
This can be accomplished with inline assembly code.  Verbatim from the 'Inline Assembly' page in the SCI Studio Help File:
[[Category:SCI Pages to be Edited]]
 
<div align="center"><span style="font-size: 22pt">Goto Statements</span><br />''By [[]]''</div>
 
<br />
==<br /> Introduction ==
 
Goto statements can be accomplished with inline assembly code.  Verbatim from the '[[sci:SCIStudio3Help/SCC/Inline_Assembly.html|Inline Assembly]]' page in the SCI Studio Help File:
 
<div class="CodeBlockHeader">Code:</div>
<div class="CodeBlockHeader">Code:</div>
<syntaxhighlight lang="sci" class="cs">
<syntaxhighlight lang="sci" class="cs">
Line 11: Line 19:
</syntaxhighlight>
</syntaxhighlight>


Note that the inline assembly code functionality is implemented in SCI Studio, but not in SCI Companion.
<div align="center"><span class="Alert">'''''Note that the inline assembly code functionality is implemented in SCI Studio, but not in SCI Companion.'''''</span></div>
 
==<br /> References ==
 
<references />
 
==<br /> Related Links ==


* &nbsp;
&nbsp;
[[Category:Examples]]
[[Category:Examples]]
[[Category:SCI Examples]]
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:SCI Scripting]]
[[Category:Syntax]]
[[Category:Syntax]]
[[Category:SCI Syntax]]

Latest revision as of 14:10, 29 April 2025


Goto Statements
By [[]]



Introduction

Goto statements 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.


References



Related Links

  •