Skip to content

Improve debugger assemble/disassemble compatiblity - #21892

Merged
hrydgard merged 1 commit into
hrydgard:masterfrom
tclamb:master
Jul 8, 2026
Merged

hrydgard merged 1 commit into
hrydgard:masterfrom
tclamb:master

Conversation

@tclamb

@tclamb tclamb commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

I identified & tested these changes via a websocket API script that disassembled each instruction in a game's .text, assembled the output, disassembled again & checked for differences.

Update armips for VFPU instruction parsing changes:

Remove brackets from VFPU instruction vpfx* param disassembly

Rename VFPU instruction vuc2i.s to vuc2ifs.s

Add brackets to VFPU instruction vpfxd saturation operations (i.e. [0:1] & [-1:1])

Rename FPU instructions c.$OP to c.$OP.s

Fix VFPU instruction vuc2ifs.s vd size in disassembly

Replace CC[imm3] with imm3 in VFPU instructions vcmov* & bv* disassembly

Update armips for VFPU instruction parsing changes:
- Kingcom/armips#255
- Kingcom/armips#256

Remove brackets from VFPU instruction `vpfx*` params

Rename VFPU instruction `vuc2i.s` to `vuc2ifs.s`

Add brackets to VFPU instruction `vpfxd` saturation operations (i.e. [0:1] & [-1:1])

Rename FPU instructions `c.$OP` to `c.$OP.s`

Fix VFPU instruction `vuc2ifs.s` `vd` size in disassembly

Replace `CC[imm3]` with `imm3` in VFPU instructions `vcmov*` & `bv*` disassembly
@hrydgard

hrydgard commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Seems good. Since there are likely not that many users of this functionality currently, I won't worry too much about breaking existing use cases and if so they are easily fixed.

@hrydgard hrydgard added this to the v1.21 milestone Jul 8, 2026
@hrydgard
hrydgard enabled auto-merge July 8, 2026 08:22
@hrydgard
hrydgard merged commit 9a03ab6 into hrydgard:master Jul 8, 2026
23 checks passed
@Nemoumbra

Nemoumbra commented Jul 17, 2026 •

Copy link
Copy Markdown
Collaborator

Does this fix the vhtfm4.q issue?

@Nemoumbra

Copy link
Copy Markdown
Collaborator

https://github.com/hrydgard/pspautotests/blob/258fa5a8d61844a9aa990121cec920a5c2da2e06/tests/cpu/vfpu/matrix.c#L233

vhtfm4.q R200, M700, R600
I can't Assemble Opcode that in PPSSPP.

@tclamb

tclamb commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Fix for vhtfm4.q & other issues identified in pspautotests binaries in #22083.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants