9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <charles.forsyth@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] 6a bug
Date: Wed, 16 Nov 2011 14:35:49 -0800	[thread overview]
Message-ID: <CAOw7k5hJz=F13tUpq7mU3gSnSWr7H=y4rKCN-OUO-FOavBGygA@mail.gmail.com> (raw)
In-Reply-To: <2dce475f96630e9cf6e633e2f74a2ffc@coraid.com>

AX is the wrong register. REGARG is BP. actually, it's "RARG" in 6a, in case it
changes, although that seems less likely now.

On 16 November 2011 14:25, erik quanstrom <quanstro@labs.coraid.com> wrote:
> i plan to look at this when i get home, but it appears that 6a
> doesn't like big numbers.  demo script follows
>
> - erik
> -------
> ; cat >a.s <<'EOF'
> #define KZERO   (0xffffff0000000000ull)
>
> TEXT bignumber(SB), 1, $0
>        ADDQ    $KZERO, AX
>        RET
> EOF
> ; cat >ac.c<<EOF
> #include <u.h>
> #include <libc.h>
>
> extern uvlong bignumber(uvlong);
>
> void
> main(void)
> {
>        print("%llux\n", bignumber(0));
>        exits("");
> }
> EOF
> ; 6a a.s; 6c ac.c; 6l a.6 ac.6
>
>



  reply	other threads:[~2011-11-16 22:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 22:25 erik quanstrom
2011-11-16 22:35 ` Charles Forsyth [this message]
2011-11-16 22:36   ` Charles Forsyth
2011-11-16 22:50 ` Russ Cox
2011-11-16 23:27   ` Charles Forsyth
     [not found] ` <CAOw7k5hJz=F13tUpq7mU3gSnSWr7H=y4rKCN-OUO-FOavBGygA@mail.gmail.c>
2011-11-17  0:50   ` erik quanstrom
2011-11-17 16:07     ` Russ Cox
2011-11-17 16:13       ` Charles Forsyth
     [not found]     ` <CADSkJJU2s1r8Qi=F9eT=+i2mCatxB+c_70teMBkQ3ToOsazGDA@mail.gmail.c>
2011-11-17 16:15       ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOw7k5hJz=F13tUpq7mU3gSnSWr7H=y4rKCN-OUO-FOavBGygA@mail.gmail.com' \
    --to=charles.forsyth@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).