Shop OBEX P1 Docs P2 Docs Learn Events
64 Bit Compare — Parallax Forums

64 Bit Compare

bdickensbdickens Posts: 110
edited 2010-08-30 09:29 in Propeller 1
I'm assuming that if I want to compare 2 64Bit values, I need to do it a long ( or shorter) at a time. Is that correct ? Is there a clever way to do this ? Thanks

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-08-30 08:59
    This is very easy to do in assembly language since there are appropriate instructions for subtracting the high order longs along with the carry / borrow. There is no equivalent in Spin, so you have to do it explicitly by calculating what the carry / borrow would be.
  • bdickensbdickens Posts: 110
    edited 2010-08-30 09:29
    Thanks. I'll stick with my two step compare.
Sign In or Register to comment.