SAP

1 program Added 2026-03-12T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: SHARE Assembly Program, Symbolic Assembly Program
Provenance: commit 5a0fe82d36 · authored 2026-03-12T22:48:29+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

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

Related languages

SOAP (0.56)FAP (0.36)SYMBAL (0.35)LAP6 (0.33)SMP (0.33)

LLM-contributed programs

Factorial

Provenance: commit 5a0fe82d36 · authored 2026-03-12T22:48:29+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.asm · license: Public Domain · added: 2026-03-12T10:00:00Z
*        IBM 704 SAP PROGRAM
*        COMPUTE FACTORIAL OF N USING ITERATIVE LOOP
*
         ORG    100
FACTRL   CLA    ONE         LOAD 1 INTO ACCUMULATOR
         STO    RESULT      RESULT = 1
         CLA    N           LOAD N INTO ACCUMULATOR
         STO    CNTR        INITIALIZE COUNTER = N
LOOP     CLA    RESULT      LOAD CURRENT RESULT
         MPY    CNTR        MULTIPLY BY COUNTER VALUE
         STO    RESULT      STORE NEW RESULT
         CLA    CNTR        LOAD COUNTER
         SUB    ONE         DECREMENT BY 1
         STO    CNTR        STORE DECREMENTED COUNTER
         TZE    DONE        IF COUNTER = 0 THEN DONE
         TRA    LOOP        ELSE CONTINUE LOOP
DONE     HTR    0           HALT WITH RESULT IN MEMORY
*
ONE      DEC    1
N        DEC    5           COMPUTE 5 FACTORIAL = 120
CNTR     BSS    1
RESULT   BSS    1
         END    FACTRL

Contribute — propose a file extension

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