From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <2dce475f96630e9cf6e633e2f74a2ffc@coraid.com> References: <2dce475f96630e9cf6e633e2f74a2ffc@coraid.com> Date: Wed, 16 Nov 2011 14:35:49 -0800 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] 6a bug Topicbox-Message-UUID: 40f34092-ead7-11e9-9d60-3106f5b1d025 AX is the wrong register. REGARG is BP. actually, it's "RARG" in 6a, in cas= e it changes, although that seems less likely now. On 16 November 2011 14:25, erik quanstrom wrote: > i plan to look at this when i get home, but it appears that 6a > doesn't like big numbers. =C2=A0demo script follows > > - erik > ------- > ; cat >a.s <<'EOF' > #define KZERO =C2=A0 (0xffffff0000000000ull) > > TEXT bignumber(SB), 1, $0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0ADDQ =C2=A0 =C2=A0$KZERO, AX > =C2=A0 =C2=A0 =C2=A0 =C2=A0RET > EOF > ; cat >ac.c< #include > #include > > extern uvlong bignumber(uvlong); > > void > main(void) > { > =C2=A0 =C2=A0 =C2=A0 =C2=A0print("%llux\n", bignumber(0)); > =C2=A0 =C2=A0 =C2=A0 =C2=A0exits(""); > } > EOF > ; 6a a.s; 6c ac.c; 6l a.6 ac.6 > >