[comp.sys.cbm] C-Power 128 and the 1700/1750 RAM Expansion

prindle@NADC.ARPA (10/02/87)

From: prindle@NADC.ARPA (Frank Prindle)

C-Power 128, of course, comes with RAM-Disk support which uses an area of
memory as the RAM-Disk.  I've disassembled enough of it to know that it is
very locked in to the use of C128 RAM and it could not be easily modified
to use the expansion RAM, especially given the memory constraints within
which the shell must live.  In any case, if someone is so inspired, it is
a better starting point than C-Power 64 for trying to use the expander.

I've written a C-Power 64 package which implements the C equivalents of
STASH, FETCH, and SWAP for use within a C program, if anyone is interested
(it's really quite simple).  Probably would have to be modified a bit for
the 128 due to bank switching (peek and poke, ya know).

While on the subject of C-Power 128, has anyone succeeded in getting a version
of the library which supports floating point/integer conversion properly. I.e.
will this program print the correct result (I have tried for over a year to
get Pro-Line to admit that they should fix this):

main()
	{
	int i;
	float f;
	i=100;
	f=(float)i;
	i=(int)f;
	printf("This should be 100: %d",i);
	}

I can't offhand remember if it is the float to int or int to float conversion
that fails, but it is one or the other, and they have admitted that it was a
problem at one time, but they won't supply a fix!

Sincerely,
Frank Prindle
Prindle@NADC.arpa