Why Assembly Was Used in Video Games

TIME : 2016-01-07
Why Assembly Was Used in Video Games

Speed. Assembly is about as close to the hardware as a programmer can get while still writing code a human can read, and on the limited processors of early consoles that mattered enormously.

Every cycle counted when you were trying to scroll a background, animate sprites and keep a steady frame rate on a machine with a few kilobytes of memory. A high-level language would have spent cycles the hardware did not have to spare.

Modern games are written in higher-level languages, and compilers are now good enough that hand-written assembly rarely wins. It survives in small performance-critical pockets rather than as the main tool.