Bob Ammerman wrote: > ... > get_bitmask: > addwf pcl,f > retlw 1 > retlw 2 > retlw 4 > retlw 8 > etc. Thanks Bob... that's what I was thinking of doing; just wasn't sure if any more "exotic"/"elegant"/"efficient" approaches exist. Jim > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.