Reminds me of a couple of my favourite threads on 8052.com:
http://www.8052.com/forum/thread.phtml?thread=130415
http://www.8052.com/forum/thread.phtml?thread=137677
So, the conclusion is, everything clear, so it's now just simple coding,
that's all... :-)
Jan Waclawek
PS. Berwyn, the usual Open
Hi Berwyn,
> 1. Atomic access (see 3.8.1.2). It sure would be nice if the critical keyword
> worked on variable
> declarations. It would make access to the variable atomic. For example, a
> typical timer interrupt
> would run a long msec counter, and main() would check it to see if >1000 ms
>
Title: --
Hi. The SDCC manual lists a number of pitfalls for a programmer of
interrupt service routines. To avoid these, I suspect some new
compiler features could help us out quite a bit. Here are some ideas
for discussion.
1. Atomic access (see 3.8.1.2). It sure would be nice if the crit