> D. Jay Newman wrote: > >> Why is it not possible at the very least by temporarily disabling > >> interrupts? Also the 30F do have a bit test and set instruction. > > > > It is *possible* to do preemptive multitasking. I just can't see > > any reason to actually use it. > > But the question wasn't about preemptive multitasking. It was about atomic > test and set capability. I'm sorry; I forgot that I was responding to one of *your* posts. You are correct, interrupts can be disabled to do an atomic test/set on pretty much any microcontroller. This, of course, is highly useful to creating a preemptive operating system. -- D. Jay Newman ! Author of: jay@sprucegrove.com ! _Linux Robotics: Building Smarter Robots_ http://enerd.ws/robots/ ! (Now I can get back to building robots.) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist