What's an l-value

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
adrianxyz
Posts: 9
Joined: Mon May 10, 2010 12:58 pm

What's an l-value

Post by adrianxyz »

I'm trying to create a flowcode c block which contains the following code:
PORTA = 0x00;
I get the error "left operand should be an l-value".
Any idea what I'm doing wrong ?

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: What's an l-value

Post by Steve »

I think you need "porta = 0x00;" or perhaps even "_porta = 0x00;"

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: What's an l-value

Post by Benj »

BoostC Compiler
porta = 0x00;

Hitech Compiler
PORTA = 0x00;

Post Reply