Arm Community
Site
Search
User
Site
Search
User
Support forums
Architectures and Processors forum
Why does ARMSim# not recognize instruction 'addw'?
Jump...
Cancel
State
Accepted Answer
Locked
Locked
Replies
3 replies
Subscribers
346 subscribers
Views
7239 views
Users
0 members are here
Arm7
Thumb
Options
Share
More actions
Cancel
Related
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
Why does ARMSim# not recognize instruction 'addw'?
Robert
over 10 years ago
Hi,
For the below code, ARMSim# does not recognize '.arch armv7-r'. It says:
"unknown opcode or directive: .arch"It does not recognize 'addw' either, says:
"unknown opcode or directive: addw"I have check ARMTRM. 'addw' is a legal assembly code.
'.arch' is also used in some assembler.
How do you think ARMSim# want?
Thanks.
////////////////////
.arch armv7-r
.syntax unified
.text
.thumb
.global foo
foo:
@ Section A6.1.3 "Use of 0b1101 as a register specifier".@ R13 as the source or destination register of a mov instruction.
@ only register to register transfers without shifts are supported,
@ with no flag settingmov sp,r0
mov r0,sp@ Using the following instructions to adjust r13 up or down by a
@ multiple of 4:add sp,sp,#0
addw sp,sp,#0
Parents
0
Yasuhiko Koumoto
over 10 years ago
in reply to
Robert
Hello,
ARMv5 does not support Thumb-2 but only supports Thumb.
Best regards,
Yasuhiko Koumoto.
Cancel
Vote up
0
Vote down
Cancel
Reply
0
Yasuhiko Koumoto
over 10 years ago
in reply to
Robert
Hello,
ARMv5 does not support Thumb-2 but only supports Thumb.
Best regards,
Yasuhiko Koumoto.
Cancel
Vote up
0
Vote down
Cancel
Children
No data