Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #2045

Re: Unsigned integer comparison in Basic V

Subject Re: Unsigned integer comparison in Basic V
Newsgroups comp.sys.acorn.programmer
From Richard Porter <dontusethis@address.uk.invalid>
Date 2012-08-10 12:12 +0100
Message-ID <cfd705bd52.news@user.minijem.plus.com> (permalink)
References <9d64a2bc52.news@user.minijem.plus.com> <2e75c2bc52.martin@blueyonder.co.uk>
Organization Mini Marcos Owners Club

Show all headers | View raw


The date being 9 Aug 2012, Martin Bazley 
<martin.bazley@blueyonder.co.uk> decided to write:

> By the way, if you want to compare two numbers of more than 32 bits each
> (such as, say, 40-bit datestamps), you could try the following
> (completely untested!) extension:

> .unsigned_lt64%
> CMP R1,R3
> CMPEQ R0,R2
> MOV R0,#0
> MVNLO R0,#0
> MOV PC,R14

> DEF FNunsigned_lt64(A%,B%,C%,D%)=USR(unsigned_lt64%)

> IF FNunsigned_lt64(lowbits1%,highbits1%,lowbits2%,highbits2%)...

Thanks. Yes, if I'm going to do it in assembler then I might as well 
do the whole 40-bit comparison in one go.

Cheers,
-- 
Richard Porter
rich@ / www. richardporter.me.uk
"You can't have Windows without pains."

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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