My UXN experiments
Find a file
2025-06-30 14:41:59 +02:00
.vscode Update docs 2024-07-25 11:17:13 +02:00
.gitignore init repo with 99 bottles of beer and help tals 2024-07-12 16:19:18 +02:00
99_bottles.tal use sub labels 2024-07-13 14:54:50 +02:00
berlin_clock.tal commit old nim / berlin_clock stuff 2025-06-27 15:35:13 +02:00
day_1.tal init one line project 2025-06-27 20:36:28 +02:00
hello.tal init one line project 2025-06-27 20:36:28 +02:00
LICENSE.md add licence 2024-07-13 14:54:57 +02:00
lines.tal start nim game (drawing dots) 2024-07-25 11:18:10 +02:00
nim.tal commit old nim / berlin_clock stuff 2025-06-27 15:35:13 +02:00
one_line_canvas.tal only allow drawing on canvas 2025-06-30 14:41:59 +02:00
play.tal start nim game (drawing dots) 2024-07-25 11:18:10 +02:00
playground.tal get draw-h-line working 2025-06-29 20:43:26 +02:00
README.md init one line project 2025-06-27 20:36:28 +02:00
run.sh Update run script to accept filename 2024-07-13 18:12:49 +02:00
run_ui.sh start nim game (drawing dots) 2024-07-25 11:18:10 +02:00

These are my UXN experiments.

One Line

A 88x31 image for my personal site footer. Inspired by aleteoryx.

99 Bottles of beer

File: 99_bottles.tal

This is my first tal script. I was inspired by an example in the kitten (another forth based programming language) repo. It prints the lyrics to the song going from "99 bottles of beer on the wall" to none.

Sample output:

18 bottles of beer on the wall
18 bottles of beer
take one down, pass it around

17 bottles of beer on the wall
17 bottles of beer
take one down, pass it around

16 bottles of beer on the wall
16 bottles of beer
take one down, pass it around

Sources:

Dev

Compile a tal file to a rom and run it via cli

./run.sh 99_bottles.tal

Auto compile and run

$ echo 99_bottles.tal | entr ./run.sh

Edit file using the left editor

$ ../uxn/bin/uxnemu ../left.rom 99_bottles.tal

Step through debugging with beetbug

$ echo 99_bottles.rom | entr -r ../uxn/bin/uxnemu ../beetbug.rom ./99_bottles.rom