68,823
edits
No edit summary |
No edit summary |
||
Line 122: | Line 122: | ||
As it might be seen from the table two bytes <code>{{hint|02 00|little-endian format}}</code> could have 3 different meanings as a parameter: if it's preceeded by a data type of 2 it is a global variable (<span style="color:blue">$2</span>), data type of 3 – local variable (<span style="color:blue">2@</span>), data type of 5 - 16-bit number (<span style="color:maroon">2</span>), so only the data type allows the game to determine the correct parameter meaning. | As it might be seen from the table two bytes <code>{{hint|02 00|little-endian format}}</code> could have 3 different meanings as a parameter: if it's preceeded by a data type of 2 it is a global variable (<span style="color:blue">$2</span>), data type of 3 – local variable (<span style="color:blue">2@</span>), data type of 5 - 16-bit number (<span style="color:maroon">2</span>), so only the data type allows the game to determine the correct parameter meaning. | ||
Data types for [[Liberty City Stories]] and [[Vice City Stories]] are much different. First of all, many data types itself denote an immediate value. For example, data type 01 is a value of 0, data type 02 - 0.0, etc. The floating-point values are packed (1, 2 or 3 bytes of length instead of [[Wikipedia:IEEE_754-1985#Single-precision_32-bit|common 4]]). Some data types itself are the names of variables. | Data types for [[Grand Theft Auto: Liberty City Stories|Liberty City Stories]] and [[Grand Theft Auto: Vice City Stories|Vice City Stories]] are much different. First of all, many data types itself denote an immediate value. For example, data type 01 is a value of 0, data type 02 - 0.0, etc. The floating-point values are packed (1, 2 or 3 bytes of length instead of [[Wikipedia:IEEE_754-1985#Single-precision_32-bit|common 4]]). Some data types itself are the names of variables. | ||
{|class="prettytable collapsible" | {|class="prettytable collapsible" |