Difference between revisions of "AGIWiki/Interpreter"

Jump to navigation Jump to search
Fix syntax highlighting
(removing link to Sarien, since it's part of ScummVM and all relevant information about the history of Sarien is now in AGIWiki's ScummVM article)
(Fix syntax highlighting)
Line 4: Line 4:


For example, the logic commands:
For example, the logic commands:
<syntax type = "C++">
<source lang="cpp">
v202 = 35;
v202 = 35;
set(f98);
set(f98);
</syntax>
</source>
translate into the sequence of numbers 3 202 35 12 98, or (for those who like hexadecimal notation) 03 CA 23 0C 62. The [[AGIWiki/Assignn|assignn]] command has a bytecode of 3, the command is working with [[AGIWiki/Variable|variable]] number 202, and the variable is being assigned the number 35. The [[AGIWiki/Set|set]] command, with bytecode 12, is going to set [[AGIWiki/Flag|flag]] number 98. When the interpreter reads these codes, it performs the actions that it knows correspond to those codes – this is the part that is called "interpreting."
translate into the sequence of numbers 3 202 35 12 98, or (for those who like hexadecimal notation) 03 CA 23 0C 62. The [[AGIWiki/Assignn|assignn]] command has a bytecode of 3, the command is working with [[AGIWiki/Variable|variable]] number 202, and the variable is being assigned the number 35. The [[AGIWiki/Set|set]] command, with bytecode 12, is going to set [[AGIWiki/Flag|flag]] number 98. When the interpreter reads these codes, it performs the actions that it knows correspond to those codes – this is the part that is called "interpreting."


TrustedUser
2,147

edits

Navigation menu