ret2jazzy / disasm.pro

A realtime assembler/disassembler (formerly known as disasm.ninja)
https://disasm.pro/
291 stars 31 forks source link

PowerPC: `Error: Invalid operand` if register operands have letters #12

Open SuperSamus opened 2 months ago

SuperSamus commented 2 months ago

For instance, this fails to assemble:

lis r0, 0x3c08
ori r0, r0, 0x8889
stw r0, -4(r1)
lfs f1, -4(r1)

In order to make it assemble, it needs to be changed to:

lis 0, 0x3c08
ori 0, 0, 0x8889
stw 0, -4(1)
lfs 1, -4(1)

This issue only happens when assembling. When disassembling, the Assembly is with the letters. Which makes assembling the disassembled Assembly fail.