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

判断指令集 #26

Open
Mars-GZ opened this issue Mar 20, 2019 · 1 comment
Open

判断指令集 #26

Mars-GZ opened this issue Mar 20, 2019 · 1 comment

Comments

@Mars-GZ
Copy link

Mars-GZ commented Mar 20, 2019

求问大佬目标地址值的bit[0]为什么能确定目标地址的指令类型?

@yongyecc
Copy link

ARM指令集切换到Thumb是通过分支执行条内存地址为奇数的指令,当然这条指令存储的位置还是偶数的,只是将这个奇数减一就可以得到指令真实地址。之后如果通过PC寄存器每次加2来得到奇数的内存地址来执行指令,所以一直都是Thumb模式,如果出现分支跳转到一个偶数指令,就会切回ARM指令集,可能是这样吧

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

2 participants