There is an extensive coverage of 'mixed logic' problems in Horowitz & Hill, "The Art of Electronics" 2ed p 572-575. More complex than I hoped :( paul perry Melb Aust -- Message sent by Webmail from melbpc.org.au