Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #2042
| Subject | Unsigned integer comparison in Basic V |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| From | Richard Porter <dontusethis@address.uk.invalid> |
| Date | 2012-08-09 18:06 +0100 |
| Message-ID | <9d64a2bc52.news@user.minijem.plus.com> (permalink) |
| Organization | Mini Marcos Owners Club |
In the latest update to SiteMatch I needed to compare timestamps which are 40-bit integers held in two words. Unfortunately comparing the bottom word went wrong because it was treated as being signed. As a result I had to write a little function to do an unsigned comparison which involved testing whether each integer was less than zero or not. I was wondering if anyone has a neater solution to this problem, which has no doubt been encountered many times. -- Richard Porter rich@ / www. richardporter.me.uk "You can't have Windows without pains."
Back to comp.sys.acorn.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Unsigned integer comparison in Basic V Richard Porter <dontusethis@address.uk.invalid> - 2012-08-09 18:06 +0100
Re: Unsigned integer comparison in Basic V Martin Bazley <martin.bazley@blueyonder.co.uk> - 2012-08-09 23:56 +0100
Re: Unsigned integer comparison in Basic V Richard Porter <dontusethis@address.uk.invalid> - 2012-08-10 12:12 +0100
Re: Unsigned integer comparison in Basic V "Ste (news)" <steve@revi11.plus.com> - 2012-08-10 14:10 +0100
Re: Unsigned integer comparison in Basic V Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2012-08-10 14:58 +0100
Re: Unsigned integer comparison in Basic V "Ste (news)" <steve@revi11.plus.com> - 2012-08-13 16:14 +0100
Re: Unsigned integer comparison in Basic V Steve Drain <steve@kappa.me.uk> - 2012-08-10 16:11 +0100
Re: Unsigned integer comparison in?Basic V Justin Fletcher <gerph@gerph.org> - 2012-08-10 15:25 +0100
Re: Unsigned integer comparison in Basic V jgh@arcade.demon.co.uk - 2012-08-10 15:49 -0700
Re: Unsigned integer comparison in Basic V Martin Bazley <martin.bazley@blueyonder.co.uk> - 2012-08-11 19:44 +0100
Re: Unsigned integer comparison in Basic V Richard Porter <dontusethis@address.uk.invalid> - 2012-08-13 16:19 +0100
csiph-web