Summary: | PACK and UNPACK GPU RISC instructions are swapped | ||
---|---|---|---|
Product: | RMAC | Reporter: | James Jones <atari> |
Component: | Core | Assignee: | Shamus Hammons <jlhamm> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | jlhamm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: |
Fix
Test case demonstrating the bug |
Created attachment 181 [details]
Test case demonstrating the bug
Attaching a trivial test case. The screen will be yellow when it's working, red when it's not.
Thanks for the patch! :-) |
Created attachment 180 [details] Fix 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.