Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

From assemblet to C in MSP430

Status
Not open for further replies.

lolek2

Newbie level 2
Joined
Apr 9, 2008
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Hi

I would like to write some constant value to RAM. In assembler, MOV(.B) is the instruction used to do that. Do you know how to do it in C?

Then, I want to add to this constant value some other constant and write it in memory address of the first constant.

Regard,
lolek
 

heve you ever tried

asm (MOV(.B))

or asm { MOV(.B) }

? try it!!

you will use this assembler instruction in your C program. Don`t worry, is quite commom to use this is microcontroler programming...some cases is faster to do this...

regards

Breno
 

    lolek2

    Points: 2
    Helpful Answer Positive Rating
This is my first expierience in programming. I do not know if I am building instruction in the proper way ( I want to write for instance 1 to 0200h):

asm { MOV1,0200h } ; or
asm (MOV 1,0200h) ;

In each case there is the error:
"expected an asm string".

regards,
lolek
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top