Difference between revisions of "SCI/Specifications/SCI virtual machine/The Sierra PMachine"

Jump to navigation Jump to search
m
lea: fixed HTML style `&` to `&`
m (Fix calle byte count)
m (lea: fixed HTML style `&` to `&`)
Line 504: Line 504:
::set if the accumulator is to be used as additional index  
::set if the accumulator is to be used as additional index  
:::Because it is so hard to explain, I have made a transcription of it here:
:::Because it is so hard to explain, I have made a transcription of it here:
<syntaxhighlight lang="C">
<syntaxhighlight lang="c">
short *vars[4];
short *vars[4];


Line 511: Line 511:
int lea(int vt, int vi)
int lea(int vt, int vi)
{
{
   return &((vars[(vt >> 1) &amp; 3])[vt &amp; 0x10 ? vi+acc : vi]);
   return &((vars[(vt >> 1) & 3])[vt & 0x10 ? vi+acc : vi]);
}
}
</syntaxhighlight>
</syntaxhighlight>
2

edits

Navigation menu