Giter Site home page Giter Site logo

matgoebl / esp8266-ntsc-c64-emulator Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 2.0 987 KB

C64 emulator on the ESP8266 with NTSC output and PS/2 keyboard input.

License: GNU General Public License v3.0

C++ 13.09% C 84.49% Visual Basic 1.76% Shell 0.42% Makefile 0.23%

esp8266-ntsc-c64-emulator's People

Contributors

matgoebl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esp8266-ntsc-c64-emulator's Issues

Solution to "I2S video output and wifi lead to a reset"

Dear Matthias,
thank you for your work on this project.
You posted here a question to Jan: "Unfortunately using I2S video output and wifi at the same time lead to a reset after few seconds. Do you have an idea, how to fix that?"
This is the solution:
This line:


should be changed to:
LOCAL void ICACHE_RAM_ATTR slc_isr(void) {

and this one:

uint8_t read6502(uint16_t address) {

should be changed to:
uint8_t ICACHE_RAM_ATTR read6502(uint16_t address) {

The latter change could be more elegantly solved, keeping functional parts separated. Instead of directly using read6502 within slc_isr, I suggest to copy the relevant memory values (with read6502) to a global array or struct (3 elements) in the main loop. Then just read directly the array in slc_isr. After that change, adding ICACHE_RAM_ATTR to read6502 will not be needed anymore.

I confirm that with the ICACHE_RAM_ATTR edits above (and changing the relevant parts to always start ArduinoOTA, of course), I can reflash while video is on (video stops on reflashing and resumes after the automatic reset).

I have several ideas about structuring the code to make development easier that I will try to share; most are about separating 6502 emulation, memory mapping (should we say "masking"?), (partial) VIC II simulation, video output (NTSC, PAL, color), and user interaction (keyboard input vs telnet vs webpage).

Thanks again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.