Emulating on the JVM
summary
Builds a working CHIP-8 emulator on the JVM using JavaFX, implementing the chip’s 35 instructions, 4 KB memory map, 64×32 monochrome display and 60 Hz timers. Solves Java’s signed-byte problem with unsigned byte masking and manual range checks, assembles two-byte instructions with fetchOpcode combining two bytes, wires keyboard and rudimentary sound (sound not fixed yet), and demos games like Invaders where graphics flicker as expected but the emulation runs.
AI-written summary · about
chapters (8)
- 0:00Introduction and motivation
- 1:50Choosing Chip-8 as emulator target
- 2:52Chip-8 architecture overview
- 5:03Handling unsigned values in Java
- 6:57Fetching and decoding instructions
- 8:26Building with JavaFX
- 9:56Running the emulator demo
- 11:09Testing with Space Invaders
related talks
33mBuild your 8-bit computer from scratch
02h 02mBuild a Computer from Scratch
35mBuilding a GameBoy emulator with Elixir and Scenic
04mJavaOne Shanghai: Alex Mironenko
12mA RISC V Java Update: Running Full Java Applications On FPGA-Based RISC V Cores With JikesRVM
44mBuild Your 8‑Bit Computer from Scratch
35mJava at Speed: Building a Better JVM
38mJava 8: Functional programming
