Hi Enoch, >> Enochs code is a macro, assembling one single instruction SBI into >> dictionary and naming it. >> Calling that word will execute the SBI instruction. >> >> Michael > > I confirm, the code works.
Well. I think its definitly worth some documentation. It is not obvious how to use it. > I suggest that these simple macros would become standard library > offerings. I'll think about it. see above ;) > Without these atomic bit set/clear one needs to wrap code by > -int/+int if register bits are shared by different interrupt > routines. Any given and active forth ISR is never interrupted itself by another interrupt. The communication between ISR and the main program is close but different (IMHO). Matthias ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel