GPU/Shader Instruction Set: Difference between revisions
No edit summary |
|||
Line 629: | Line 629: | ||
== Relative addressing == | == Relative addressing == | ||
There are 3 | There are 3 address registers: a0.x, a0.y and aL (loop counter). For format 1 instructions, when IDX != 0, the value of the corresponding address register is added to SRC1's value. For example, if IDX = 2, a0.y = 3 and SRC1 = c8, then instead SRC1+a0.y = c11 will be used for the instruction. | ||
a0.x and a0.y are set manually through the MOVA instruction by rounding a float value to integer precision. Hence, they may take negative values. | |||
aL can only be set indirectly by the LOOP instruction. It is still accessible and valid after exiting a LOOP block, though. | |||
== Comparison operator == | == Comparison operator == |