Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By NardJ
#26294 Hi,

I noticed someone making an c64 emulator for the arduino uno, which seems to lack speed and memory. Because of this he resorts to an arduino due.

http://forum.arduino.cc/index.php?PHPSESSID=cc7tt1eirmqh1bpjg8gbvreet5&topic=193216.msg1791372#msg1791372
also see http://forum.arduino.cc/index.php?topic=196666.0

This made me wonder if the esp8266 with a lot more speed and memory would be capable of handling this c64 emulator.
It would be real nice to be able to make a c64 emulator with a $3 esp8266!

Any thoughts?

Nard
User avatar
By Mmiscool
#26530 I just tried compiling it for the esp.
It would not compile and was throwing an error.

I look at a bunch of basic interpreters and tried to get them to compile and work on the ESP8266 before giving up on finding one and started writing one.

Started a thread over in the general section about it and got a web site up and running on it.

Documentation and examples are pretty sparce right now but I have been fleshing out more each night and uploading the new build before I go to bed.

It has been quite a learning experience for me to go threw writing a basic interpreter in c++ but I think it is better that I had to wright it from scratch that try to decipher some one else code and tweek it for the ESP and its unique capabilities.

If you want to take a look at it its on http://esp8266basic.com
User avatar
By NardJ
#26868 I tried compiling it too and got messages like '.text' will not fit in region íram_0_seq'. The sketch itself seems too large for the esp8266 (reducing variables makes no difference, reducing program code does). However on a arduino mini pro it compiles without problem. Posted a question about it on this forum, hoping for someone with a solution.

Your Basic is an awesome idea, this can really speed up prototyping. I have a simple home security side project and will try your Basic if I continue this project!
User avatar
By NardJ
#27648 Solved, I've got the esp8266 running C64

Code: Select all   **** COMMODORE 64 BASIC V2 ****
 64K RAM SYSTEM  28767 BASIC BYTES FREE

READY.
FOR I=1 TO 10000:NEXT I

READY.


(The speed is 112% that of a real C64.)

See this thread for details http://www.esp8266.com/viewtopic.php?f=8&t=4704&start=5