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

ARM writeback on post-index #1507

Closed
deadeert opened this issue Jun 13, 2019 · 2 comments
Closed

ARM writeback on post-index #1507

deadeert opened this issue Jun 13, 2019 · 2 comments

Comments

@deadeert
Copy link

Hello,

I just wonder why post-index for instruction such as LDRD Rd, [Rs], #imm is considered as writeback ?
e0c020d4 ldrd r2, [r0], #4

i=tuple(cs.disasm(b'\xd4\x20\xc0\xe0',0))[0]
i.writeback
True

According to ARM manual it should not be.

@c01dkit
Copy link

c01dkit commented Aug 22, 2023

Hi @deadeert , In your case, Rs will be modified (writeback) after loading 4 bytes Rs+imm. You can refer to the manual here ARM Cortex-M3

@Rot127
Copy link
Collaborator

Rot127 commented Aug 22, 2023

@kabeor Can be closed I guess

@kabeor kabeor closed this as completed Aug 23, 2023
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

4 participants