gregk@cbnewsm.ATT.COM (gregory.p.kochanski) (01/24/90)
I am posting the following for Edward Rietman, ear\@allwise.att.com.
I believe this to be correct, but haven't tried it myself.
The following program cannot be successfully placed in ROM by Zortech 2.00.
main()
{
int far *a, sum;
a = (int far *)0x7000L;
a[0] = (int)(2.0);
a[1] = (int)(3.0);
sum = *a++;
sum += *a++;
*a = sum;
while(1);
}
It works under Microsoft 5.1. Ed was interested in Zortech because it promised
ROMable floating point emulation. No such luck, apparently.
Has anyone tried this kind of thing?
Greg Kochanski
AT&T Bell Laboratories. gpk\@physics.att.com
Physics for fun and profit.