All projects

Pac-Man MC68000

A Pac-Man-style game written entirely in MC68000 assembly for the EASy68K simulator — game loop and state, map rendering, sprites, scoring and ghost AI, with no standard library and every service going through system traps.

Assembly AssemblyMC68000Game Development
pacman-mc68000.mp4 · 17.1 MB
pacman-mc68000.pdf · 265 KB Open the report

The problem

Project for the Computer Structure II course at the Universitat de les Illes Balears.

Build a Pac-Man-style game entirely in MC68000 assembly, running on the simulated environment provided by the EASy68K assembler and simulator, which supplies graphics, audio and file-system services through system traps.

With no standard library and no high-level control flow, the work is in the parts a language usually hides: structured assembly, game state management, sprite rendering and enemy AI written directly against the traps.

How it works

The codebase is split across multiple .X68 files, separating concerns that would otherwise collapse into one flat listing:

  • Main loop — execution loop and game state handling.
  • Map — board representation and rendering.
  • Entities — player movement and ghost logic.
  • Session — scoring and timing.
  • Common — shared utilities and global constants.

Running it

Requires the EASy68K assembler and simulator, available at www.easy68k.com.

Open MAIN.X68 in the EASy68K editor and run it.

Both checkboxes in the Options tab must be enabled for the game to run correctly: Enable Exceptions and Enable BIT Field Instructions.