126
edits
Jestar jokin (talk | contribs) m (or ORs, not ANDs) |
Jestar jokin (talk | contribs) (→setVarRange ($26): Added.) |
||
Line 337: | Line 337: | ||
==setVarRange ($26)== | ==setVarRange ($26)== | ||
===Encoding=== | |||
opcode result value[8] (value[8] or value[16])... | |||
===Operation=== | |||
This sets a number of variables to the given parameters. The starting variable is given as "result", and the number of variables to modify is given as "value[8]". This is followed by the same number of values. The values are constants, and can be either 16-bit, if the highest bit of the opcode is set, i.e. $A6; or 8-bit, if the highest bit of the opcode is not set, i.e. $26. Note that all values are affected by this high bit; you can't mix 8 and 16-bit values. | |||
===Descumm example=== | |||
setVarRange(Var[178],9,[0,0,0,0,0,0,0,0,0]); | |||
This sets variables 178 to 186 (inclusive) to 0. | |||
==soundKludge ($4C)== | ==soundKludge ($4C)== |
edits