Topic : IT instruction

Forum : ARM

Original Post
Post Information Post
September 5, 2008 - 10:38am
Guest

Hello,

I am writting an assembly code for the STM32 MCU using Ride 7. I have problem to use the IT instruction: when I have written the followingcode:

MOVS r14, r2, LSL#16
IT NE
SUBNE r0, r0, r12

The compiler has generated the following errors:

Error: condition required -- `it NE'
Error: thumb conditional instrunction not in IT block

I have checked taht Ride supports the instruction IT, by compiling a C code and watching the dissasembly window. But did it allow using IT instruction in assembly files?
Have anyone met this issue?

thanks
regards
Sword_82

Replies
Post Information Post
+1
0
-1
September 8, 2008 - 10:52am
Guest

Hi to all,

I have found my mistake !
The condition must be written in small letter: IT ne

sword_82