fptest0.;42
On 3/28/24 2:18 PM, Nick wrote:c068 $1.i $1.1 $1.2 $1.3 -e
main()
{
float afloat;cp68 -i 0: $1.c $1.i
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.
cc -f test.c >>3.142
a.rel
Did it float?
main()
{
float afloat;
afloat= 3.142;
printf("%6.3f\n", afloat);
printf("Did it float?\n");
}
cc -f test.c
a.rel3.142
Did it float?
I'm using the software supplied for my 68k-MBC which is supposed to be a build of CP/M-68k v1.3.
a.rel3.2@@
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
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 10:37:14 |
Calls: | 10,387 |
Calls today: | 2 |
Files: | 14,060 |
Messages: | 6,416,691 |