
Dave VW has revived his TypeScript Commodore 64 emulator, written up on Tech with Dave. The emulator runs in a browser, with a Web Worker handling the 6502 emulation in the background while the keyboard and the canvas display are part of the web page.
That split caused a keyboard bug six years ago: keys only registered when they were released, and Dave couldn’t work out the fix. He went back to it with GitHub Copilot and traced the problem to how the Web Worker yields back to the page.
With the keyboard working, Dave ported in fixes and features from his other emulator projects, including relocatable text screens and graphics support. Sprites, raster interrupts and multicolor mode aren’t in yet.
The D64 disk image that loads at startup now holds a sampling of most of his C64 GitHub projects plus some other programs. Pressing SHIFT+ESC runs the same steps as LOAD”*”,8 and RUN, which brings up a menu with submenus for launching the other programs.
See more at techwithdave.davevw.com and content on GitHub.