On Mon, 15 Feb 2010, sergio masci wrote: > > we see a horrible '>=' which kind of complicates things if we are trying > to convert this pseudo code into assembly language. We can rearrange > things to make them easier like this: > > value = 359 > count = 0 > > while (value - 100) > 0 do > value = value - 100 > count = count + 1 > done > > Another way to think about "X > 0" is "is X not negative". Sorry that should read: :: while (value - 100) >= 0 do :: value = value - 100 :: count = count + 1 :: done :: :: Another way to think about "X >= 0" is "is X not negative". Regards Sergio Masci -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist