Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
ARM7TDMI - Exceptions
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
119 subscribers
Views
2410 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
ARM7TDMI - Exceptions
Junaid Kk
over 12 years ago
Note: This was originally posted on 2nd June 2011 at
http://forums.arm.com
Hi All,
I have a doubt in ARM7TDMI exception,
Once exception (FIQ, IRQ, or Data Abort, Pre-fetch Abort) occured, then regardless of the previouse mode (ARM or THUMB) the lr value will be as follows
FIQ -> PC+4 , where PC is the next instruction to be executed after return frm exception
IRQ -> PC+4, where PC is the next instruction to be executed after return frm exception
Data Abrt -> PC+8, where PC is the instruction which got aborted
PreFetch -> PC + 4 , where where PC is the prefetched instruction.
Why this is same for both ARM and Thumb mode?
Can anyone explain?
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 2nd June 2011 at
http://forums.arm.com
"Magic" =)
It makes writing exception handlers which don't care about the ARM/Thumb state of the interrupt code very easy.
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 2nd June 2011 at
http://forums.arm.com
"Magic" =)
It makes writing exception handlers which don't care about the ARM/Thumb state of the interrupt code very easy.
Cancel
Vote up
0
Vote down
Cancel
Children
No data