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/battlestarRelated languages
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
// "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.)