DLX

1 program Added 2026-02-16T14:44:53Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: DLX Assembly
Provenance: commit dc51149119 · authored 2026-02-16T15:46:25+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

TX-2 Assembly (0.43)PDP-6 Assembly (0.41)PDP-11 Assembly (0.39)DCPU-16 (0.38)CDC 6600 Assembly (0.36)

LLM-contributed programs

Factorial

Provenance: commit dc51149119 · authored 2026-02-16T15:46:25+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.s · added: 2026-02-16T14:44:53Z
; DLX Assembly - Factorial of 5
; Computes 5! = 120

        .data
result: .word 0

        .text
        .global main

main:
        ; Initialize registers
        addi r1, r0, 5      ; n = 5
        addi r2, r0, 1      ; result = 1

factorial_loop:
        ; Check if n <= 0
        seqi r3, r1, 0      ; r3 = (n == 0)
        bnez r3, done       ; if n == 0, exit loop

        ; result = result * n
        mult r2, r2, r1     ; result *= n

        ; n = n - 1
        subi r1, r1, 1      ; n--

        ; Continue loop
        j factorial_loop

done:
        ; Store result in memory
        sw result, r2

        ; Exit
        trap 0

Contribute — propose a file extension

Tell us where to find evidence about DLX (mapped to pl/dlx). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/DLX/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← dlvm DM →