Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

1 1 was a race-horse, 2 2 was 1 2. When 1 1 1 1 race, 2 2 1 1 2.


devel / comp.os.cpm / Re: CP/M-68k C floating point

SubjectAuthor
* CP/M-68k C floating pointNick
`* Re: CP/M-68k C floating pointDavid Schultz
 `* Re: CP/M-68k C floating pointNick
  `* Re: CP/M-68k C floating pointDavid Schultz
   `* Re: CP/M-68k C floating pointDavid Schultz
    `* Re: CP/M-68k C floating pointNick
     `- Re: CP/M-68k C floating pointDavid Schultz

1
CP/M-68k C floating point

<uu4fq8$3orhs$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: her...@nowhere.invalid (Nick)
Newsgroups: comp.os.cpm
Subject: CP/M-68k C floating point
Date: Thu, 28 Mar 2024 19:18:30 +0000
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uu4fq8$3orhs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 28 Mar 2024 19:18:32 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d71065eec7273cc10e16293bc61a24f4";
logging-data="3960380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XWEwhOOsJuIuf6vfu6x9/5wbA0dgW/jg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dlRwO2igyciq4OuRNgaCo+zWZUA=
Content-Language: en-GB
 by: Nick - Thu, 28 Mar 2024 19:18 UTC

Is the floating point broken in the DRI (Alcyon Corp?) C compiler in
CP/M-68k? I can compile and link a simple test program against libf.a
and clib, but it prints garbage where I would expect a formatted
floating point number.

main()
{ float afloat;
afloat= 3.142;
printf("%6.3f\n", afloat);
printf("Did it float?\n");
}

C>fptest
0.;42
Did it float?

On a positive note, Pascal MT68's floating point does work.

--
Nick

Re: CP/M-68k C floating point

<6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 28 Mar 2024 20:23:09 +0000
Date: Thu, 28 Mar 2024 15:23:09 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: david.sc...@earthlink.net (David Schultz)
Subject: Re: CP/M-68k C floating point
Newsgroups: comp.os.cpm
References: <uu4fq8$3orhs$1@dont-email.me>
Content-Language: en-US
In-Reply-To: <uu4fq8$3orhs$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com>
Lines: 22
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.241
X-Trace: sv3-9beTNevgnxSXqT6nCul9tKavOhegiCq5RdyFpBc9J9MWjBx+m4Q0+Zzf08lV1eyYp2U2McAxoj8Kgd9!jDMcMhZLD/on+6G14ScQ+ZJc8udcstn0mMwaRwnAp+pw3NaXD6DjS0uELKDwE6ozZb5avtTpATPo!t7KRo00B6fxw23S38xf4ge3sFfclGeZbfljoQt8lV0Y=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 1596
 by: David Schultz - Thu, 28 Mar 2024 20:23 UTC

On 3/28/24 2:18 PM, Nick wrote:
> main()
> {
>   float afloat;
>   afloat= 3.142;
>   printf("%6.3f\n", afloat);
>   printf("Did it float?\n");
> }

Since this works for me, what I want to know is exactly how you built it.

> 6C>cc -f test.c
>
> 6C>a.rel
> 3.142
> Did it float?
>

--
http://davesrocketworks.com
David Schultz

Re: CP/M-68k C floating point

<uu4mfa$3qfsg$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: her...@nowhere.invalid (Nick)
Newsgroups: comp.os.cpm
Subject: Re: CP/M-68k C floating point
Date: Thu, 28 Mar 2024 21:12:08 +0000
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <uu4mfa$3qfsg$1@dont-email.me>
References: <uu4fq8$3orhs$1@dont-email.me>
<6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 28 Mar 2024 21:12:10 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d71065eec7273cc10e16293bc61a24f4";
logging-data="4013968"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+n2cmrRLAfTjv5shhLE2QXVpCi0E6Nm6M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ikMoh0Pvb5dO1CNbT5vTcVYmgyA=
Content-Language: en-GB
In-Reply-To: <6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com>
 by: Nick - Thu, 28 Mar 2024 21:12 UTC

On 28/03/2024 20:23, David Schultz wrote:
> On 3/28/24 2:18 PM, Nick wrote:
>> main()
>> {
>>    float afloat;cp68 -i 0: $1.c $1.i
c068 $1.i $1.1 $1.2 $1.3 -e
era $1.i
c168 $1.1 $1.2 $1.s
era $1.1
era $1.2
as68 -l -u -s 0: $1.s
era $1.s

>>    afloat= 3.142;
>>    printf("%6.3f\n", afloat);
>>    printf("Did it float?\n");
>> }
>
> Since this works for me, what I want to know is exactly how you built it.
>

I'm using the sub files included in the distribution. My file is FPTEST.C.

"CE FPTEST" followed by "CLINKE FPTEST"

CE.SUB:

cp68 -i 0: $1.c $1.i
c068 $1.i $1.1 $1.2 $1.3 -e
era $1.i
c168 $1.1 $1.2 $1.s
era $1.1
era $1.2
as68 -l -u -s 0: $1.s
era $1.s

CLINKE.SUB:

lo68 -r -o $1.68k 0:s.o $1.o $2.o $3.o $4.o $5.o $6.o $7.o $8.o $9.o
0:clib 0:libe.a

I'm using the software supplied for my 68k-MBC which is supposed to be a
build of CP/M-68k v1.3.

>> 6C>cc -f test.c >>
>> 6C>a.rel
>>  3.142
>> Did it float?
>>
>

Thanks,
--
Nick

Re: CP/M-68k C floating point

<672dnRIwxqQgepj7nZ2dnZfqnPSdnZ2d@earthlink.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 28 Mar 2024 21:57:16 +0000
Date: Thu, 28 Mar 2024 16:57:16 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: david.sc...@earthlink.net (David Schultz)
Subject: Re: CP/M-68k C floating point
Newsgroups: comp.os.cpm
References: <uu4fq8$3orhs$1@dont-email.me> <6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com> <uu4mfa$3qfsg$1@dont-email.me>
Content-Language: en-US
In-Reply-To: <uu4mfa$3qfsg$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <672dnRIwxqQgepj7nZ2dnZfqnPSdnZ2d@earthlink.com>
Lines: 22
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.241
X-Trace: sv3-u9fngUTbuw5mfRXHkXpP9fV+mMAidcenkg57SNGepFSDlA6uz4SIm4R+CklwsjhLVOu+XS9AW5x93XW!jBZhp7BLZipOLeaY00WIx+X39EF+TIax3EIP8Y+BrrUKEs6IU6zFYLA7cRpkTdGG/TRVooe26TqN!my7zTLTkNvRU0lzvsO9D3RBZBSS5Thie+bJ7d7ySg80=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: David Schultz - Thu, 28 Mar 2024 21:57 UTC

On 3/28/24 4:12 PM, Nick wrote:
> I'm using the software supplied for my 68k-MBC which is supposed to be a
> build of CP/M-68k v1.3.

The bug fixes from 1.2 to 1.3 were minimal. I am using my sim along with
those files.

Checking my archives, I see that the file lengths for LIBE.A in the 1.2
and 1.3 distributions are very slightly different.

I copied the 1.3 version of LIBE.A and tried that. It appears broken:
6C>a.rel
3.2@@
Did it float?

So use the 1.2 files.

--
http://davesrocketworks.com
David Schultz

Re: CP/M-68k C floating point

<1qKcne7wZcBlZ5j7nZ2dnZfqnPudnZ2d@earthlink.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.neodome.net!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 28 Mar 2024 23:19:20 +0000
Date: Thu, 28 Mar 2024 18:19:19 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: david.sc...@earthlink.net (David Schultz)
Subject: Re: CP/M-68k C floating point
Newsgroups: comp.os.cpm
References: <uu4fq8$3orhs$1@dont-email.me>
<6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com>
<uu4mfa$3qfsg$1@dont-email.me>
<672dnRIwxqQgepj7nZ2dnZfqnPSdnZ2d@earthlink.com>
Content-Language: en-US
In-Reply-To: <672dnRIwxqQgepj7nZ2dnZfqnPSdnZ2d@earthlink.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <1qKcne7wZcBlZ5j7nZ2dnZfqnPudnZ2d@earthlink.com>
Lines: 10
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.241
X-Trace: sv3-C6YGga/x5C6jQEjbhMMi6LDtuP8Q77rV7J/lC0PyWYa/+MVbuvPwayWABbb8Yl/X9VBAaq8Id6RRcVf!uga/3U6QyMl3DfEdPlu/S9R0ToMUnx7pi2QnLg1ytzi/Gy26SrXuEiUZI3BwJbGXgMF+vvDDAt5/!jO1d1bwdttu7jWN0Z2xIKtkE3rZfR+00VlAgpfdR8M4=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 1679
 by: David Schultz - Thu, 28 Mar 2024 23:19 UTC

I was getting this feeling that something like this had turned up
before. A quick showed that it had. Seven years ago so it wasn't quite
at the top of my memory.

https://groups.google.com/g/comp.os.cpm/c/YkDf-JLNY4k/m/6g1fYSSDAQAJ

--
http://davesrocketworks.com
David Schultz

Re: CP/M-68k C floating point

<uu7736$g5qa$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: her...@nowhere.invalid (Nick)
Newsgroups: comp.os.cpm
Subject: Re: CP/M-68k C floating point
Date: Fri, 29 Mar 2024 20:08:04 +0000
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uu7736$g5qa$1@dont-email.me>
References: <uu4fq8$3orhs$1@dont-email.me>
<6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com>
<uu4mfa$3qfsg$1@dont-email.me>
<672dnRIwxqQgepj7nZ2dnZfqnPSdnZ2d@earthlink.com>
<1qKcne7wZcBlZ5j7nZ2dnZfqnPudnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Mar 2024 20:08:06 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2cc1ec856f8e63ae08043f22aff437ea";
logging-data="530250"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6RFrsUBKX+arQX54iHa/IsAbXu/T2/Gg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:n+j2XDhBBxjC4yhPBpQ+uS62TGw=
Content-Language: en-GB
In-Reply-To: <1qKcne7wZcBlZ5j7nZ2dnZfqnPudnZ2d@earthlink.com>
 by: Nick - Fri, 29 Mar 2024 20:08 UTC

On 28/03/2024 23:19, David Schultz wrote:
> I was getting this feeling that something like this had turned up
> before. A quick showed that it had. Seven years ago so it wasn't quite
> at the top of my memory.
>
> https://groups.google.com/g/comp.os.cpm/c/YkDf-JLNY4k/m/6g1fYSSDAQAJ
>

Thanks for the pointers David, and your simulator. I used it to
familiarise myself with 68k while I was waiting for parts for the MBC. I
also copied the microemacs over as it's a bit of a steep learning curve
with ed.

Building using cc worked for me on the sim so I'll try copying the stuff
over from v1.2. I noticed that cc calls LINK68 rather than LO68, is that
significant? I'll look at the source code and see if I can figure out
what to pass to LINK68.

Also, I used AR68 to look at the contents of LIBE.A and LIBF.A. LIBF.A
has a number of extra maths functions added in v1.3.

--
Nick

Re: CP/M-68k C floating point

<5eucnZsJH5ugp5r7nZ2dnZfqn_GdnZ2d@earthlink.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.23.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 29 Mar 2024 22:01:33 +0000
Date: Fri, 29 Mar 2024 17:01:33 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: david.sc...@earthlink.net (David Schultz)
Subject: Re: CP/M-68k C floating point
Newsgroups: comp.os.cpm
References: <uu4fq8$3orhs$1@dont-email.me> <6PqcnY4XMf4wTJj7nZ2dnZfqn_idnZ2d@earthlink.com> <uu4mfa$3qfsg$1@dont-email.me> <672dnRIwxqQgepj7nZ2dnZfqnPSdnZ2d@earthlink.com> <1qKcne7wZcBlZ5j7nZ2dnZfqnPudnZ2d@earthlink.com> <uu7736$g5qa$1@dont-email.me>
Content-Language: en-US
In-Reply-To: <uu7736$g5qa$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <5eucnZsJH5ugp5r7nZ2dnZfqn_GdnZ2d@earthlink.com>
Lines: 37
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.241
X-Trace: sv3-JJEC5xZ7m4RTdF4ekkw8z+OweqKa9Yxa8mM3AKwRx/W2Jxh7AoQ6P3fHkwUa8z3U29A2axZgCN2ZuN5!+uYnAne42NXyzp04xo6PrZmQiERWfW73g0KV3hqqtwBEbUr2d0Bx6cq1byLUMnV43Wq94G/HcA2U!hq5zreXmNCQLM4gPnNtvj2rP2GU3l8gHsCggmqDkJ38=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: David Schultz - Fri, 29 Mar 2024 22:01 UTC

On 3/29/24 3:08 PM, Nick wrote:
> On 28/03/2024 23:19, David Schultz wrote:
>> I was getting this feeling that something like this had turned up
>> before. A quick showed that it had. Seven years ago so it wasn't quite
>> at the top of my memory.
>>
>> https://groups.google.com/g/comp.os.cpm/c/YkDf-JLNY4k/m/6g1fYSSDAQAJ
>>
>
> Thanks for the pointers David, and your simulator. I used it to
> familiarise myself with 68k while I was waiting for parts for the MBC. I
> also copied the microemacs over as it's a bit of a steep learning curve
> with ed.
>
ed is just a PITA to use. It works but it is very simple. I spent a lot
of time typing in the source for RED (from DDJ) using ed just so I could
have a screen editor. Switching to uEmacs later.

> Building using cc worked for me on the sim so I'll try copying the stuff
> over from v1.2. I noticed that cc calls LINK68 rather than LO68, is that
> significant? I'll look at the source code and see if I can figure out
> what to pass to LINK68.
>
They are mostly equivalent. Except for differences in how to tell them
what to do.

> Also, I used AR68 to look at the contents of LIBE.A and LIBF.A. LIBF.A
> has a number of extra maths functions added in v1.3.
>
But do they work? If they do, and you need them, try extracting them
from libf.a and using standalone. If that works, use ar to add them to
the 1.2 libf.a

--
http://davesrocketworks.com
David Schultz

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor