Difference between revisions of "AGIWiki/Interpreter"

Jump to navigation Jump to search
12 bytes removed ,  15:17, 25 October 2018
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
(Created page with "{{AGIWiki}} The '''interpreter''' reads the logic resources that are a part of an AGI game and uses them to run the game. Logic resources are compiled into a b...")
 
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:


For example, the logic commands:
For example, the logic commands:
<syntax type = "C++">
<syntaxhighlight lang="cpp">
v202 = 35;
v202 = 35;
set(f98);
set(f98);
</syntax>
</syntaxhighlight>
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."


Line 25: Line 25:
* [[AGIWiki/MEKA|MEKA]]
* [[AGIWiki/MEKA|MEKA]]
* [[AGIWiki/NAGI|NAGI]]
* [[AGIWiki/NAGI|NAGI]]
* [[AGIWiki/Sarien|Sarien]]
* [[AGIWiki/ScummVM|ScummVM]]
* [[AGIWiki/ScummVM|ScummVM]]


TrustedUser
2,147

edits

Navigation menu