« Our THIRD television appearance! | Main | Tech Support: Brought to you by the letter T »

Tech Support: Semaphores capture multiple inputs.

Kim asked:

Is there an easy way of converting inputs into semaphores, ie:

  • Read 8 inputs into X

  • Convert each bit into a semaphore (presume a bytes or 8 bits has been allocated, ie SemOne, SemTwo etc)
  • or do I have to save each one separately?

    Kim, look here. The secret is that you must declare the semaphores using manual (mEQU) rather than automatic memory allocation (defSEM).

    TrackBack

    TrackBack URL for this entry:
    http://www.splatco.com/cgi-sys/cgiwrap/microcon/managed-mt/mt-tb.cgi/61

    Post a comment

    (If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


    About

    This page contains a single entry from the blog posted on July 30, 2007 4:44 PM.

    The previous post in this blog was Our THIRD television appearance!.

    The next post in this blog is Tech Support: Brought to you by the letter T.

    Many more can be found on the main index page or by looking through the archives.

    Creative Commons License
    This weblog is licensed under a Creative Commons License.
    Powered by
    Movable Type 3.33