~travisshears/uxn-notebook

My uxn lang experiments
9eeb186b — Travis Shears 6 months ago
start nim game (drawing dots)
b9ea9335 — Travis Shears 6 months ago
Update docs
1e966495 — Travis Shears 6 months ago
Update run script to accept filename

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~travisshears/uxn-notebook
read/write
git@git.sr.ht:~travisshears/uxn-notebook

You can also use your local clone with git send-email.

These are my UXN experiments.

#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