Skip to content

Assembled From Scratch

You'll write a complete, useful program in assembly for an 8-bit or 16-bit machine, with its own disk or tape image, and watch someone else use it.

About

A screen-fill routine is a trick, and a whole program is a different thing: it has to read keys, draw text, handle a disk or tape, cope with mistakes and not crash. You'll write one in assembly for a real machine, using a free cross-assembler and an accurate emulator, and then run it on the hardware if you have it. A text editor, a disk utility, a terminal program, a memory tester or a small game with a score all count. Demoscene is for effects timed to the beam, and Game Dev is for games on modern engines. What counts here is a tool a person can sit down and use, and the source where others can read it.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
A month of evenings
Skill level
Advanced (years of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Uncommon badges in Retro Computing to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Write a one-page spec and a memory layout before you write code. Say what the program does, what keys it takes, where it lives in memory and what it leaves alone. Programs that start without this one page end up overwriting the screen with their own variables. Take a photo of the page. Photo
  2. 2
    Get text on screen and keys in from your own routines, with no BASIC left. Call the machine's ROM routines or write your own, but the program boots and runs with no BASIC line in front of it. Film typing a line and seeing it echo. Video
  3. 3
    Use one real system feature: an interrupt, a custom character set, sprites or disk and tape I/O. Pick the one your program needs and make it work. A raster interrupt that updates a clock, a redefined font, or a save-and-load of your data to a disk image all count. Film the feature doing its job, and tell us which one and why. Video
  4. 4
    Make it survive bad input and show the test. An empty line, a key held down, a full buffer, and a missing disk each get tried, and the program carries on. Film three of those tests in a row. Video
  5. 5
    Build a disk or tape image that boots straight into it, and run it on real hardware if you can. An autoboot image means anyone with the emulator can run it in one step. If you have the real machine, load it there too, since real hardware finds timing bugs that emulators forgive. Take a photo of it running, with the image name on screen or the machine in frame. Photo
  6. 6
    Publish the source and watch someone else use the program. Post the assembly source with a README. Then sit beside someone while they use it for ten minutes, say nothing, and write down where they got stuck. Take a screenshot of the repository and a photo of your tester at the keyboard. Photo