Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmpwi instruction missing/not disassembled #10

Open
DacoTaco opened this issue Dec 26, 2020 · 0 comments
Open

cmpwi instruction missing/not disassembled #10

DacoTaco opened this issue Dec 26, 2020 · 0 comments

Comments

@DacoTaco
Copy link

DacoTaco commented Dec 26, 2020

i wanted to look at ghidra using a binary i knew 100% what it did and what was what, so i threw my loader from priiloader in it.
to my surprise it wasn't able to disassemble all the asm.

ive included a zip with the binary, the map & .s generated by gcc.
loader.zip

when i reached the main function ( @ 0x58C ) , and pressed D to disassemble it seems to not be able to disassemble the first instruction ( 0x2C030000 : cmpwi r3, 0 ), all the rest seems ok.
weirdly enough it recognizes a cmpwi r4, 0 (0x2E040000 @ 0x5A0 ) later on correctly...?

from what i quickly saw online this seems to be something the cpu language has to fix, but if im wrong go ahead and scold at me. this is the first thing i have ever done in ghidra haha

i've also verified with shell-storm.org that the data is ok :
http://shell-storm.org/online/Online-Assembler-and-Disassembler/?opcodes=2C+03+00+00%0D%0A4D+82+00+20+%0D%0A94+21+FF+E8+%0D%0A7D+80+00+26&arch=ppc64&endianness=big&dis_with_addr=True&dis_with_raw=True&dis_with_ins=True#disassembly

@DacoTaco DacoTaco changed the title instruction cmpwi missing cmpwi instruction missing/not disassembled Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant