matgoebl / esp8266-ntsc-c64-emulator Goto Github PK
View Code? Open in Web Editor NEWC64 emulator on the ESP8266 with NTSC output and PS/2 keyboard input.
License: GNU General Public License v3.0
C64 emulator on the ESP8266 with NTSC output and PS/2 keyboard input.
License: GNU General Public License v3.0
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:
LOCAL void ICACHE_RAM_ATTR slc_isr(void) {
and this one:
esp8266-ntsc-c64-emulator/ESP8266-NTSC-C64/cpu.c
Line 1104 in 91f3519
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.