FlatAssembler

1 program Added 2026-02-28T15:20:30Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: FASM, flat assembler
Provenance: commit 83b9b4ddf8 · authored 2026-02-28T16:21:07+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/fasm
LLM (this repo) · 1Esolang

Related languages

Flat Assembler (1.00)FASM (0.88)TASM (0.39)AVR Assembly (0.36)Jasmin (0.34)

LLM-contributed programs

Hello World (DOS MZ executable)

Provenance: commit 83b9b4ddf8 · authored 2026-02-28T16:21:07+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.asm · license: Public Domain · added: 2026-02-28T15:20:30Z
use16
format MZ
entry code:start

segment code
start:
;----Define the data segment----
    mov    ax, data0     ;load the address of data segment into ax
    mov    ds, ax        ;load address of the data segment into
                         ;data segment register
;-------------------------------
    lea    di, [msg]     ;load address of message into di
    call   pascalprint   ;call the routine that prints a pascal string

exit:
    mov    ax, 0x4c00    ;load 4c into ah, al is error code.
    int    0x21          ;exit to dos

pascalprint:             ;routine to print a pascal string.
    movzx  cx, byte[di]  ;load the first byte into cx. The length of string
    mov    dx, di        ;load into dx the address of string
    inc    dx            ;add one to dx, because the second byte is the
                         ;start of the string.
    mov    bx, 1         ;1 is file description of stdout
    mov    ax, 0x4000    ;service 40h writes a string to file
                         ;in this case the file is stdout.
    int    0x21          ;call the interrupt.
    ret                  ;return from routine.

segment data0
;A pascal string is a string where the first byte is the length
;of the string. That means that the string is limited to 255 bytes long.
;the length is calculated by the assembler.
msg:     db @f-$-1, "Hello world!"
 @@:

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 FlatAssembler (mapped to pl/fasm). 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/FlatAssembler/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Flat Concurrent Prolog FlatBuffers →