Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
IP Products
Processors
Jump...
Cancel
Processors
Classic processors forum
Why does ARMSim# not recognize instruction 'addw'?
Blogs
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Accepted Answer
Replies
3 replies
Subscribers
1 subscriber
Views
4949 views
Users
0 members are here
Arm7
Thumb
Related
Why does ARMSim# not recognize instruction 'addw'?
Offline
Robert
over 5 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
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
How to use CoreSight debug and trace ?
+1
Arm Development Studio
CoreSight Debug and Trace
Arm9
4498
views
1
reply
Latest
over 3 years ago
by
Matt Sealey
Answered
PWM code not running on LPC2129 board but working on logic analyzer .
+1
Arm7TDMI-S
4026
views
1
reply
Latest
over 3 years ago
by
karthik dharma
Answered
Problem in calling the function in ISR
+2
Arm7tdmi
9311
views
8
replies
Latest
over 3 years ago
by
42Bastian Schick
Answered
Delay Subroutine LPC2148 Assembly
+1
Arm7
GPIO
Arm Assembly Language (ASM)
7874
views
3
replies
Latest
over 4 years ago
by
Yasuhiko Koumoto
Answered
armv5TE
+1
Armv5T
Armv5TE
Armv5
5284
views
3
replies
Latest
over 4 years ago
by
kalle
<
>
View all questions in Classic processors forum