~/talk

Writing a Game Boy compiler in Forth

links:none on file
slides:none on file

A Forth-based compiler for Game Boy emerges from incremental reverse engineering: starting from a hello world ROM, raw bytes get decoded into an assembler, then into a simple Forth compiler that emits Game Boy opcodes. The project uses byte-level inspection, tables of CPU instructions, and pattern extraction to implement primitives, a terminal/font library, input and sound, and even port a tiny game with only a few edits. The toolchain is published as gbforth and runs in Docker for easy testing.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:54What is Forth?
  3. 6:23Reverse engineering ROMs
  4. 10:33Building a Game Boy assembler
  5. 13:03Writing a Forth compiler
  6. 15:50Expanding the Game Boy library
  7. 16:55Demo and open source
~/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.