Problem with assembly.

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
ged23
Posts: 4
Joined: 08 Jul 2012 01:49

Problem with assembly.

#1 Post by ged23 » 16 Apr 2017 00:56

Hello, why this doesn't compile?

asm
STR R0, [R5, R1]
end asm

I'm using a STM32F407VE.

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: Problem with assembly.

#2 Post by dusan.poluga » 19 Apr 2017 11:41

Hi,

According to the datasheet asm function needs to be called like this:

Code: Select all

asm
   STR R1, [R2, #0x10]
 end asm
This compiles with no problems.
Regards,
Dusan Poluga.

Post Reply

Return to “mikroBasic PRO for ARM General”