From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Porting c/c++ to gaming consoles... Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <5o7iqsce8kjikn0frvjtuedp945s79v42g@4ax.com> References: <20000826002318 DOT 24832 DOT qmail AT web512 DOT mail DOT yahoo DOT com> <8oaqpp$npv$1 AT uranium DOT btinternet DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 X-Trace: /K+neR3toOaefIRJbZt5nbrm1oValntDakflqbMysDUll5p0LQRFxvyuYCA5DiRtiK1bz6mCsRz6!srsEu9LPw5bkBY8Tlw+LwkV0G+SS47qnel6f/ySJ9Wd7V8X1Zg2Ch5uVWCeNaQPQxCXbJe/2jYp6!H2WT X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sun, 27 Aug 2000 14:01:44 GMT Distribution: world Date: Sun, 27 Aug 2000 14:01:44 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 27 Aug 2000 11:31:50 +0100, "Thomas Harte" wrote: >>C would never work on NES, which only has 2 KB of RAM and an 8-bit >>6502 processor. NES is normally programmed in assembly language: >> http://pineight.8m.com/nes.htm > > >But the ROM segments can be paged into processor address space, so >used for programs (although the 6502 still only has a 16bit address >space), and there was, a long time ago - like 1985, a 'small C' >compiler going around which was a cut down version of K&R for 6502s. It seems to have been upgraded to near-ISO capability: http://www.cc65.org/ And the compiler can be built with DJGPP with one change to DJGPP libc. Has Nate's patch to open a tmpfile() in BINARY mode made it into the official DJGPP libc? -- MS (n) 1. A debilitating and surprisingly widespread affliction that renders the sufferer barely able to perform the simplest task. 2. A disease, multiple sclerosis (see). This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/