~/talk

Making an Emulator in JavaScript?

Talkat DevFest Nantes 2025 · 2025-10-16..10-17· [javascript, creative-coding]
slides:none on file

Builds a CHIP-8 emulator in JavaScript that actually runs and beeps, implementing a 64x32 monochrome display via Canvas 64x32 monochrome and a single-tone output with the Web Audio API beep. Implements CPU emulation with 4,096 8-bit memory locations, 16 registers, two-byte opcodes parsed with bitwise operators and hexadecimal math, a 60Hz run loop that advances the program counter by two each instruction, and a GitHub repo (chippy) containing the working code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:21Why build an emulator
  3. 4:35Emulation legality
  4. 5:40Hardware vs software emulation
  5. 6:42JavaScript and Chip-8
  6. 7:44Core emulator components
  7. 8:49Monochrome display
  8. 13:32Sound with Web Audio API
  9. 15:57CPU and memory
  10. 18:47Loading ROMs
  11. 20:14Hexadecimal notation
  12. 23:27Decoding opcodes
  13. 25:10Executing instructions
  14. 28:40Keyboard input and timers
  15. 30:48Final demo
  16. 31:30Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.