Alpha Assembly

1 program Added 2026-02-11T00:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: DEC Alpha Assembly, Alpha AXP Assembly
Provenance: commit 1d2effe2e0 · authored 2026-02-11T14:45:27+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

PDP-4 Assembly (0.35)DLX (0.28)TX-2 Assembly (0.28)PDP-6 Assembly (0.27)AVR Assembly (0.27)

LLM-contributed programs

Fibonacci Calculator

Provenance: commit 1d2effe2e0 · authored 2026-02-11T14:45:27+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.s · added: 2026-02-11T00:00:00Z
        .text
        .globl main
        .ent main
main:
        ldgp    $gp, 0($27)
        lda     $sp, -16($sp)
        stq     $26, 0($sp)

        # Compute Fibonacci(10)
        lda     $16, 10
        bsr     $26, fib

        # Result is in $0
        mov     $0, $16
        ldq     $26, 0($sp)
        lda     $sp, 16($sp)
        ret     $31, ($26), 1
        .end main

        .ent fib
fib:
        lda     $sp, -32($sp)
        stq     $26, 0($sp)
        stq     $9, 8($sp)
        stq     $10, 16($sp)

        # Base case: if n <= 1, return n
        cmpule  $16, 1, $1
        beq     $1, fib_recurse
        mov     $16, $0
        br      fib_return

fib_recurse:
        # Save n
        mov     $16, $9

        # Compute fib(n-1)
        subq    $16, 1, $16
        bsr     $26, fib
        mov     $0, $10

        # Compute fib(n-2)
        subq    $9, 2, $16
        bsr     $26, fib

        # Return fib(n-1) + fib(n-2)
        addq    $10, $0, $0

fib_return:
        ldq     $10, 16($sp)
        ldq     $9, 8($sp)
        ldq     $26, 0($sp)
        lda     $sp, 32($sp)
        ret     $31, ($26), 1
        .end fib

Contribute — propose a file extension

Tell us where to find evidence about Alpha Assembly (mapped to pl/alpha_assembly). 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/Alpha Assembly/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Alpha alpha-programming-language →