Apr 9, 2008 #1 L 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
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
Apr 9, 2008 #2 B btminzon Full Member level 2 Joined Jun 12, 2006 Messages 122 Helped 9 Reputation 18 Reaction score 1 Trophy points 1,298 Location Brazil Activity points 2,140 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
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
Apr 9, 2008 #3 L 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 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
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