Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and fixed.


devel / comp.os.cpm / Re: AM9511 - what is pi?

SubjectAuthor
* AM9511 - what is pi?fred_...@hotmail.com
+* Re: AM9511 - what is pi?Ross Presser
|`* Re: AM9511 - what is pi?fred_...@hotmail.com
| `- Re: AM9511 - what is pi?Eric Matecki
+* Re: AM9511 - what is pi?Wayne Hortensius
|`* Re: AM9511 - what is pi?fred_...@hotmail.com
| `- Re: AM9511 - what is pi?Wayne Hortensius
`* Re: AM9511 - what is pi?Martin
 `* Re: AM9511 - what is pi?fred_...@hotmail.com
  `* Re: AM9511 - what is pi?Wayne Hortensius
   `* Re: AM9511 - what is pi?fred_...@hotmail.com
    `* Re: AM9511 - what is pi?fred_...@hotmail.com
     `* Re: AM9511 - what is pi?Wayne Hortensius
      `* Re: AM9511 - what is pi?fred_...@hotmail.com
       `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
        +* Re: AM9511 - what is pi?Wayne Hortensius
        |`- Re: AM9511 - what is pi?Wayne Hortensius
        `* Re: AM9511 - what is pi?Wayne Hortensius
         +* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
         |`* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
         | +- Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
         | `- Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
         `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
          +* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
          |`- Re: AM9511 - what is pi?Wayne Hortensius
          `* Re: AM9511 - what is pi?Wayne Hortensius
           `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
            `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
             `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
              `* Re: AM9511 - what is pi?Wayne Hortensius
               `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
                `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
                 `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
                  `* Re: AM9511 - what is pi?fridtjof.ma...@gmail.com
                   `- Re: AM9511 - what is pi?fridtjof.ma...@gmail.com

Pages:12
Re: AM9511 - what is pi?

<704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2658&group=comp.os.cpm#2658

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:9b44:: with SMTP id d65mr2587953qke.71.1626463471723;
Fri, 16 Jul 2021 12:24:31 -0700 (PDT)
X-Received: by 2002:aca:5b82:: with SMTP id p124mr4382236oib.73.1626463471427;
Fri, 16 Jul 2021 12:24:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 16 Jul 2021 12:24:31 -0700 (PDT)
In-Reply-To: <8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:4779:cd51:cd73:935f;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:4779:cd51:cd73:935f
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com>
<s9fqkm$1c1n$1@gioia.aioe.org> <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>
<20210605142216.24e9bcd2@earth> <7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com>
<4b381b82-aef4-4b1e-9963-e690ae40aa42n@googlegroups.com> <20210607132835.50f62ad7@earth>
<95bdbc53-f012-49b7-9ea2-253ef173b25cn@googlegroups.com> <7769e204-535f-4d39-b844-6b0d10239a52n@googlegroups.com>
<20210628004849.372144b5@earth> <40723f9d-7a8b-43dd-8169-f92979c1b7d8n@googlegroups.com>
<20210713114240.68fdda02@earth> <11217079-2571-4970-9afe-8050c6ab7fcen@googlegroups.com>
<8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Fri, 16 Jul 2021 19:24:31 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fridtjof.ma...@gmail - Fri, 16 Jul 2021 19:24 UTC

On Wednesday, July 14, 2021 at 7:29:10 AM UTC-4, fridtjof.ma...@gmail.com wrote:
> On Tuesday, July 13, 2021 at 2:18:19 PM UTC-4, fridtjof.ma...@gmail.com wrote:
> > On Tuesday, July 13, 2021 at 1:42:42 PM UTC-4, Wayne Hortensius wrote:
> > > > Wayne
> > > >
> > > > I do have another question -
> > > >
> > > > If I do
> > > > SMUL -10 * -3 I get result 30, status 2
> > > >
> > > > and
> > > >
> > > > SMUL 10 * -3, result -30, status 66
> > > >
> > > > does the real chip do this? or is the status corrected for signed
> > > > multiply? It is easy to adjust for, but the chip documentation is
> > > > unclear...
> > > >
> > > > Thanks in advance,
> > > >
> > > > FredW
> > > I get:
> > >
> > > SMUL: -10 * -3 = 30 status = 0
> > > SMUL: 10 * -3 = -30 status = 64
> > >
> > > No overflow error code in either case.
> > >
> > > Regards,
> > > Wayne
> > Wayne
> >
> > Thanks a bunch! I am correcting the emulator then. This means that multiply is sign corrected.
> > Also, that the documentation is wrong! But.. I suspected
> >
> > FredW
> All Righty Then!
>
> am9511 update with correction for SMUL/SMUU/DMUL/DMUU sign is on my github.
> This just takes the abs of the args, multiplies and puts the result sign on.
>
> Test cases added for SMUL/SMUU. One test case for DMUL/DMUU (need to split test cases
> again for size on CP/M).
>
> Enjoy!
> FredW
Wayne

I have a strange question about the AM9511A

If we do:

PUSH 0
PUSH 0
COMMAND 1D (FLTS)
STATUS -> ZERO
POP -> a
POP -> b
POP -> c
POP -> d

What are the values for a, b, c and d?

This may be preventing operation of z88dk with --am9511 code generation.

Thanks in Advance
Fred Weigel

Re: AM9511 - what is pi?

<20210716161355.2d5106a6@earth>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2659&group=comp.os.cpm#2659

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
From: me...@somewhere.foo (Wayne Hortensius)
Newsgroups: comp.os.cpm
Subject: Re: AM9511 - what is pi?
Message-ID: <20210716161355.2d5106a6@earth>
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com>
<s9fqkm$1c1n$1@gioia.aioe.org>
<3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>
<20210605142216.24e9bcd2@earth>
<7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com>
<4b381b82-aef4-4b1e-9963-e690ae40aa42n@googlegroups.com>
<20210607132835.50f62ad7@earth>
<95bdbc53-f012-49b7-9ea2-253ef173b25cn@googlegroups.com>
<7769e204-535f-4d39-b844-6b0d10239a52n@googlegroups.com>
<20210628004849.372144b5@earth>
<40723f9d-7a8b-43dd-8169-f92979c1b7d8n@googlegroups.com>
<20210713114240.68fdda02@earth>
<11217079-2571-4970-9afe-8050c6ab7fcen@googlegroups.com>
<8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com>
<704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com>
X-Newsreader: Claws Mail 3.14.1 (GTK+ 2.24.31; arm-unknown-linux-gnueabihf)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Lines: 30
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Fri, 16 Jul 2021 22:13:55 UTC
Date: Fri, 16 Jul 2021 16:13:55 -0600
X-Received-Bytes: 1965
 by: Wayne Hortensius - Fri, 16 Jul 2021 22:13 UTC

Hi Fred

Reading slightly between the lines, you're looking for confirmation of
the 9511's representation of a floating point 0, correct?

The following code:

am_wait();
n = 0;
am_push(n);
am_push(n >> 8);
am_command(AM_FLTS);
s = am_wait();
v[3] = am_pop();
v[2] = am_pop();
v[1] = am_pop();
v[0] = am_pop();
am_fp(v);
fp_na(&x);
printf("FLTS: %d = %g [%02X][%02X][%02X][%02X] status = %d\n",
n, x, v[3], v[2], v[1], v[0], s);

produces:

FLTS: 0 = 0 [00][00][00][00] status = 32

Regards,
Wayne

Re: AM9511 - what is pi?

<fdc7fcf7-410c-4940-8f71-d6dc275e00f3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2660&group=comp.os.cpm#2660

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:9f8d:: with SMTP id i135mr13589514qke.296.1626501812928;
Fri, 16 Jul 2021 23:03:32 -0700 (PDT)
X-Received: by 2002:aca:4a8d:: with SMTP id x135mr5849219oia.6.1626501812682;
Fri, 16 Jul 2021 23:03:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 16 Jul 2021 23:03:32 -0700 (PDT)
In-Reply-To: <20210716161355.2d5106a6@earth>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:4779:cd51:cd73:935f;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:4779:cd51:cd73:935f
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com>
<s9fqkm$1c1n$1@gioia.aioe.org> <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>
<20210605142216.24e9bcd2@earth> <7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com>
<4b381b82-aef4-4b1e-9963-e690ae40aa42n@googlegroups.com> <20210607132835.50f62ad7@earth>
<95bdbc53-f012-49b7-9ea2-253ef173b25cn@googlegroups.com> <7769e204-535f-4d39-b844-6b0d10239a52n@googlegroups.com>
<20210628004849.372144b5@earth> <40723f9d-7a8b-43dd-8169-f92979c1b7d8n@googlegroups.com>
<20210713114240.68fdda02@earth> <11217079-2571-4970-9afe-8050c6ab7fcen@googlegroups.com>
<8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com> <704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com>
<20210716161355.2d5106a6@earth>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fdc7fcf7-410c-4940-8f71-d6dc275e00f3n@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Sat, 17 Jul 2021 06:03:32 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fridtjof.ma...@gmail - Sat, 17 Jul 2021 06:03 UTC

On Friday, July 16, 2021 at 6:13:59 PM UTC-4, Wayne Hortensius wrote:
> Hi Fred
>
> Reading slightly between the lines, you're looking for confirmation of
> the 9511's representation of a floating point 0, correct?
>
> The following code:
>
> am_wait();
> n = 0;
> am_push(n);
> am_push(n >> 8);
> am_command(AM_FLTS);
> s = am_wait();
> v[3] = am_pop();
> v[2] = am_pop();
> v[1] = am_pop();
> v[0] = am_pop();
> am_fp(v);
> fp_na(&x);
> printf("FLTS: %d = %g [%02X][%02X][%02X][%02X] status = %d\n",
> n, x, v[3], v[2], v[1], v[0], s);
>
> produces:
>
> FLTS: 0 = 0 [00][00][00][00] status = 32
>
>
> Regards,
> Wayne
Wayne

Yes, I was - and it (zero) IS 00 00 00 00

I am using a program planetsa.com to do some validation. It was failing on the Zxcc emulator!
And I was trying to figure out why... Turns out, Zxcc is being problematic with in/out (probably I
am interfacing wrong). RunCPM is doing much better, and I am able to actually run planeta.com!

With maybe a problem with the exp() function...

Thanks for doing that! I think am9511 is pretty close to a "first release".

Fred Weigel

Re: AM9511 - what is pi?

<fdd422a4-b274-44bf-a0f2-3a51fb2660c4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2661&group=comp.os.cpm#2661

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:31a1:: with SMTP id bi33mr155379qkb.146.1626562981866;
Sat, 17 Jul 2021 16:03:01 -0700 (PDT)
X-Received: by 2002:a4a:ab07:: with SMTP id i7mr12930062oon.89.1626562981619;
Sat, 17 Jul 2021 16:03:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 17 Jul 2021 16:03:01 -0700 (PDT)
In-Reply-To: <fdc7fcf7-410c-4940-8f71-d6dc275e00f3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:4779:cd51:cd73:935f;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:4779:cd51:cd73:935f
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com>
<s9fqkm$1c1n$1@gioia.aioe.org> <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>
<20210605142216.24e9bcd2@earth> <7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com>
<4b381b82-aef4-4b1e-9963-e690ae40aa42n@googlegroups.com> <20210607132835.50f62ad7@earth>
<95bdbc53-f012-49b7-9ea2-253ef173b25cn@googlegroups.com> <7769e204-535f-4d39-b844-6b0d10239a52n@googlegroups.com>
<20210628004849.372144b5@earth> <40723f9d-7a8b-43dd-8169-f92979c1b7d8n@googlegroups.com>
<20210713114240.68fdda02@earth> <11217079-2571-4970-9afe-8050c6ab7fcen@googlegroups.com>
<8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com> <704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com>
<20210716161355.2d5106a6@earth> <fdc7fcf7-410c-4940-8f71-d6dc275e00f3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fdd422a4-b274-44bf-a0f2-3a51fb2660c4n@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Sat, 17 Jul 2021 23:03:01 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fridtjof.ma...@gmail - Sat, 17 Jul 2021 23:03 UTC

On Saturday, July 17, 2021 at 2:03:33 AM UTC-4, fridtjof.ma...@gmail.com wrote:
> On Friday, July 16, 2021 at 6:13:59 PM UTC-4, Wayne Hortensius wrote:
> > Hi Fred
> >
> > Reading slightly between the lines, you're looking for confirmation of
> > the 9511's representation of a floating point 0, correct?
> >
> > The following code:
> >
> > am_wait();
> > n = 0;
> > am_push(n);
> > am_push(n >> 8);
> > am_command(AM_FLTS);
> > s = am_wait();
> > v[3] = am_pop();
> > v[2] = am_pop();
> > v[1] = am_pop();
> > v[0] = am_pop();
> > am_fp(v);
> > fp_na(&x);
> > printf("FLTS: %d = %g [%02X][%02X][%02X][%02X] status = %d\n",
> > n, x, v[3], v[2], v[1], v[0], s);
> >
> > produces:
> >
> > FLTS: 0 = 0 [00][00][00][00] status = 32
> >
> >
> > Regards,
> > Wayne
> Wayne
>
> Yes, I was - and it (zero) IS 00 00 00 00
>
> I am using a program planetsa.com to do some validation. It was failing on the Zxcc emulator!
> And I was trying to figure out why... Turns out, Zxcc is being problematic with in/out (probably I
> am interfacing wrong). RunCPM is doing much better, and I am able to actually run planeta.com!
>
> With maybe a problem with the exp() function...
>
> Thanks for doing that! I think am9511 is pretty close to a "first release".
>
> Fred Weigel

Wayne

Thanks for the confirmation. The error was in FLTS - I was not handling negative integers correctly,
they were being converted to positive; that, in turn, caused the EXP function to overflow, and caused
the z88dk AM9511 runtime library to mess up. flts() is fixed.

Fred Weigel

Re: AM9511 - what is pi?

<fa7e8886-94ef-490a-ad35-a9be77c6555dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2662&group=comp.os.cpm#2662

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:a6d2:: with SMTP id p201mr6506752qke.98.1626673563880; Sun, 18 Jul 2021 22:46:03 -0700 (PDT)
X-Received: by 2002:a05:6830:2058:: with SMTP id f24mr9681236otp.197.1626673563516; Sun, 18 Jul 2021 22:46:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 18 Jul 2021 22:46:03 -0700 (PDT)
In-Reply-To: <fdd422a4-b274-44bf-a0f2-3a51fb2660c4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:4779:cd51:cd73:935f; posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:4779:cd51:cd73:935f
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com> <s9fqkm$1c1n$1@gioia.aioe.org> <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com> <20210605142216.24e9bcd2@earth> <7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com> <4b381b82-aef4-4b1e-9963-e690ae40aa42n@googlegroups.com> <20210607132835.50f62ad7@earth> <95bdbc53-f012-49b7-9ea2-253ef173b25cn@googlegroups.com> <7769e204-535f-4d39-b844-6b0d10239a52n@googlegroups.com> <20210628004849.372144b5@earth> <40723f9d-7a8b-43dd-8169-f92979c1b7d8n@googlegroups.com> <20210713114240.68fdda02@earth> <11217079-2571-4970-9afe-8050c6ab7fcen@googlegroups.com> <8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com> <704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com> <20210716161355.2d5106a6@earth> <fdc7fcf7-410c-4940-8f71-d6dc275e00f3n@googlegroups.com> <fdd422a4-b274-44bf-a0f2-3a51fb2660c4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa7e8886-94ef-490a-ad35-a9be77c6555dn@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Mon, 19 Jul 2021 05:46:03 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 76
 by: fridtjof.ma...@gmail - Mon, 19 Jul 2021 05:46 UTC

On Saturday, July 17, 2021 at 7:03:02 PM UTC-4, fridtjof.ma...@gmail.com wrote:
> On Saturday, July 17, 2021 at 2:03:33 AM UTC-4, fridtjof.ma...@gmail.com wrote:
> > On Friday, July 16, 2021 at 6:13:59 PM UTC-4, Wayne Hortensius wrote:
> > > Hi Fred
> > >
> > > Reading slightly between the lines, you're looking for confirmation of
> > > the 9511's representation of a floating point 0, correct?
> > >
> > > The following code:
> > >
> > > am_wait();
> > > n = 0;
> > > am_push(n);
> > > am_push(n >> 8);
> > > am_command(AM_FLTS);
> > > s = am_wait();
> > > v[3] = am_pop();
> > > v[2] = am_pop();
> > > v[1] = am_pop();
> > > v[0] = am_pop();
> > > am_fp(v);
> > > fp_na(&x);
> > > printf("FLTS: %d = %g [%02X][%02X][%02X][%02X] status = %d\n",
> > > n, x, v[3], v[2], v[1], v[0], s);
> > >
> > > produces:
> > >
> > > FLTS: 0 = 0 [00][00][00][00] status = 32
> > >
> > >
> > > Regards,
> > > Wayne
> > Wayne
> >
> > Yes, I was - and it (zero) IS 00 00 00 00
> >
> > I am using a program planetsa.com to do some validation. It was failing on the Zxcc emulator!
> > And I was trying to figure out why... Turns out, Zxcc is being problematic with in/out (probably I
> > am interfacing wrong). RunCPM is doing much better, and I am able to actually run planeta.com!
> >
> > With maybe a problem with the exp() function...
> >
> > Thanks for doing that! I think am9511 is pretty close to a "first release".
> >
> > Fred Weigel
> Wayne
>
> Thanks for the confirmation. The error was in FLTS - I was not handling negative integers correctly,
> they were being converted to positive; that, in turn, caused the EXP function to overflow, and caused
> the z88dk AM9511 runtime library to mess up. flts() is fixed.
>
> Fred Weigel
Wayne (and others)

I think am9511 is now usable. howto.txt has instructions for integrating the emulator into Zxcc and RunCPM.
(Zxcc may need some bug fixes -- instructions in the howto.txt). A sample application (planeta.com) is
provided. I have compiled am9511 under the Altair-Duino "sketch" as well, but have not yet programmed
my Altair-Duino (I am a bit shy about altering the "factory load" -- this will be my first foray into Arduino
programming. I just have to "do it"). But, all appears ok on RunCPM -- give that a shake-out and test.
If all works well for a week or so, and I can get the Altair-Duino running with am9511, I will declare the
first release of am9511! And then see about getting it into the regular Altair-Duino firmware and into
z80pack.

https://github.com/ratboy666/am9511

Put bug reports into the Issues at github (or here, even). Hopefully, all will be stable, and this can
be released (I will actively support am9511 as long as there is interest in it).

Thanks to

Wayne Hortensius
Alan Cox
Phillip Stevens

For their interest and support!

Fred Weigel

Re: AM9511 - what is pi?

<026da930-7a5f-4f06-97c1-34319139e34cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2664&group=comp.os.cpm#2664

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ad4:5cee:: with SMTP id iv14mr6610247qvb.33.1627072518701; Fri, 23 Jul 2021 13:35:18 -0700 (PDT)
X-Received: by 2002:aca:f243:: with SMTP id q64mr4320240oih.15.1627072518484; Fri, 23 Jul 2021 13:35:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 23 Jul 2021 13:35:18 -0700 (PDT)
In-Reply-To: <fa7e8886-94ef-490a-ad35-a9be77c6555dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:4779:cd51:cd73:935f; posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:4779:cd51:cd73:935f
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com> <s9fqkm$1c1n$1@gioia.aioe.org> <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com> <20210605142216.24e9bcd2@earth> <7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com> <4b381b82-aef4-4b1e-9963-e690ae40aa42n@googlegroups.com> <20210607132835.50f62ad7@earth> <95bdbc53-f012-49b7-9ea2-253ef173b25cn@googlegroups.com> <7769e204-535f-4d39-b844-6b0d10239a52n@googlegroups.com> <20210628004849.372144b5@earth> <40723f9d-7a8b-43dd-8169-f92979c1b7d8n@googlegroups.com> <20210713114240.68fdda02@earth> <11217079-2571-4970-9afe-8050c6ab7fcen@googlegroups.com> <8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com> <704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com> <20210716161355.2d5106a6@earth> <fdc7fcf7-410c-4940-8f71-d6dc275e00f3n@googlegroups.com> <fdd422a4-b274-44bf-a0f2-3a51fb2660c4n@googlegroups.com> <fa7e8886-94ef-490a-ad35-a9be77c6555dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <026da930-7a5f-4f06-97c1-34319139e34cn@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Fri, 23 Jul 2021 20:35:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 110
 by: fridtjof.ma...@gmail - Fri, 23 Jul 2021 20:35 UTC

On Monday, July 19, 2021 at 1:46:04 AM UTC-4, fridtjof.ma...@gmail.com wrote:
> On Saturday, July 17, 2021 at 7:03:02 PM UTC-4, fridtjof.ma...@gmail.com wrote:
> > On Saturday, July 17, 2021 at 2:03:33 AM UTC-4, fridtjof.ma...@gmail.com wrote:
> > > On Friday, July 16, 2021 at 6:13:59 PM UTC-4, Wayne Hortensius wrote:
> > > > Hi Fred
> > > >
> > > > Reading slightly between the lines, you're looking for confirmation of
> > > > the 9511's representation of a floating point 0, correct?
> > > >
> > > > The following code:
> > > >
> > > > am_wait();
> > > > n = 0;
> > > > am_push(n);
> > > > am_push(n >> 8);
> > > > am_command(AM_FLTS);
> > > > s = am_wait();
> > > > v[3] = am_pop();
> > > > v[2] = am_pop();
> > > > v[1] = am_pop();
> > > > v[0] = am_pop();
> > > > am_fp(v);
> > > > fp_na(&x);
> > > > printf("FLTS: %d = %g [%02X][%02X][%02X][%02X] status = %d\n",
> > > > n, x, v[3], v[2], v[1], v[0], s);
> > > >
> > > > produces:
> > > >
> > > > FLTS: 0 = 0 [00][00][00][00] status = 32
> > > >
> > > >
> > > > Regards,
> > > > Wayne
> > > Wayne
> > >
> > > Yes, I was - and it (zero) IS 00 00 00 00
> > >
> > > I am using a program planetsa.com to do some validation. It was failing on the Zxcc emulator!
> > > And I was trying to figure out why... Turns out, Zxcc is being problematic with in/out (probably I
> > > am interfacing wrong). RunCPM is doing much better, and I am able to actually run planeta.com!
> > >
> > > With maybe a problem with the exp() function...
> > >
> > > Thanks for doing that! I think am9511 is pretty close to a "first release".
> > >
> > > Fred Weigel
> > Wayne
> >
> > Thanks for the confirmation. The error was in FLTS - I was not handling negative integers correctly,
> > they were being converted to positive; that, in turn, caused the EXP function to overflow, and caused
> > the z88dk AM9511 runtime library to mess up. flts() is fixed.
> >
> > Fred Weigel
> Wayne (and others)
>
> I think am9511 is now usable. howto.txt has instructions for integrating the emulator into Zxcc and RunCPM.
> (Zxcc may need some bug fixes -- instructions in the howto.txt). A sample application (planeta.com) is
> provided. I have compiled am9511 under the Altair-Duino "sketch" as well, but have not yet programmed
> my Altair-Duino (I am a bit shy about altering the "factory load" -- this will be my first foray into Arduino
> programming. I just have to "do it"). But, all appears ok on RunCPM -- give that a shake-out and test.
> If all works well for a week or so, and I can get the Altair-Duino running with am9511, I will declare the
> first release of am9511! And then see about getting it into the regular Altair-Duino firmware and into
> z80pack.
>
> https://github.com/ratboy666/am9511
>
> Put bug reports into the Issues at github (or here, even). Hopefully, all will be stable, and this can
> be released (I will actively support am9511 as long as there is interest in it).
>
> Thanks to
>
> Wayne Hortensius
> Alan Cox
> Phillip Stevens
>
> For their interest and support!
>
> Fred Weigel
Wayne (and others)

Now that I have a usable am9511 emulation (Alan Cox hooked it into RC2014 emulator, and I have
it hooked into Zxcc and RunCPM -- per the howto.txt instructions). I could get back to my original
goal, which was using AM911 with FORTRAN-80. Since nobody appears to have that code anymore,
I wrote my own.. Find it at

https://github.com/ratboy666/apu

Notes:

This accelerates INTEGER and INTEGER*4 multiply and divide. ADD and SUBTRACT INTEGER
are not touched.

REAL + - * / ** REAL are accelerated.

"Mixed Mode" needs conversion and is not "full speed" yet.

INTRINSIC functions are not accelerated.

But, appears usable. MicroSoft M80, LIB-80, used to build the APU.REL library. Can support
any chip location. Interesting that it can ALSO be used to accelerate BASCOM compiled
stuff.

Needs testing -- Wayne -- I assume you have MicroSoft M80/F80/BASCOM. This stuff
has been run against am9511 emulator, but *not* against the real deal chip yet.

Still at the "needs tender loving care stage"
Have Fun! May the AM9511 live forever! When this all works, I think I will treat myself to
a RC2014 with AM9511A chip!

Fred Weigel

Re: AM9511 - what is pi?

<c35583b0-03f8-4783-a6b2-01775cac3855n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2667&group=comp.os.cpm#2667

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:1ef:: with SMTP id x15mr7548678qkn.369.1627090093600;
Fri, 23 Jul 2021 18:28:13 -0700 (PDT)
X-Received: by 2002:a9d:662:: with SMTP id 89mr4968385otn.255.1627090093362;
Fri, 23 Jul 2021 18:28:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 23 Jul 2021 18:28:13 -0700 (PDT)
In-Reply-To: <026da930-7a5f-4f06-97c1-34319139e34cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:4779:cd51:cd73:935f;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:4779:cd51:cd73:935f
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com>
<s9fqkm$1c1n$1@gioia.aioe.org> <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>
<20210605142216.24e9bcd2@earth> <7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com>
<4b381b82-aef4-4b1e-9963-e690ae40aa42n@googlegroups.com> <20210607132835.50f62ad7@earth>
<95bdbc53-f012-49b7-9ea2-253ef173b25cn@googlegroups.com> <7769e204-535f-4d39-b844-6b0d10239a52n@googlegroups.com>
<20210628004849.372144b5@earth> <40723f9d-7a8b-43dd-8169-f92979c1b7d8n@googlegroups.com>
<20210713114240.68fdda02@earth> <11217079-2571-4970-9afe-8050c6ab7fcen@googlegroups.com>
<8f08f42b-d52b-43c9-8374-98b675de5064n@googlegroups.com> <704b2b13-40b5-4048-84ac-e5d86fe6fc21n@googlegroups.com>
<20210716161355.2d5106a6@earth> <fdc7fcf7-410c-4940-8f71-d6dc275e00f3n@googlegroups.com>
<fdd422a4-b274-44bf-a0f2-3a51fb2660c4n@googlegroups.com> <fa7e8886-94ef-490a-ad35-a9be77c6555dn@googlegroups.com>
<026da930-7a5f-4f06-97c1-34319139e34cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c35583b0-03f8-4783-a6b2-01775cac3855n@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Sat, 24 Jul 2021 01:28:13 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 118
 by: fridtjof.ma...@gmail - Sat, 24 Jul 2021 01:28 UTC

On Friday, July 23, 2021 at 4:35:19 PM UTC-4, fridtjof.ma...@gmail.com wrote:
> On Monday, July 19, 2021 at 1:46:04 AM UTC-4, fridtjof.ma...@gmail.com wrote:
> > On Saturday, July 17, 2021 at 7:03:02 PM UTC-4, fridtjof.ma...@gmail.com wrote:
> > > On Saturday, July 17, 2021 at 2:03:33 AM UTC-4, fridtjof.ma...@gmail.com wrote:
> > > > On Friday, July 16, 2021 at 6:13:59 PM UTC-4, Wayne Hortensius wrote:
> > > > > Hi Fred
> > > > >
> > > > > Reading slightly between the lines, you're looking for confirmation of
> > > > > the 9511's representation of a floating point 0, correct?
> > > > >
> > > > > The following code:
> > > > >
> > > > > am_wait();
> > > > > n = 0;
> > > > > am_push(n);
> > > > > am_push(n >> 8);
> > > > > am_command(AM_FLTS);
> > > > > s = am_wait();
> > > > > v[3] = am_pop();
> > > > > v[2] = am_pop();
> > > > > v[1] = am_pop();
> > > > > v[0] = am_pop();
> > > > > am_fp(v);
> > > > > fp_na(&x);
> > > > > printf("FLTS: %d = %g [%02X][%02X][%02X][%02X] status = %d\n",
> > > > > n, x, v[3], v[2], v[1], v[0], s);
> > > > >
> > > > > produces:
> > > > >
> > > > > FLTS: 0 = 0 [00][00][00][00] status = 32
> > > > >
> > > > >
> > > > > Regards,
> > > > > Wayne
> > > > Wayne
> > > >
> > > > Yes, I was - and it (zero) IS 00 00 00 00
> > > >
> > > > I am using a program planetsa.com to do some validation. It was failing on the Zxcc emulator!
> > > > And I was trying to figure out why... Turns out, Zxcc is being problematic with in/out (probably I
> > > > am interfacing wrong). RunCPM is doing much better, and I am able to actually run planeta.com!
> > > >
> > > > With maybe a problem with the exp() function...
> > > >
> > > > Thanks for doing that! I think am9511 is pretty close to a "first release".
> > > >
> > > > Fred Weigel
> > > Wayne
> > >
> > > Thanks for the confirmation. The error was in FLTS - I was not handling negative integers correctly,
> > > they were being converted to positive; that, in turn, caused the EXP function to overflow, and caused
> > > the z88dk AM9511 runtime library to mess up. flts() is fixed.
> > >
> > > Fred Weigel
> > Wayne (and others)
> >
> > I think am9511 is now usable. howto.txt has instructions for integrating the emulator into Zxcc and RunCPM.
> > (Zxcc may need some bug fixes -- instructions in the howto.txt). A sample application (planeta.com) is
> > provided. I have compiled am9511 under the Altair-Duino "sketch" as well, but have not yet programmed
> > my Altair-Duino (I am a bit shy about altering the "factory load" -- this will be my first foray into Arduino
> > programming. I just have to "do it"). But, all appears ok on RunCPM -- give that a shake-out and test.
> > If all works well for a week or so, and I can get the Altair-Duino running with am9511, I will declare the
> > first release of am9511! And then see about getting it into the regular Altair-Duino firmware and into
> > z80pack.
> >
> > https://github.com/ratboy666/am9511
> >
> > Put bug reports into the Issues at github (or here, even). Hopefully, all will be stable, and this can
> > be released (I will actively support am9511 as long as there is interest in it).
> >
> > Thanks to
> >
> > Wayne Hortensius
> > Alan Cox
> > Phillip Stevens
> >
> > For their interest and support!
> >
> > Fred Weigel
> Wayne (and others)
>
> Now that I have a usable am9511 emulation (Alan Cox hooked it into RC2014 emulator, and I have
> it hooked into Zxcc and RunCPM -- per the howto.txt instructions). I could get back to my original
> goal, which was using AM911 with FORTRAN-80. Since nobody appears to have that code anymore,
> I wrote my own.. Find it at
>
> https://github.com/ratboy666/apu
>
> Notes:
>
> This accelerates INTEGER and INTEGER*4 multiply and divide. ADD and SUBTRACT INTEGER
> are not touched.
>
> REAL + - * / ** REAL are accelerated.
>
> "Mixed Mode" needs conversion and is not "full speed" yet.
>
> INTRINSIC functions are not accelerated.
>
> But, appears usable. MicroSoft M80, LIB-80, used to build the APU.REL library. Can support
> any chip location. Interesting that it can ALSO be used to accelerate BASCOM compiled
> stuff.
>
> Needs testing -- Wayne -- I assume you have MicroSoft M80/F80/BASCOM. This stuff
> has been run against am9511 emulator, but *not* against the real deal chip yet.
>
> Still at the "needs tender loving care stage"
>
> Have Fun! May the AM9511 live forever! When this all works, I think I will treat myself to
> a RC2014 with AM9511A chip!
>
> Fred Weigel
APU.REL is now complete. Includes integer, integer*4, real and intrinsic.
Maybe some bugs, but all packed into about 900 bytes.

Needs test programs in FORTRAN-80 AND BASIC-80.

Fred Weigel

Re: AM9511 - what is pi?

<4563ae76-74ea-4c26-a538-d22d81250d21n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2813&group=comp.os.cpm#2813

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:5f4b:: with SMTP id y11mr4212330qta.158.1622806487899;
Fri, 04 Jun 2021 04:34:47 -0700 (PDT)
X-Received: by 2002:a54:438e:: with SMTP id u14mr9243157oiv.126.1622806487665;
Fri, 04 Jun 2021 04:34:47 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 4 Jun 2021 04:34:47 -0700 (PDT)
In-Reply-To: <20210604003715.3fc1ea28@earth>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:ec5e:c05b:3cc1:fa0a;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:ec5e:c05b:3cc1:fa0a
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com> <20210604003715.3fc1ea28@earth>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4563ae76-74ea-4c26-a538-d22d81250d21n@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fred_wei...@hotmail.com (fred_...@hotmail.com)
Injection-Date: Fri, 04 Jun 2021 11:34:47 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fred_...@hotmail.com - Fri, 4 Jun 2021 11:34 UTC

On Friday, June 4, 2021 at 2:37:17 AM UTC-4, Wayne Hortensius wrote:
> > What is the value of PI on the chip?
> >
> > in hex:
> >
> > 9b 0f 49 40
> >
> > or
> >
> > 9a 0f 49 40
> After waking my 9511 from its decades long slumber and asking it to
> PUPI, it reported this:
>
> 02 C9 0F DA
>
> which looks reasonable (the MSB comes off the stack first). The
> mantissa is C9 0F DA, and the exponent is 2. C9 0F DA works out to
> 0.7853981, multiply by 4 and you end up with 3.141592.
>
> And I'd forgotten just how hot the 9511 runs.
>
> Regards,
> Wayne
Wayne

Many thanks! I was looking for an am9511 emulator and then support library for am9511 and microsoft fortran-80.
But... found neither. So, try my am9511 project.

https://github.com/ratboy666/am9511

The first thing is a support library (gcc, tcc and hi-tech c) to convert microsoft, ieee, hi-tech and am9511 floats back and forth.
The value of pi you supplied is in the test vector.

I am now implementing the guts of a Am9511A emulator.

FredW

Re: AM9511 - what is pi?

<3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2814&group=comp.os.cpm#2814

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:645:: with SMTP id a5mr8883435qka.70.1622900437005;
Sat, 05 Jun 2021 06:40:37 -0700 (PDT)
X-Received: by 2002:a4a:ab83:: with SMTP id m3mr7378597oon.2.1622900436716;
Sat, 05 Jun 2021 06:40:36 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 5 Jun 2021 06:40:36 -0700 (PDT)
In-Reply-To: <s9fqkm$1c1n$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:ec5e:c05b:3cc1:fa0a;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:ec5e:c05b:3cc1:fa0a
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com> <s9fqkm$1c1n$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fred_wei...@hotmail.com (fred_...@hotmail.com)
Injection-Date: Sat, 05 Jun 2021 13:40:36 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fred_...@hotmail.com - Sat, 5 Jun 2021 13:40 UTC

On Saturday, June 5, 2021 at 8:28:09 AM UTC-4, Martin wrote:
> Am 06/03/2021 10:35 PM, fred_...@hotmail.com schrieb:
> > I have been working on DSD-80 debugger, and the AM9511 chip
> > (using DSD-80 to debug code for the AM9511).
> >
> > I do not have an AM9511A, and am curious about it (working on
> > an emulator for the chip.
> >
> > What is the value of PI on the chip?
> >
> [...]
>
> >
> > Thanks in advance!
> > FredW
> >
>
> There is an old emulator from "Bill Haygood"
>
> The internet archive has it!
>
> <http://web.archive.org/web/20050421093649/http://www.z80a.org/>
>
> <http://web.archive.org/web/20050421131207id_/http://www.z80a.org/z80.tbz2>
>
>
> This emulator passes the test programs from "Frank Cringle".
>
> AND it contains emulations of the AM9511 APU and the AM9512 FPP!
>
> By the way, in apu.c, you find:
> #define PI 0x02c90fdb
>
>
> Hmmm, after ~20 years, we have found a bug :-)
>
>
> Martin
Actually, on quick look -- more than one -- the range check is completely wrong.

Wayne Hortensius -- if you are reading this... (or anyone else with the real
chip) Can you confirm that on the REAL AM9511A,
(low to high): the smallest and largest numbers are:

2.71051e-20 00 00 80 40
9.22337e+18 ff ff ff 3f

FredW

Re: AM9511 - what is pi?

<7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2815&group=comp.os.cpm#2815

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ad4:576e:: with SMTP id r14mr10918993qvx.61.1622928223610;
Sat, 05 Jun 2021 14:23:43 -0700 (PDT)
X-Received: by 2002:a4a:c190:: with SMTP id w16mr685298oop.92.1622928223328;
Sat, 05 Jun 2021 14:23:43 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 5 Jun 2021 14:23:43 -0700 (PDT)
In-Reply-To: <20210605142216.24e9bcd2@earth>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:956b:6a00:ec5e:c05b:3cc1:fa0a;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:956b:6a00:ec5e:c05b:3cc1:fa0a
References: <b269ebe3-72ca-41b9-a472-3b0f09a60c11n@googlegroups.com>
<s9fqkm$1c1n$1@gioia.aioe.org> <3d1c0983-71d0-49a0-abbf-2e54563c59bfn@googlegroups.com>
<20210605142216.24e9bcd2@earth>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7facd634-25df-4e49-88ac-4e57852a8b2an@googlegroups.com>
Subject: Re: AM9511 - what is pi?
From: fred_wei...@hotmail.com (fred_...@hotmail.com)
Injection-Date: Sat, 05 Jun 2021 21:23:43 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fred_...@hotmail.com - Sat, 5 Jun 2021 21:23 UTC

On Saturday, June 5, 2021 at 4:22:18 PM UTC-4, Wayne Hortensius wrote:
> > Wayne Hortensius -- if you are reading this... (or anyone else with
> > the real chip) Can you confirm that on the REAL AM9511A,
> > (low to high): the smallest and largest numbers are:
> >
> > 2.71051e-20 00 00 80 40
> > 9.22337e+18 ff ff ff 3f
> Adding 00 00 80 28 to FE FF FF 3F results in FF FF FF 3F.
> Adding 00 00 80 28 to FF FF FF 3F sets the overflow flag.
>
> Dividing 00 00 80 41 by 00 00 80 02 (2) results in 00 00 80 40.
> Dividing 00 00 80 40 by 00 00 80 02 (2) sets the underflow flag.
>
> Regards,
> Wayne

Wayne

Many thanks! That is what I expected! Putting in the limits in the emulation...

Will publish soon! (conversion is there, but not the emulation)

FredW

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor