Wednesday | 04 DEC 2024
[ previous ]
[ next ]

Uxn - Day 1

Title:
Date: 2023-01-05
Tags:  

I'm working through day 1.

https://compudanzas.net/uxn_tutorial_day_1.html

This is the final code after the first day.

( hello.tal )
    |10 @Console [ &vector $2 &read $1 &pad $5 &write $1 &error $1 ]

    %EMIT { .Console/write DEO }
    %NEWLINE { #0a EMIT }
    %PRINT-DIGIT { #30 ADD EMIT }

    |0100
    LIT "h EMIT
    LIT "e EMIT
    LIT "l EMIT
    LIT "l EMIT
    LIT "o EMIT

    NEWLINE

    #09 PRINT-DIGIT

    NEWLINE