Examples

Practical starter examples to reduce friction: source idea, expected output, and what to inspect.

Quick QuadBasic-to-ASM demo

Direct link: Watch this demo on YouTube.

Hello LCD

Goal: show one line of text on the emulated 16×2 LCD using PRINT @LCD.

10 REM Hello LCD (minimal)
20 CLS
30 PRINT @LCD, "Hello LCD"
40 END
Quadium 4004 Workbench — emulated 16×2 LCD showing the text Hello LCD

LED bar from one RAM port nibble

Goal: paint a fixed pattern on a 4-segment LED bar by writing a single nibble to the RAM 4002 port latch with POKE @RAMPORT.

10 REM LED bar — static split (4 LEDs)
20 REM Profile: LED bar -> RAM 4002 Port, bank 0 chip 0
30 CLS
40 POKE @RAMPORT(0, 0), 3
50 PRINT @SCR, "LED bar: nibble 3 (0011) on port"
60 END
Quadium 4004 Workbench — four LED bar showing two lit and two unlit from one RAM port nibble

Want interface-level context? See the guided gallery.