SHBIN: Difference between revisions

Gericom (talk | contribs)
Line 69: Line 69:
|}
|}


=== Opcodes ===
== Instructions ==
 
=== Encoding ===
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
!Opcode
!Name
!Description
!Description
!Encoding
|-
|-
|0x02
|DOT3
|DP4
|Dot product vec3*vec3
|0000 01DD DDDD ??AA AAAA BBBB BBXX XXXX
|-
|DOT4
|Dot product vec4*vec4
|0000 10DD DDDD ??AA AAAA BBBB BBXX XXXX
|-
|-
|0x13
|MOV
|MOV
|Move register
|0010 01DD DDDD ??AA AAAA 0000 00XX XXXX
|-
|CALL
|Call subroutine
|1001 00SS SSSS SSSS SSSS SSLL LLLL LLLL
|}
=== Fields ===
{| class="wikitable" border="1"
|-
!Name
!Description
|-
|D
|dest register
|-
|A
|opA register
|-
|B
|opB register
|-
|X
|extension id
|-
|S
|absolute offset for subroutine (in words)
|-
|L
|number of instructions to execute in subroutine
|}
|}