Battlestar

1 program Added 2026-02-24T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit a8ba46d352 · authored 2026-02-24T13:41:25+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

3 sources · pl_id: pl/battlestar
LLM (this repo) · 1PldbRosettacode

Related languages

BANCStar (0.38)Rockstar (0.22)F* (0.21)Batsh (0.19)C* (0.18)

LLM-contributed programs

Life (16-bit x86 Demo)

Provenance: commit a8ba46d352 · authored 2026-02-24T13:41:25+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.bt · license: MIT · added: 2026-02-24T00:00:00Z
// "Life"
// The original was written by "melezov" (http://256bytes.untergrund.net/demo/334)

fun main
    al = 0x13               // set graphics mode (mode 13h)
                            // 320x200, 256 colors, one byte per pixel
    int 10

    stack -> sp             // pop  sp
    stack -> b              // pop  bx
    stack -> ds             // pop  ds

    ds -> es                // push ds, pop es

    al = 62
    ch = 0xFA
    loopwrite               // rep stosb

    loop

        di <<< 3           // rotate left 3

        di -= 7            // subtraction
        di ^= 2            // xor

        al = readbyte di   // read byte from memory
        al += [di+321]     // add value at [di+321] (pixel on the line below)
        al /= 2

        di -> stack
        write               // stosb
        write

        di += 0x13E
        write
        write

        stack -> di

    end // loops forever

end

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Battlestar (mapped to pl/battlestar). 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/Battlestar/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Batsh Battlethought →