mirror of http://shamusworld.gotdns.org/git/rmac
Fix pack/unpack instructions
The GPU-specific PACK and UNPACK instructions share opcode 63. PACK is chosen by encoding '0' in the source operand, and UNPACK is chosen by encoding '1' in the source operand. RMAC had the magic source operand values reversed.
This commit is contained in:
parent
3f937a2ab5
commit
e4747b998a
|
@ -128,8 +128,8 @@ static const struct opcoderecord roptbl[] = {
|
|||
{ MR_NORMI, RI_TWO, 56 },
|
||||
{ MR_NOP, RI_NONE, 57 },
|
||||
{ MR_SAT24, RI_ONE, 62 },
|
||||
{ MR_UNPACK, RI_ONE, 63 + GPUONLY | (0 << 6) },
|
||||
{ MR_PACK, RI_ONE, 63 + GPUONLY | (1 << 6) },
|
||||
{ MR_UNPACK, RI_ONE, 63 + GPUONLY | (1 << 6) },
|
||||
{ MR_PACK, RI_ONE, 63 + GPUONLY | (0 << 6) },
|
||||
{ MR_ADDQMOD, RI_NUM_32, 63 + DSPONLY },
|
||||
{ MR_MOVE, RI_MOVE, 0 },
|
||||
{ MR_LOAD, RI_LOAD, 0 },
|
||||
|
|
Loading…
Reference in New Issue