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.

while (1): can't change a variable

Status
Not open for further replies.

mappy89

Newbie level 1
Joined
Apr 16, 2012
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,280
Activity points
1,280
Hello everybody, i've got some problem with my Proteus

here's simplified code on C:

Code:
int flag=0;

void main()
{
  while(1)
  {
     flag++;
  }
}

It's funny, but when i download hex file to mega16 drew in proteus, variable "flag" is not changing (still 0)

I hope somebody faced with such problem and help me how to settle it.
 

What compiler/toolchain are you utilizing?

It maybe a simple case of compiler optimization.

BigDog
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top