Closed marco-calautti closed 2 months ago
Oooh, that's definitely sounding like a copy paste mistake in the assembler code. Should be an easy fix, thank you. https://github.com/grumpycoders/pcsx-redux/blob/main/src/supportpsx/assembler/pseudo.lua#L40
Also reading this, it doesn't handle the full lui case of doing li XX, 0x12340000
.
Describe the bug
When trying to assemble an instruction like li $a0,4 the resulting instruction is instead lui a$0,4. I Need to write addiu $a0,@r0,4 to get the desired effect.
Expected behavior
The correct instruction is assembled. Considering pcsx-redux is able to show pseudo instructions like li, It would be useful to also be able to assemble them. If this is not desired, then it would be better to issue an error, rather than assembling to the wrong instruction.
Steps to reproduce the bug
Operating System
Arch Linux
PCSX-Redux version
Current latest AppImage
CPU model
i7
GPU model & Drivers
gtx 1650ti
BIOS version
SCPH1001
Options
Iso checks
No response
Logs
No response
Additional information
No response