GPU/Shader Instruction Set: Difference between revisions

Smea (talk | contribs)
comp ops
Smea (talk | contribs)
No edit summary
Line 293: Line 293:
|  0x23
|  0x23
|  1
|  1
BREAK
BREAKC
Conditionally breaks out of LOOP block. Conditions for this are assumed to work the same was as for IF.
If condition (see [[#Conditions|below]] for details) is true, then breaks out of LOOP block.
|-
|-
|  0x24
|  0x24
Line 300: Line 300:
|  CALL
|  CALL
|  Jumps to DST and executes instructions until it reaches DST+NUM instructions
|  Jumps to DST and executes instructions until it reaches DST+NUM instructions
|-
|  0x25
|  1
|  CALLC
|  If condition (see [[#Conditions|below]] for details) is true, then jumps to DST and executes instructions until it reaches DST+NUM instructions, else does nothing.
|-
|-
|  0x26
|  0x26
|  3
|  3
CALLC
CALLU
|  Jumps to DST and executes instructions until it reaches DST+NUM instructions if BOOL is true
|  Jumps to DST and executes instructions until it reaches DST+NUM instructions if BOOL is true
|-
|-
Line 313: Line 318:
|  0x28
|  0x28
|  2
|  2
IF
IFC
|  If condition (see [[#Conditions|below]] for details) is true, then executes instructions until DST, then jumps to DST+NUM; else, jumps to DST
|  If condition (see [[#Conditions|below]] for details) is true, then executes instructions until DST, then jumps to DST+NUM; else, jumps to DST
|-
|-
Line 333: Line 338:
|  0x2C
|  0x2C
|  2
|  2
|  JMPC?
|  JMPC
Jumps to DST if condition (don't know how condition flags work yet) is true, else does nothing.
If condition (see [[#Conditions|below]] for details) is true, then jumps to DST, else does nothing.
|-
|-
|  0x2E-0x2F
|  0x2E-0x2F