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

Data Proc R15 Dest Edge Case #39

Closed
reissGRVS opened this issue Oct 27, 2019 · 0 comments
Closed

Data Proc R15 Dest Edge Case #39

reissGRVS opened this issue Oct 27, 2019 · 0 comments

Comments

@reissGRVS
Copy link
Owner

Writing to R15
When Rd is a register other than R15, the condition code
flags in the CPSR may be updated from the ALU flags as
described above.
When Rd is R15 and the S flag in the instruction is not set
the result of the operation is placed in R15 and the CPSR is
unaffected.
When Rd is R15 and the S flag is set the result of the operation
is placed in R15 and the SPSR corresponding to the
current mode is moved to the CPSR. This allows state
changes which atomically restore both PC and CPSR. This
form of instruction should not be used in User mode.

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