rizinorg / rizin

UNIX-like reverse engineering framework and command-line toolset.
https://rizin.re
GNU Lesser General Public License v3.0
2.51k stars 341 forks source link

Support for assembling slti instructions. #4508

Closed matteius closed 1 month ago

matteius commented 1 month ago

Your checklist for this pull request

Detailed description

I extended my local version of cutter to be able to insert multiple MIPs instructions at once, then I realized it can dissasemble slti isntructions but not re-assemble them so I was getting errors inserting these.

Test plan

Just trying to help, but before this change this would fail:

(base) matteius@matteius-3-0:~/cutter/build$ ./Rizin-prefix/bin/rz-asm -a mips -b 32 'slti v0, a0, 9'
09008228

Closing issues Not sure if this has been reported in any issues yet.

wargio commented 1 month ago

please add a test under the tests/db/asm dir

matteius commented 1 month ago

@wargio Are the asm tests there just testing that it can compute the assembly of an instruction using in this case slti? Also I don't see a regular mips32 or mips test file, but I do see mips64 ...

wargio commented 1 month ago

you are right. that is indeed an issue. ok for me then.

wargio commented 1 month ago

https://github.com/rizinorg/rizin/issues/4509