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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/04/02 22:29
Read: times


 
#33789 - RE: Problem with reading timers
the compiler could still treat
"time = 256 * TH0" as
"time = (int16) ((int8) 256 * (int8) TH0)".
without looking at the generated assembler, or stepping thru this code with a simulator, you wouldn't know. and the result of the (int8) version is 0.

if you have unix, try downloading free simulator s51 (search this forum for it) and embedding some test statements in your code, to display the value of "time" after the
first statement.

james



Jean van Hees wrote:
-------------------------------
I'm doing this now



time=256*TH0;

time=time+TL0;



I'm not sure but I think that the teller2 is being my biggest problem.

If it would work correctly,I could determine better if time is ok.

List of 27 messages in thread
TopicAuthorDate
Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
crash course            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      
RE: Problem with reading timers            01/01/70 00:00      

Back to Subject List