Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/09/09 10:41
Read: times


 
#165196 - More detail required
Responding to: ???'s previous message
Johnson Vue said:
I use the examples inside the folders

What examples?
What folders?

The sample program runs really fast

What sample program?

but when I code a simple program to run through the emulator it runs very very very slow.

What emulator did you use - or do you mean the Keil uVision Simulator?

Note that the Keil Simulator is not a real-time simulator - its speed of execution depends entirely upon your PC.

Am I doing something wrong? Here's my sample code:

For one thing, you didn't note how to correctly post source code - see: http://www.8052.com/faqs/120199
Attention to detail is essential in any form of programming!

main () 
{
   :
   :
	return 0;
}

Where do you think this will return to?

Did you see any returns from main() in any of the Keil samples...?

I try to stick with the C syntax as much as possible but it just keeps crashing.

What keeps "crashing"?
In what way does it crash?



List of 5 messages in thread
TopicAuthorDate
Program runs really slow            01/01/70 00:00      
   More detail required            01/01/70 00:00      
      RE: Andy            01/01/70 00:00      
         You are reading the wrong book!            01/01/70 00:00      
         program will not compile            01/01/70 00:00      

Back to Subject List